meson.build: Don't apply iso-codes cflag on Windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 10 Jan 2022 07:04:57 +0000 (15:04 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 12 Jan 2022 09:29:30 +0000 (17:29 +0800)
They are no longer applicable for Windows builds.

meson.build

index 90619713d52de7524e580a172ef55ea0d360efcc..a40473c12add929f7fd9a87ce9b1e7256983b6b7 100644 (file)
@@ -455,10 +455,12 @@ cdata.set('HAVE_TRACKER3', tracker3_dep.found())
 colord_dep = dependency('colord', version: '>= 0.1.9', required: get_option('colord'))
 cdata.set('HAVE_COLORD', colord_dep.found())
 
-if iso_codes_dep.found()
-  cdata.set_quoted('ISO_CODES_PREFIX', iso_codes_dep.get_variable(pkgconfig: 'prefix'))
-else
-  cdata.set_quoted('ISO_CODES_PREFIX', '/usr')
+if not os_win32
+  if iso_codes_dep.found()
+    cdata.set_quoted('ISO_CODES_PREFIX', iso_codes_dep.get_variable(pkgconfig: 'prefix'))
+  else
+    cdata.set_quoted('ISO_CODES_PREFIX', '/usr')
+  endif
 endif