2016-10-11 16:06:41 -05:00
|
|
|
include(vcpkg_common_functions)
|
2017-07-27 20:37:19 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO log4cplus/log4cplus
|
2018-08-01 03:46:41 +08:00
|
|
|
REF REL_2_0_1
|
|
|
|
SHA512 7a84bf237bb5db3eccd90196c0f97adb75d0dd247d73852150078b9458f169d883f3ae92908217ea668bcf25c64766c86380bbcc64b432eb1bae6427c9268b18
|
2017-07-27 20:37:19 -07:00
|
|
|
HEAD_REF master
|
2016-10-11 16:06:41 -05:00
|
|
|
)
|
|
|
|
|
2018-01-03 17:37:34 -08:00
|
|
|
set(THREADPOOL_REF dda9e3d40502e85ce082c05d2c05c1bc94348b6a)
|
2017-11-28 18:18:05 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2018-01-03 17:37:34 -08:00
|
|
|
URLS "https://github.com/log4cplus/ThreadPool/archive/${THREADPOOL_REF}.tar.gz"
|
|
|
|
FILENAME "log4cplus-threadpool-${THREADPOOL_REF}.tar.gz"
|
|
|
|
SHA512 225adb11f447495a00e401d32f63d9a7eb3a8191d477a21bfa3c39f1ff5cbe8bfb7770a740e840c5748f816137cdef1a5915b17d16b3dd4c3399d1a67ab0f381
|
2017-11-28 18:18:05 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
|
|
|
file(
|
|
|
|
COPY
|
2018-01-03 17:37:34 -08:00
|
|
|
${CURRENT_BUILDTREES_DIR}/src/ThreadPool-${THREADPOOL_REF}/COPYING
|
|
|
|
${CURRENT_BUILDTREES_DIR}/src/ThreadPool-${THREADPOOL_REF}/example.cpp
|
|
|
|
${CURRENT_BUILDTREES_DIR}/src/ThreadPool-${THREADPOOL_REF}/README.md
|
|
|
|
${CURRENT_BUILDTREES_DIR}/src/ThreadPool-${THREADPOOL_REF}/ThreadPool.h
|
2017-11-28 18:18:05 +08:00
|
|
|
DESTINATION ${SOURCE_PATH}/threadpool
|
|
|
|
)
|
|
|
|
|
2016-10-11 16:06:41 -05:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-07-27 21:07:39 -07:00
|
|
|
PREFER_NINJA
|
2016-10-11 16:06:41 -05:00
|
|
|
OPTIONS -DLOG4CPLUS_BUILD_TESTING=OFF -DLOG4CPLUS_BUILD_LOGGINGSERVER=OFF -DWITH_UNIT_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-01-28 10:30:47 +03:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/log4cplus)
|
2017-07-27 21:07:39 -07:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2016-10-11 16:06:41 -05:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-07-27 21:07:39 -07:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2016-10-11 16:06:41 -05:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/log4cplus)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/log4cplus/LICENSE ${CURRENT_PACKAGES_DIR}/share/log4cplus/copyright)
|