mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 05:53:22 +08:00
[Freetype] burn in linkage (#35999)
This commit is contained in:
parent
b8ec6abf5d
commit
3434b0a1b4
@ -74,6 +74,14 @@ vcpkg_fixup_pkgconfig()
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
set(dll_linkage 1)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
set(dll_linkage 0)
|
||||
endif()
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/freetype/config/public-macros.h" "#elif defined( DLL_IMPORT )" "#elif ${dll_linkage}")
|
||||
endif()
|
||||
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
|
||||
"${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "freetype",
|
||||
"version": "2.12.1",
|
||||
"port-version": 4,
|
||||
"port-version": 5,
|
||||
"description": "A library to render fonts.",
|
||||
"homepage": "https://www.freetype.org/",
|
||||
"license": "FTL OR GPL-2.0-or-later",
|
||||
|
@ -2782,7 +2782,7 @@
|
||||
},
|
||||
"freetype": {
|
||||
"baseline": "2.12.1",
|
||||
"port-version": 4
|
||||
"port-version": 5
|
||||
},
|
||||
"freetype-gl": {
|
||||
"baseline": "2022-01-17",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e5480587e6a2faf047bc6d8520e48c12fc57604a",
|
||||
"version": "2.12.1",
|
||||
"port-version": 5
|
||||
},
|
||||
{
|
||||
"git-tree": "4e52babe5d382c3f9cdb1b8037874d78eceb3512",
|
||||
"version": "2.12.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user