early-access version 2853
This commit is contained in:
36
externals/vcpkg/ports/g3log/portfile.cmake
vendored
Executable file
36
externals/vcpkg/ports/g3log/portfile.cmake
vendored
Executable file
@@ -0,0 +1,36 @@
|
||||
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)
|
||||
8
externals/vcpkg/ports/g3log/vcpkg.json
vendored
Executable file
8
externals/vcpkg/ports/g3log/vcpkg.json
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "g3log",
|
||||
"version": "1.3.4",
|
||||
"port-version": 2,
|
||||
"description": "Asynchronous logger with Dynamic Sinks",
|
||||
"homepage": "https://github.com/KjellKod/g3log",
|
||||
"supports": "!(arm | uwp)"
|
||||
}
|
||||
Reference in New Issue
Block a user