[harfbuzz] Make 'cairo' an optional feature for 'harfbuzz' (#34476)

* make 'cairo' an optional feature for 'harfbuzz'

* regenerate versions

* add 'defaulti-features : false' for feature 'cairo'

* regenerate versions

* add 'freetype' as a feature for feature 'cairo'

* regenerate versions
This commit is contained in:
a3emdot 2023-10-18 19:54:42 +02:00 committed by GitHub
parent d00370893e
commit 9cdd9888ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

View File

@ -30,6 +30,11 @@ else()
list(APPEND FEATURE_OPTIONS -Dglib=disabled)
list(APPEND FEATURE_OPTIONS -Dgobject=disabled)
endif()
if("cairo" IN_LIST FEATURES)
list(APPEND FEATURE_OPTIONS -Dcairo=enabled) # Enable Cairo graphics library support
else()
list(APPEND FEATURE_OPTIONS -Dcairo=disabled)
endif()
list(APPEND FEATURE_OPTIONS -Dfreetype=enabled) #Enable freetype interop helpers
#if(VCPKG_TARGET_IS_WINDOWS)
#link errors in qt5-base. probably requires changes to the pc files generated by meson
@ -53,7 +58,6 @@ vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-Dcairo=disabled # Use Cairo graphics library
-Ddocs=disabled # Generate documentation with gtk-doc
-Dtests=disabled
-Dbenchmark=disabled

View File

@ -1,7 +1,7 @@
{
"name": "harfbuzz",
"version": "8.2.1",
"port-version": 1,
"port-version": 2,
"description": "HarfBuzz OpenType text shaping engine",
"homepage": "https://github.com/harfbuzz/harfbuzz",
"license": "MIT-Modern-Variant",
@ -21,6 +21,18 @@
}
],
"features": {
"cairo": {
"description": "Enable Cairo graphics library support",
"dependencies": [
{
"name": "cairo",
"default-features": false,
"features": [
"freetype"
]
}
]
},
"coretext": {
"description": "Enable CoreText shaper backend on macOS",
"supports": "osx"

View File

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

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d6359755bd398188b67a216f7627e9f297f47889",
"version": "8.2.1",
"port-version": 2
},
{
"git-tree": "1f39a3081e7055cbf5e8cc27b5f91fef2a274415",
"version": "8.2.1",