2020-10-31 00:51:26 +03:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2020-04-24 05:40:56 +01:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO odygrd/quill
|
2022-12-05 23:40:52 +01:00
|
|
|
REF v${VERSION}
|
2023-12-20 00:01:37 +01:00
|
|
|
SHA512 65aa38c0c279916b6a861587834deff393fd2d7bdbcdc9b91de922a72e90d813581db20a822d47c3c4ee2c46da09a10ed4020d06fc2bf456c54e1469f3ce66ef
|
2020-04-24 05:40:56 +01:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-11-06 18:38:28 +01:00
|
|
|
if(VCPKG_TARGET_IS_ANDROID)
|
|
|
|
set(ADDITIONAL_OPTIONS -DQUILL_NO_THREAD_NAME_SUPPORT=ON)
|
|
|
|
endif()
|
|
|
|
|
2021-09-14 08:31:55 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-04-24 05:40:56 +01:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
2020-12-05 02:47:20 +02:00
|
|
|
-DQUILL_FMT_EXTERNAL=ON
|
2023-11-06 18:38:28 +01:00
|
|
|
${ADDITIONAL_OPTIONS}
|
2020-04-24 05:40:56 +01:00
|
|
|
)
|
|
|
|
|
2021-09-14 08:31:55 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/quill)
|
2020-04-24 05:40:56 +01:00
|
|
|
|
2022-05-20 23:34:33 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/quill/bundled")
|
|
|
|
|
2021-11-04 05:46:49 +01: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 01:03:33 +02: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")
|
2023-11-06 18:38:28 +01:00
|
|
|
if(VCPKG_TARGET_IS_ANDROID)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/quill/TweakMe.h" "// #define QUILL_NO_THREAD_NAME_SUPPORT" "#define QUILL_NO_THREAD_NAME_SUPPORT")
|
|
|
|
endif()
|
2021-09-14 08:31:55 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-10-31 00:51:26 +03:00
|
|
|
|
2023-01-11 06:25:26 +09:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|