[pangomm/use-dllexport-2-42] 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-2-42] pango/pangomm/meson.build: Define PANGOMM_BUILD
- Date: Thu, 19 Mar 2020 10:29:52 +0000 (UTC)
commit b60ad2d9ba7f2bd265a74532aba8940ba4888b1c
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, if we have determined that we
have generated the sources using gmmproc 2.64.0 or later. If an older
gmmproc was used, we define PANGOMM_USE_GENDEF during the build to set
PANGOMM_API as nothing.
pango/pangomm/meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/pango/pangomm/meson.build b/pango/pangomm/meson.build
index f5898dc..0a57762 100644
--- a/pango/pangomm/meson.build
+++ b/pango/pangomm/meson.build
@@ -65,6 +65,12 @@ 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 is_msvc and not use_dll_export
+ pangomm_cpp_args += '-DPANGOMM_USE_GENDEF'
+endif
+
if maintainer_mode
# Maintainer mode. Generate .h and .cc files from .hg and .ccg files in ../src.
@@ -127,6 +133,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 +177,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]