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',