[grilo/master.msvc: 10/13] src/meson.build: Fix introspection on Windows



commit 26e0a373029cad35c00a79bcc7737973878d58f8
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Apr 22 14:52:06 2020 +0800

    src/meson.build: Fix introspection on Windows
    
    Python on Windows have problems escaping quotes that have been previously,
    escaped, which is revealed when we are trying to build introspection files.
    
    Fix this by just passing in the '-DG_LOG_DOMAIN=...' only when building the
    Grilo library, but not when running g-ir-scanner.

 src/meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 4b4386e..9d57e37 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -85,7 +85,6 @@ libgrl_inc = include_directories([
 
 c_args = [
     '-DGRILO_COMPILATION',
-    '-DG_LOG_DOMAIN="Grilo"',
     '-DHAVE_CONFIG_H',
     '-DGRL_NAME="@0@"'.format(grl_name)
 ]
@@ -112,7 +111,7 @@ libgrl = shared_library(grl_name,
     soversion: soversion,
     version: grilo_lt_version,
     dependencies: libgrl_deps,
-    c_args: c_args,
+    c_args: c_args + ['-DG_LOG_DOMAIN="Grilo"'],
     link_args: libgrl_link_args,
     include_directories: libgrl_inc)
 


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