[freetype-gl] Add feature glad (#31436)

* [freetype-gl] Add feature glad

* format vcpkg.json

* update version

* update rependences

* update version
This commit is contained in:
JonLiu1993 2023-05-18 00:15:39 +08:00 committed by GitHub
parent ed3afc99e2
commit 0e79ac5be5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 5 deletions

View File

@ -14,6 +14,12 @@ vcpkg_from_github(
0005-add-version.patch
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"glad" freetype-gl_WITH_GLAD
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
@ -21,6 +27,7 @@ vcpkg_cmake_configure(
-Dfreetype-gl_BUILD_DEMOS=OFF
-Dfreetype-gl_BUILD_TESTS=OFF
-Dfreetype-gl_BUILD_MAKEFONT=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
@ -32,6 +39,5 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_fixup_pkgconfig()
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/freetype-gl" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,7 +1,7 @@
{
"name": "freetype-gl",
"version-date": "2022-01-17",
"port-version": 1,
"port-version": 2,
"description": "OpenGL text using one vertex buffer, one texture and FreeType",
"homepage": "https://github.com/rougier/freetype-gl",
"dependencies": [
@ -15,5 +15,13 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"features": {
"glad": {
"description": "Use the GLAD gl loader",
"dependencies": [
"glad"
]
}
}
}

View File

@ -2626,7 +2626,7 @@
},
"freetype-gl": {
"baseline": "2022-01-17",
"port-version": 1
"port-version": 2
},
"freexl": {
"baseline": "1.0.6",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a356f56c15dd0a66094c00cc35670791c545027e",
"version-date": "2022-01-17",
"port-version": 2
},
{
"git-tree": "c966935c663878c91381818cae1b87590be48191",
"version-date": "2022-01-17",