[pangomm/use-dllexport: 3/7] pango/pangomm/meson.build: Define	PANGOMM_BUILD
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [pangomm/use-dllexport: 3/7] pango/pangomm/meson.build: Define	PANGOMM_BUILD
- Date: Wed, 11 Mar 2020 10:42:49 +0000 (UTC)
commit 6a79692d8c7bc9b699007036cda2f9e21c1a0f11
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 4ca20cb..4d86c88 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.
@@ -125,6 +127,7 @@ if maintainer_mode
     built_cc_file_targets, built_h_file_targets, extra_cc_files,
     version: pangomm_libversion,
     include_directories: extra_include_dirs,
+    cpp_args: pangomm_cpp_args,
     dependencies: pangomm_build_dep,
     install: true,
   )
@@ -168,6 +171,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]