meson: hls: Only build when any crypto_dep is found
authorScott D Phillips <scott.d.phillips@intel.com>
Fri, 21 Oct 2016 07:37:03 +0000 (00:37 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 23 Oct 2016 23:51:21 +0000 (00:51 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=773114

ext/hls/meson.build

index 081a096..f3ea432 100644 (file)
@@ -25,14 +25,16 @@ else
   endif
 endif
 
-gsthls = library('gsthls',
-  hls_sources,
-  c_args : gst_plugins_bad_args + hls_cargs,
-  link_args : noseh_link_args,
-  include_directories : [configinc],
-  dependencies : [gstpbutils_dep, gsttag_dep, gstvideo_dep,
-                 gstadaptivedemux_dep, gsturidownloader_dep,
-                 hls_crypto_dep],
-  install : true,
-  install_dir : plugins_install_dir,
-)
+if hls_crypto_dep.found()
+  gsthls = library('gsthls',
+    hls_sources,
+    c_args : gst_plugins_bad_args + hls_cargs,
+    link_args : noseh_link_args,
+    include_directories : [configinc],
+    dependencies : [gstpbutils_dep, gsttag_dep, gstvideo_dep,
+                   gstadaptivedemux_dep, gsturidownloader_dep,
+                   hls_crypto_dep],
+    install : true,
+    install_dir : plugins_install_dir,
+  )
+endif