mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 03:43:02 +08:00
Merge pull request #142 from adam4813/loggers
Adds spdlog and log4cplus
This commit is contained in:
commit
f5ff2ef0f3
3
ports/log4cplus/CONTROL
Normal file
3
ports/log4cplus/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: log4cplus
|
||||
Version: 1.1.3-RC7
|
||||
Description: A simple to use C++ logging API providing thread--safe, flexible, and arbitrarily granular control over log management and configuration
|
22
ports/log4cplus/portfile.cmake
Normal file
22
ports/log4cplus/portfile.cmake
Normal file
@ -0,0 +1,22 @@
|
||||
include(${CMAKE_TRIPLET_FILE})
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/log4cplus-REL_1_1_3-RC7)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/log4cplus/log4cplus/archive/REL_1_1_3-RC7.zip"
|
||||
FILENAME "REL_1_1_3-RC7.zip"
|
||||
SHA512 06320cb2ab6e18e91c6d79a943c9fdcd82b984e8e908e232f0e0e8eca69496f1f3845913107218bc2be356473315f8dfb822a5993bab8efcadfc4819532da823
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DLOG4CPLUS_BUILD_TESTING=OFF -DLOG4CPLUS_BUILD_LOGGINGSERVER=OFF -DWITH_UNIT_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# 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)
|
3
ports/spdlog/CONTROL
Normal file
3
ports/spdlog/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: spdlog
|
||||
Version: 0.11.0
|
||||
Description: Very fast, header only, C++ logging library
|
28
ports/spdlog/portfile.cmake
Normal file
28
ports/spdlog/portfile.cmake
Normal file
@ -0,0 +1,28 @@
|
||||
include(${CMAKE_TRIPLET_FILE})
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/spdlog-0.11.0)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/gabime/spdlog/archive/v0.11.0.zip"
|
||||
FILENAME "v0.11.0.zip"
|
||||
SHA512 4e759b8a18d0e3f256d974920260ebb6c6792885651290637a8a7210731e1d24a6f662d7dc7d3ae165a78c6e738229bd4b6922f36df26581bf43c8bca7c90314
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(MAKE_DIRECTORY
|
||||
${CURRENT_PACKAGES_DIR}/share
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake/spdlog/ ${CURRENT_PACKAGES_DIR}/share/spdlog/)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/spdlog)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/spdlog/LICENSE ${CURRENT_PACKAGES_DIR}/share/spdlog/copyright)
|
Loading…
Reference in New Issue
Block a user