[pangomm/meson.msvc: 3/4] meson: Don't build generate_extra_defs on MSVC
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pangomm/meson.msvc: 3/4] meson: Don't build generate_extra_defs on MSVC
- Date: Tue, 15 Oct 2019 05:16:34 +0000 (UTC)
commit a19dc9396f9c8e697e2a7bf2ee8c955a3790322c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Oct 15 12:56:10 2019 +0800
meson: Don't build generate_extra_defs on MSVC
This depends on portions in glibmm tat is not applicable directly to
MSVC builds, so skip building this on MSVC
tools/extra_defs_gen/meson.build | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/tools/extra_defs_gen/meson.build b/tools/extra_defs_gen/meson.build
index 03d2cd8..35d9315 100644
--- a/tools/extra_defs_gen/meson.build
+++ b/tools/extra_defs_gen/meson.build
@@ -3,14 +3,16 @@
# Input: cpp_compiler, pangomm_build_dep, install_libdir, pangomm_pcname
# Output: m4_files, install_m4dir
-glibmm_generate_extra_defs_dep = cpp_compiler.find_library(
- 'glibmm_generate_extra_defs-2.64',
-)
+if not is_msvc
+ glibmm_generate_extra_defs_dep = cpp_compiler.find_library(
+ 'glibmm_generate_extra_defs-2.64',
+ )
-executable('generate_extra_defs', 'generate_defs_pango.cc',
- dependencies: [pangomm_build_dep, glibmm_generate_extra_defs_dep],
- install: false,
-)
+ executable('generate_extra_defs', 'generate_defs_pango.cc',
+ dependencies: [pangomm_build_dep, glibmm_generate_extra_defs_dep],
+ install: false,
+ )
+endif
# Install m4 files for reuse by other *mm projects, when building from git.
m4_basefiles = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]