[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=<ftmodule.h>'.
This commit is contained in:
parent
b37b8d2a70
commit
63ccaef07a
@ -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=<ftmodule.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.
|
||||
|
Loading…
Reference in New Issue
Block a user