summaryrefslogtreecommitdiffstats
path: root/plugins/file/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/file/meson.build')
-rw-r--r--plugins/file/meson.build20
1 files changed, 11 insertions, 9 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