mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 03:59:00 +08:00
db1781ae00
* [g3log] Add supports * Update versions * Update versions/g-/g3log.json
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KjellKod/g3log
|
|
REF 2fca06ff6da5c67465b591f4d45e8fd14d531142 #v1.3.4
|
|
SHA512 8dba89e5a08e44d585478470725e25e37486685d8fe4d3cb5e97c81013389c95d96bdde658244e425008169bc8a9fc2d34a065b83b110c62e73d3ccab9b2b9e1
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" G3_SHARED_LIB)
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" G3_SHARED_RUNTIME)
|
|
|
|
# https://github.com/KjellKod/g3log#prerequisites
|
|
set(VERSION "1.3.4")
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DG3_SHARED_LIB=${G3_SHARED_LIB} # Options.cmake
|
|
-DG3_SHARED_RUNTIME=${G3_SHARED_RUNTIME} # Options.cmake
|
|
-DADD_FATAL_EXAMPLE=OFF
|
|
-DADD_G3LOG_BENCH_PERFORMANCE=OFF
|
|
-DADD_G3LOG_UNIT_TEST=OFF
|
|
-DVERSION=${VERSION}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/g3log)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|