mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:03:02 +08:00
[g3log] Add new port (#5961)
* [g3log] Add new port (fix #5684, fix #5941) * [g3log] Remove usage * [g3log] Restore usage * [g3log] Add UNIX support * [g3log] Use vcpkg_install_cmake * [g3log] Update to 2019-05-14 * [g3log] Update version number
This commit is contained in:
parent
cf1c05fb8c
commit
03b364f6bb
3
ports/g3log/CONTROL
Normal file
3
ports/g3log/CONTROL
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Source: g3log
|
||||||
|
Version: 2019-05-14-1
|
||||||
|
Description: Asynchronous logger with Dynamic Sinks
|
41
ports/g3log/portfile.cmake
Normal file
41
ports/g3log/portfile.cmake
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
include(vcpkg_common_functions)
|
||||||
|
|
||||||
|
vcpkg_from_github(
|
||||||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
|
REPO KjellKod/g3log
|
||||||
|
REF 376c417ad170228fa6d1b9994a6e07a2ac143a51
|
||||||
|
SHA512 fd442b895f0be2489d2be099b1faca5c964f1a3880e3867726efb5f5a17192fbf2c2d60cf118e1b68bea73cf328f0b16c0265ec0f0c0fbbb1f62f68a994f5b86
|
||||||
|
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.2-95")
|
||||||
|
|
||||||
|
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/g3logger TARGET_PATH share/g3logger)
|
||||||
|
|
||||||
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
|
|
||||||
|
# Handle copyright
|
||||||
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||||
|
|
||||||
|
# CMake integration test
|
||||||
|
vcpkg_test_cmake(PACKAGE_NAME g3logger)
|
Loading…
Reference in New Issue
Block a user