diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 8101676..a8b54d1 100644 --- a/meson.build +++ b/meson.build @@ -54,6 +54,8 @@ summary({ 'Sources': uvc_gadget_git_version, }, section : 'Versions') cc = meson.get_compiler('c') libcamera = dependency('libcamera', required : false) +libjpeg = dependency('libjpeg', required : false) +threads = dependency('threads', required : false) conf = configuration_data() @@ -61,6 +63,10 @@ if libcamera.found() conf.set('HAVE_LIBCAMERA', true) endif +if libjpeg.found() and threads.found() + conf.set('CONFIG_CAN_ENCODE', true) +endif + configure_file(output : 'config.h', configuration : conf) config_includes = include_directories('.') |