[gjs/meson.msvc: 24/26] meson.build: Fix introspection builds on MSVC
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/meson.msvc: 24/26] meson.build: Fix introspection builds on MSVC
- Date: Mon, 28 Oct 2019 02:51:41 +0000 (UTC)
commit 090716359ceaec54ace19495ab853bd7c322923d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Oct 25 16:46:52 2019 +0800
meson.build: Fix introspection builds on MSVC
Instead of defining G_LOG_DOMAIN globally, define it only when building
libgjs and gjs-console, as the quotes in there can cause grief and we
don't really need it for the introspection dumper program.
meson.build | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 2da228c1..eb702e4d 100644
--- a/meson.build
+++ b/meson.build
@@ -10,8 +10,6 @@ pkg = import('pkgconfig')
top_include = include_directories('.')
-add_project_arguments('-DG_LOG_DOMAIN="Gjs"', language: ['c', 'cpp'])
-
### Check for conflicting build options ########################################
if get_option('systemtap') and not get_option('dtrace')
@@ -509,7 +507,7 @@ else
endif
endif
-extra_libgjs_cpp_args = []
+extra_libgjs_cpp_args = ['-DG_LOG_DOMAIN="Gjs"']
if host_machine.system() == 'windows'
# We need these defines to build properly for Windows
extra_libgjs_cpp_args += ['-DWIN32', '-DXP_WIN']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]