2017-07-28 11:37:19 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO log4cplus/log4cplus
|
2020-10-09 13:59:51 +08:00
|
|
|
REF 9d00f7d10f2507f68f9ab5fea8b842735d9c6cfe # REL_2_0_5
|
|
|
|
SHA512 b64a1d3a60584b2ba3a58470a0b0ec4c22eb0c054c0ef8ef3808fcba5604860fbd5b2d96148939ea15d3bf2ff1e40e684710dc81b57b73232851a486251f648d
|
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
|
|
|
|
REF cc0b6371d3963f7028c2da5fc007733f9f3bf205
|
2019-02-28 15:45:08 +08:00
|
|
|
SHA512 ad4d287c1f83acac4c127136bc92489c43bb5293613dc54b878b8e75a8583f7eefda6434d09789dad47b87a5d38f10a07a746d42d299410c11f2dbcce8af3012
|
2019-10-08 01:35:13 +08:00
|
|
|
HEAD_REF master
|
2017-11-28 18:18:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(
|
|
|
|
COPY
|
2019-10-08 01:35:13 +08:00
|
|
|
${THREADPOOL_SOURCE_PATH}/COPYING
|
|
|
|
${THREADPOOL_SOURCE_PATH}/example.cpp
|
|
|
|
${THREADPOOL_SOURCE_PATH}/README.md
|
|
|
|
${THREADPOOL_SOURCE_PATH}/ThreadPool.h
|
2017-11-28 18:18:05 +08:00
|
|
|
DESTINATION ${SOURCE_PATH}/threadpool
|
|
|
|
)
|
|
|
|
|
2016-10-12 05:06:41 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-07-28 12:07:39 +08:00
|
|
|
PREFER_NINJA
|
2020-10-09 13:59:51 +08:00
|
|
|
OPTIONS
|
|
|
|
-DLOG4CPLUS_BUILD_TESTING=OFF
|
|
|
|
-DLOG4CPLUS_BUILD_LOGGINGSERVER=OFF
|
|
|
|
-DWITH_UNIT_TESTS=OFF
|
2016-10-12 05:06:41 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-01-28 15:30:47 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/log4cplus)
|
2017-07-28 12:07:39 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2016-10-12 05:06:41 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-07-28 12:07:39 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2016-10-12 05:06:41 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2020-10-09 13:59:51 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|