diff options
author | Loïc Yhuel <loic.yhuel@softathome.com> | 2022-11-14 11:29:20 +0100 |
---|---|---|
committer | Loïc Yhuel <loic.yhuel@softathome.com> | 2022-11-14 14:43:04 +0100 |
commit | b37b8d2a70b967bac95745898f8d9a2d7ff6ac7f (patch) | |
tree | 23a56358d9c7edba8bb71b1a24247f910b8ec268 /builds | |
parent | ba4bd5b994f18f89a08908a44fe3ffeaa5643d11 (diff) | |
download | freetype2-b37b8d2a70b967bac95745898f8d9a2d7ff6ac7f.tar.gz |
[meson] Fix generated ftmodule.h
The sdf module wasn't recognized, so the generated ftmodule.h had "None_renderer_class".
* builds/meson/parse_modules_cfg.py: Handle sdf in RASTER_MODULES.
Diffstat (limited to 'builds')
-rw-r--r-- | builds/meson/parse_modules_cfg.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/builds/meson/parse_modules_cfg.py b/builds/meson/parse_modules_cfg.py index f68110cf0..deb253411 100644 --- a/builds/meson/parse_modules_cfg.py +++ b/builds/meson/parse_modules_cfg.py @@ -84,14 +84,16 @@ def generate_ftmodule(lists): ) for module in lists["RASTER_MODULES"]: - name = { - "raster": "ft_raster1", - "smooth": "ft_smooth", - "svg": "ft_svg", + names = { + "raster": ("ft_raster1",), + "smooth": ("ft_smooth",), + "svg": ("ft_svg",), + "sdf": ("ft_sdf", "ft_bitmap_sdf"), }.get(module) - result += ( - "FT_USE_MODULE( FT_Renderer_Class, %s_renderer_class )\n" % name - ) + for name in names: + result += ( + "FT_USE_MODULE( FT_Renderer_Class, %s_renderer_class )\n" % name + ) for module in lists["AUX_MODULES"]: if module in ("psaux", "psnames", "otvalid", "gxvalid"): |