meson: kmssink: Allow fallback only on linux
authorSeungha Yang <seungha@centricular.com>
Thu, 9 Apr 2020 14:12:25 +0000 (23:12 +0900)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Thu, 9 Apr 2020 18:36:12 +0000 (18:36 +0000)
Otherwise fallback will waste meson configure time on non-linux

sys/kms/meson.build

index fa5bb6b..0223f28 100644 (file)
@@ -5,6 +5,10 @@ kmssink_sources = [
   'gstkmsutils.c',
 ]
 
+if host_system != 'linux'
+  subdir_done()
+endif
+
 libdrm_dep = dependency('libdrm', version : '>= 2.4.55',
                         required : get_option('kms'),
                         fallback: ['libdrm', 'ext_libdrm'])