From 63ccaef07a048db66e7ac66ee241fb3d7751736f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Yhuel?= Date: Mon, 14 Nov 2022 11:36:25 +0100 Subject: [PATCH] [meson] Use generated ftmodule.h ftmodule.h is generated at the root of the build directory, but FT_CONFIG_MODULES_H (freetype/config/ftmodule.h) is used instead. This makes the build fail when disabling modules in modules.cfg. * meson.build (harfbuzz_dep): Add '-DFT_CONFIG_MODULES_H='. --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 41822bc2b..03c1534bd 100644 --- a/meson.build +++ b/meson.build @@ -52,6 +52,8 @@ ft2_includes = include_directories('include') freetype_includedir = join_paths(get_option('includedir'), 'freetype2') +ft2_defines = [] + # Generate a custom `ftmodule.h` version based on the content of # `modules.cfg`. @@ -64,6 +66,7 @@ ftmodule_h = custom_target('ftmodule.h', install_dir: join_paths(freetype_includedir, 'freetype/config'), ) ft2_sources = [ftmodule_h] +ft2_defines += ['-DFT_CONFIG_MODULES_H='] # FreeType 2 modules. @@ -187,7 +190,7 @@ ft2_config_headers = files([ 'include/freetype/config/public-macros.h', ]) -ft2_defines = ['-DFT2_BUILD_LIBRARY=1'] +ft2_defines += ['-DFT2_BUILD_LIBRARY=1'] # System support file.