From e18858c68509e1d4576bb14c7a07a5e9818c50ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Thu, 23 Apr 2020 10:06:20 +0200 Subject: [PATCH] src: Don't build tests when they are disabled --- src/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meson.build b/src/meson.build index 1f71e1bfd..d8c15070e 100644 --- a/src/meson.build +++ b/src/meson.build @@ -395,6 +395,7 @@ libharfbuzz_subset_dep = declare_dependency( include_directories: incsrc, dependencies: deps) +if get_option('tests').enabled() # TODO: MSVC gives the following, # error LNK2019: unresolved external symbol "unsigned __int64 const * const _hb_NullPool" if cpp.get_id() != 'msvc' @@ -487,6 +488,7 @@ if host_machine.system() != 'windows' and not meson.is_cross_build() depends: [harfbuzz_def, harfbuzz_subset_def], # TODO: harfbuzz_icu_def and harfbuzz_gobject_def also env: env) endif +endif pkgmod.generate(libharfbuzz, description: 'HarfBuzz text shaping library',