2018-12-02 12:04:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO andlabs/libui
|
|
|
|
REF 7138276ccfbde94873cb6e2db65642adcbd2ee19
|
|
|
|
SHA512 3a9fb27d0c376479f58ba2fc5be3579efa5f462776a7e725313b92413ce78f3ca60897e63b580c419eeaee2cd2101de2be1ee5af80a547ef433c6284a3053d45
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2019-03-01 15:53:42 +08:00
|
|
|
"001-fix-cmake.patch"
|
|
|
|
"002-fix-macosx-build.patch"
|
2021-05-01 02:25:01 +08:00
|
|
|
"003-fix-system-link.patch"
|
2018-12-02 12:04:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2021-05-01 02:25:01 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2018-12-02 12:04:15 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libui TARGET_PATH share/unofficial-libui)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
2021-05-01 02:25:01 +08:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|