mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[meson] Add raster/vector feature macros
Raster and vector libraries were configurable, but hb-features.h.in did not expose matching HB_HAS_* macros. Set HAVE_RASTER and HAVE_VECTOR during configuration, include both features in the generated hb-features.h list, and add them to the gtk-doc section index. Testing: meson test -C build Assisted-by: OpenAI Codex
This commit is contained in:
1 parent
27f02bd093
commit
4da15dadff
4 files changed
+26
No files matched your search
@@ -206,7 +206,9 @@ HB_HAS_GLIB
|
||||
HB_HAS_GOBJECT
|
||||
HB_HAS_GRAPHITE
|
||||
HB_HAS_ICU
|
||||
HB_HAS_RASTER
|
||||
HB_HAS_UNISCRIBE
|
||||
HB_HAS_VECTOR
|
||||
HB_HAS_WASM
|
||||
</SECTION>
|
||||
|
||||
|
||||
@@ -256,6 +256,14 @@ if get_option('experimental_api')
|
||||
conf.set('HB_EXPERIMENTAL_API', 1)
|
||||
endif
|
||||
|
||||
if not get_option('raster').disabled()
|
||||
conf.set('HAVE_RASTER', 1)
|
||||
endif
|
||||
|
||||
if not get_option('vector').disabled()
|
||||
conf.set('HAVE_VECTOR', 1)
|
||||
endif
|
||||
|
||||
if freetype_dep.found()
|
||||
conf.set('HAVE_FREETYPE', 1)
|
||||
check_freetype_funcs = [
|
||||
|
||||
@@ -99,6 +99,13 @@ HB_BEGIN_DECLS
|
||||
*/
|
||||
#mesondefine HB_HAS_ICU
|
||||
|
||||
/**
|
||||
* HB_HAS_RASTER:
|
||||
*
|
||||
* Defined if Harfbuzz has been built with the raster library.
|
||||
*/
|
||||
#mesondefine HB_HAS_RASTER
|
||||
|
||||
/**
|
||||
* HB_HAS_UNISCRIBE:
|
||||
*
|
||||
@@ -106,6 +113,13 @@ HB_BEGIN_DECLS
|
||||
*/
|
||||
#mesondefine HB_HAS_UNISCRIBE
|
||||
|
||||
/**
|
||||
* HB_HAS_VECTOR:
|
||||
*
|
||||
* Defined if Harfbuzz has been built with the vector library.
|
||||
*/
|
||||
#mesondefine HB_HAS_VECTOR
|
||||
|
||||
/**
|
||||
* HB_HAS_WASM:
|
||||
*
|
||||
|
||||
@@ -586,7 +586,9 @@ features = [
|
||||
'GOBJECT',
|
||||
'GRAPHITE',
|
||||
'ICU',
|
||||
'RASTER',
|
||||
'UNISCRIBE',
|
||||
'VECTOR',
|
||||
'WASM',
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user