[harfbuzz] Make freetype dependency into feature. (#35877)

This commit is contained in:
Bruce Mitchener 2023-12-28 02:52:26 -05:00 committed by GitHub
parent 19786b14ec
commit 6734216dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 7 deletions

View File

@ -35,7 +35,11 @@ if("cairo" IN_LIST FEATURES)
else()
list(APPEND FEATURE_OPTIONS -Dcairo=disabled)
endif()
list(APPEND FEATURE_OPTIONS -Dfreetype=enabled) #Enable freetype interop helpers
if("freetype" IN_LIST FEATURES)
list(APPEND FEATURE_OPTIONS -Dfreetype=enabled) #Enable freetype interop helpers
else()
list(APPEND FEATURE_OPTIONS -Dfreetype=disabled)
endif()
#if(VCPKG_TARGET_IS_WINDOWS)
#link errors in qt5-base. probably requires changes to the pc files generated by meson
#list(APPEND FEATURE_OPTIONS -Dgdi=enabled) # enable gdi helpers and uniscribe shaper backend (windows only)

View File

@ -1,16 +1,12 @@
{
"name": "harfbuzz",
"version": "8.3.0",
"port-version": 1,
"port-version": 2,
"description": "HarfBuzz OpenType text shaping engine",
"homepage": "https://github.com/harfbuzz/harfbuzz",
"license": "MIT-Modern-Variant",
"supports": "!uwp",
"dependencies": [
{
"name": "freetype",
"default-features": false
},
{
"name": "gettext",
"platform": "osx"
@ -20,6 +16,9 @@
"host": true
}
],
"default-features": [
"freetype"
],
"features": {
"cairo": {
"description": "Enable Cairo graphics library support",
@ -37,6 +36,15 @@
"description": "Enable CoreText shaper backend on macOS",
"supports": "osx"
},
"freetype": {
"description": "Enable FreeType support",
"dependencies": [
{
"name": "freetype",
"default-features": false
}
]
},
"glib": {
"description": "Glib Unicode callbacks support",
"dependencies": [

View File

@ -3274,7 +3274,7 @@
},
"harfbuzz": {
"baseline": "8.3.0",
"port-version": 1
"port-version": 2
},
"hash-library": {
"baseline": "8",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ff776c837e28a47a91cad45946d7ab6b51dc3c67",
"version": "8.3.0",
"port-version": 2
},
{
"git-tree": "6e2d07391d009a33797b19b707bf5bc60cdb17e5",
"version": "8.3.0",