2017-07-28 11:37:19 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO log4cplus/log4cplus
|
2023-11-29 13:59:27 +08:00
|
|
|
REF REL_2_1_1
|
|
|
|
SHA512 ddc63ad574aed7d13980308c1f4d3a31a7fa9c7d4a14de923f9b3a851492d17f64f34166b6be77fc8584c0e98cd1f34ed3d9ba268e7456fd1ff3b7d8125dbe3a
|
2017-07-28 11:37:19 +08:00
|
|
|
HEAD_REF master
|
2016-10-12 05:06:41 +08:00
|
|
|
)
|
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH THREADPOOL_SOURCE_PATH
|
|
|
|
REPO log4cplus/ThreadPool
|
2021-10-12 01:52:33 +08:00
|
|
|
REF 3507796e172d36555b47d6191f170823d9f6b12c
|
|
|
|
SHA512 6b46ce287d68fd0cda0c69fda739eaeda89e1ed4f086e28a591f4e50aaf80ee2defc28ee14a5bf65be005c1a6ec4f2848d5723740726c54d5cc1d20f8e98aa0c
|
2019-10-08 01:35:13 +08:00
|
|
|
HEAD_REF master
|
2017-11-28 18:18:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(
|
|
|
|
COPY
|
2021-10-12 01:52:33 +08:00
|
|
|
"${THREADPOOL_SOURCE_PATH}/COPYING"
|
|
|
|
"${THREADPOOL_SOURCE_PATH}/example.cpp"
|
|
|
|
"${THREADPOOL_SOURCE_PATH}/README.md"
|
|
|
|
"${THREADPOOL_SOURCE_PATH}/ThreadPool.h"
|
|
|
|
DESTINATION "${SOURCE_PATH}/threadpool"
|
2017-11-28 18:18:05 +08:00
|
|
|
)
|
|
|
|
|
2020-10-22 08:41:53 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2021-10-12 01:52:33 +08:00
|
|
|
unicode UNICODE
|
2020-10-22 08:41:53 +08:00
|
|
|
)
|
|
|
|
|
2021-10-12 01:52:33 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-10-22 08:41:53 +08:00
|
|
|
OPTIONS
|
|
|
|
-DLOG4CPLUS_BUILD_TESTING=OFF
|
|
|
|
-DLOG4CPLUS_BUILD_LOGGINGSERVER=OFF
|
2020-10-09 13:59:51 +08:00
|
|
|
-DWITH_UNIT_TESTS=OFF
|
2020-10-22 08:41:53 +08:00
|
|
|
-DLOG4CPLUS_ENABLE_DECORATED_LIBRARY_NAME=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
2016-10-12 05:06:41 +08:00
|
|
|
)
|
|
|
|
|
2021-10-12 01:52:33 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-10-04 11:41:03 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-10-12 01:52:33 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/log4cplus)
|
2017-07-28 12:07:39 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-11-29 13:59:27 +08:00
|
|
|
if(NOT VCPKG_BUILD_TYPE)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/log4cplus.pc" "-llog4cplus" "-llog4cplusD")
|
|
|
|
endif()
|
|
|
|
|
2021-10-12 01:52:33 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2023-11-29 13:59:27 +08:00
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/${PORT}/ChangeLog"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/README.md")
|
2016-10-12 05:06:41 +08:00
|
|
|
|
2023-11-29 13:59:27 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|