freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 63ccaef07 2/2: [meson] Use generated ftmodule.h


From: Werner Lemberg
Subject: [freetype2] master 63ccaef07 2/2: [meson] Use generated ftmodule.h
Date: Mon, 14 Nov 2022 10:09:14 -0500 (EST)

branch: master
commit 63ccaef07a048db66e7ac66ee241fb3d7751736f
Author: Loïc Yhuel <loic.yhuel@softathome.com>
Commit: Loïc Yhuel <loic.yhuel@softathome.com>

    [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>'.
---
 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=<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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]