[pango/pango2: 38/63] Fix Meson configure on Windows




commit 2e361f062905d60bec0ff01833a718091248f0eb
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Thu Mar 10 16:22:19 2022 +0100

    Fix Meson configure on Windows

 pango/meson.build | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/pango/meson.build b/pango/meson.build
index fec3afe3..0fafbf7f 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -162,14 +162,6 @@ if host_system == 'windows'
   pango_deps += [
     cc.find_library('gdi32'),
   ]
-
-  pangowin32_rc = configure_file(
-    input: 'pangowin32.rc.in',
-    output: 'pangowin32.rc',
-    configuration: pango_features_conf,
-  )
-  pangowin32_res = import('windows').compile_resources(pangowin32_rc)
-  pango_sources += pangowin32_res
 endif
 
 pango_installed_headers = pango_headers + [ 'pango-version-macros.h' ]
@@ -192,6 +184,16 @@ pango_features_h = configure_file(
   install_dir: join_paths(pango_includedir, pango_api_path),
 )
 
+if host_system == 'windows'
+  pangowin32_rc = configure_file(
+    input: 'pangowin32.rc.in',
+    output: 'pangowin32.rc',
+    configuration: pango_features_conf,
+  )
+  pangowin32_res = import('windows').compile_resources(pangowin32_rc)
+  pango_sources += pangowin32_res
+endif
+
 # Enumerations for GType
 pango_enums = gnome.mkenums(
   'pango-enum-types',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]