meson: Don't try to find gio-unix on Windows
authorSeungha Yang <seungha.yang@navercorp.com>
Sun, 12 May 2019 09:33:32 +0000 (18:33 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 11:46:26 +0000 (12:46 +0100)
meson.build

index b775465091633e9ce837df3125567ef94be2822a..49a13ba94b0ca107c560731a8c97d27aa379d15a 100644 (file)
@@ -250,8 +250,11 @@ glib_deps = [dependency('glib-2.0', version : glib_req, fallback: ['glib', 'libg
              dependency('gobject-2.0', fallback: ['glib', 'libgobject_dep'])]
 # GIO is used by the GIO plugin, and by the TCP, SDP, and RTSP plugins
 gio_dep = dependency('gio-2.0', fallback: ['glib', 'libgio_dep'])
-giounix_dep = dependency('gio-unix-2.0', version : glib_req, required : host_system != 'windows',
-                         fallback: ['glib', 'libgiounix_dep'])
+giounix_dep = dependency('', required: false)
+if host_system != 'windows'
+  giounix_dep = dependency('gio-unix-2.0', version : glib_req,
+                           fallback: ['glib', 'libgiounix_dep'])
+endif
 gmodule_dep = dependency('gmodule-no-export-2.0',
                          fallback: ['glib', 'libgmodule_dep'])