[pangomm/meson.msvc: 2/6] 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: 2/6] meson: Don't build generate_extra_defs on MSVC
- Date: Thu, 17 Oct 2019 08:16:30 +0000 (UTC)
commit 4ac17a9e4b51cb58f6e22436fa851dd93a2028d0
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]