Skip to content

Commit

Permalink
[harfbuzz] Make freetype dependency into feature. (#35877)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Dec 28, 2023
1 parent 19786b1 commit 6734216
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
6 changes: 5 additions & 1 deletion ports/harfbuzz/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
18 changes: 13 additions & 5 deletions ports/harfbuzz/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -20,6 +16,9 @@
"host": true
}
],
"default-features": [
"freetype"
],
"features": {
"cairo": {
"description": "Enable Cairo graphics library support",
Expand All @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3274,7 +3274,7 @@
},
"harfbuzz": {
"baseline": "8.3.0",
"port-version": 1
"port-version": 2
},
"hash-library": {
"baseline": "8",
Expand Down
5 changes: 5 additions & 0 deletions versions/h-/harfbuzz.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ff776c837e28a47a91cad45946d7ab6b51dc3c67",
"version": "8.3.0",
"port-version": 2
},
{
"git-tree": "6e2d07391d009a33797b19b707bf5bc60cdb17e5",
"version": "8.3.0",
Expand Down

0 comments on commit 6734216

Please sign in to comment.