diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-10-11 14:57:10 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-10-11 14:57:10 +0200 |
commit | 5b949129a5da9b1722c723c9f30f84d8dd27e26d (patch) | |
tree | 6d50c2ae9ea32c2bd93652d8d790eff768d8729b | |
parent | 62785647cd3e64069e30da77486e165508cdb012 (diff) | |
download | uca-5b949129a5da9b1722c723c9f30f84d8dd27e26d.tar.gz uca-5b949129a5da9b1722c723c9f30f84d8dd27e26d.tar.bz2 uca-5b949129a5da9b1722c723c9f30f84d8dd27e26d.tar.xz uca-5b949129a5da9b1722c723c9f30f84d8dd27e26d.zip |
meson: do not require libtiff
-rw-r--r-- | plugins/file/meson.build | 20 | ||||
-rw-r--r-- | plugins/mock/meson.build | 2 |
2 files changed, 12 insertions, 10 deletions
diff --git a/plugins/file/meson.build b/plugins/file/meson.build index 525a06c..47273dd 100644 --- a/plugins/file/meson.build +++ b/plugins/file/meson.build @@ -1,10 +1,12 @@ -tiff_dep = dependency('libtiff-4') +tiff_dep = dependency('libtiff-4', required: false) -plugin = shared_library('ucafile', - sources: ['uca-file-camera.c'], - include_directories: include_dir, - dependencies: deps + [tiff_dep], - link_with: lib, - install: true, - install_dir: plugindir, -) +if tiff_dep.found() + shared_library('ucafile', + sources: ['uca-file-camera.c'], + include_directories: include_dir, + dependencies: deps + [tiff_dep], + link_with: lib, + install: true, + install_dir: plugindir, + ) +endif diff --git a/plugins/mock/meson.build b/plugins/mock/meson.build index 1f74002..90fb608 100644 --- a/plugins/mock/meson.build +++ b/plugins/mock/meson.build @@ -1,6 +1,6 @@ libm = meson.get_compiler('c').find_library('m') -plugin = shared_library('ucamock', +shared_library('ucamock', sources: ['uca-mock-camera.c'], include_directories: include_dir, dependencies: deps + [libm], |