[pangomm/meson.msvc: 3/7] 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/7] meson: Don't build generate_extra_defs on MSVC
- Date: Mon, 21 Oct 2019 06:38:14 +0000 (UTC)
commit 8f47f49b902de0bd8e012561842c3379585caf9f
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]