2021-04-01 05:15:24 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
2020-12-05 08:47:20 +08:00
|
|
|
|
2020-10-31 05:51:26 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2020-04-24 12:40:56 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO odygrd/quill
|
2021-09-04 08:04:00 +08:00
|
|
|
REF v1.6.3
|
|
|
|
SHA512 e75aca827fe0833422da0d38df482cbc39db0e43dcc3cb791f3e2649f7022dcc448831a5ede85daf6feada60a2d5eaf312a3411abbba92fb9d76466336a7244d
|
2020-04-24 12:40:56 +08:00
|
|
|
HEAD_REF master
|
2021-09-14 08:31:55 +08:00
|
|
|
PATCHES
|
|
|
|
fix-c4189-warning.patch
|
2020-04-24 12:40:56 +08:00
|
|
|
)
|
|
|
|
|
2021-09-14 08:31:55 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-04-24 12:40:56 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
2020-12-05 08:47:20 +08:00
|
|
|
-DQUILL_FMT_EXTERNAL=ON
|
2020-04-24 12:40:56 +08:00
|
|
|
)
|
|
|
|
|
2021-09-14 08:31:55 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/quill)
|
2020-04-24 12:40:56 +08:00
|
|
|
|
2021-11-04 12:46:49 +08:00
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
|
|
|
endif()
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
|
|
|
endif()
|
2021-10-27 07:03:33 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-09-14 08:31:55 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/quill/TweakMe.h" "// #define QUILL_FMT_EXTERNAL" "#define QUILL_FMT_EXTERNAL")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-10-31 05:51:26 +08:00
|
|
|
|
2021-09-14 08:31:55 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|