Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions ports/logme/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO efmsoft/logme
REF v2.4.4
SHA512 49e1e980d0c8079757d44e16e435dd8bea4c42f43c914d29d5f385e7bcd4068d461c1120b844bdc7c8cf6ced8fe9abc1ddef51f67f3cb04b1df46d2fbe71b40d
HEAD_REF master
)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(_logme_static_opt ON)
set(_logme_dynamic_opt OFF)
else()
set(_logme_static_opt OFF)
set(_logme_dynamic_opt ON)
endif()
Comment thread
efmsoft marked this conversation as resolved.
Outdated

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DLOGME_BUILD_STATIC=${_logme_static_opt}
-DLOGME_BUILD_DYNAMIC=${_logme_dynamic_opt}
-DLOGME_BUILD_TESTS=OFF
-DLOGME_BUILD_EXAMPLES=OFF
-DLOGME_BUILD_TOOLS=OFF
-DUSE_JSONCPP=ON
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/logme)


file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
13 changes: 13 additions & 0 deletions ports/logme/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "logme",
"version": "2.4.4",
"port-version": 1,
Comment thread
efmsoft marked this conversation as resolved.
Outdated
"description": "Cross-platform C/C++ logging framework: channels and routing, multiple backends, colored output, and runtime dynamic control.",
"homepage": "https://github.com/efmsoft/logme",
"license": "Apache-2.0",
"dependencies": [
"jsoncpp",
"vcpkg-cmake",
"vcpkg-cmake-config"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6008,6 +6008,10 @@
"baseline": "1.5.0",
"port-version": 0
},
"logme": {
"baseline": "2.4.4",
"port-version": 1
Comment thread
efmsoft marked this conversation as resolved.
Outdated
},
"loguru": {
"baseline": "2.1.0",
"port-version": 6
Expand Down
14 changes: 14 additions & 0 deletions versions/l-/logme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
Comment thread
vicroms marked this conversation as resolved.
"versions": [
{
"git-tree": "c17be1bf20acf81dbaec38ceaba0b390706d6440",
"version": "2.4.4",
"port-version": 1
},
{
"git-tree": "cd91bd9fafc4cd5df3bd9c3402820745b4a3d058",
"version": "2.4.4",
"port-version": 0
}
]
}