[pangomm/use-dllexport: 9/13] pango/pangomm/meson.build: Define PANGOMM_BUILD



commit bf848726124d126e69e28a00f6ec84afc468d1f6
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Mar 11 18:01:42 2020 +0800

    pango/pangomm/meson.build: Define PANGOMM_BUILD
    
    This will eventually let us tell the compiler that we want to use
    compiler directives to export the symbols.

 pango/pangomm/meson.build | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/pango/pangomm/meson.build b/pango/pangomm/meson.build
index 9f4c3a8..593fb90 100644
--- a/pango/pangomm/meson.build
+++ b/pango/pangomm/meson.build
@@ -65,6 +65,8 @@ install_headers(extra_h_files, subdir: pangomm_pcname / 'pangomm')
 untracked_pangomm = 'untracked' / 'pango' / 'pangomm'
 src_untracked_pangomm = project_source_root / untracked_pangomm
 
+pangomm_cpp_args = [ '-DPANGOMM_BUILD=1' ]
+
 if maintainer_mode
 
   # Maintainer mode. Generate .h and .cc files from .hg and .ccg files in ../src.
@@ -127,6 +129,7 @@ if maintainer_mode
   pango_int_lib = static_library('pangomm-int',
     built_cc_file_targets, built_h_file_targets, extra_cc_files,
     include_directories: extra_include_dirs,
+    cpp_args: pangomm_cpp_args,
     dependencies: pangomm_build_dep,
     install: false,
   )
@@ -170,6 +173,7 @@ else # not maintainer_mode
   pango_int_lib = static_library('pangomm-int',
     built_cc_files, extra_cc_files,
     include_directories: extra_include_dirs,
+    cpp_args: pangomm_cpp_args,
     dependencies: pangomm_build_dep,
     install: false,)
 


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