Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
29 changes: 29 additions & 0 deletions ports/logme/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO efmsoft/logme
REF "v${VERSION}"
SHA512 49e1e980d0c8079757d44e16e435dd8bea4c42f43c914d29d5f385e7bcd4068d461c1120b844bdc7c8cf6ced8fe9abc1ddef51f67f3cb04b1df46d2fbe71b40d
HEAD_REF master
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" _logme_static_opt)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" _logme_dynamic_opt)

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")
18 changes: 18 additions & 0 deletions ports/logme/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "logme",
"version": "2.4.4",
"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",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
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": 0
},
"loguru": {
"baseline": "2.1.0",
"port-version": 6
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/logme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
Comment thread
vicroms marked this conversation as resolved.
"versions": [
{
"git-tree": "eede1cb6626f8f8edd45249fa174376b17eb8b1a",
"version": "2.4.4",
"port-version": 0
}
]
}