Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
58 changes: 58 additions & 0 deletions ports/logme/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO efmsoft/logme
REF v2.4.3
SHA512 343da7575848519861fa9f7c3987495d58fdd0d7fa2b22f77121230647bf233e98b743a6194a386c23479d940e4a88050d34447c77a730c8dcbacdf6f2b1727f
HEAD_REF master
)

vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
examples LOGME_BUILD_EXAMPLES
tools LOGME_BUILD_TOOLS
)

if(VCPKG_TARGET_IS_UWP)
list(APPEND FEATURE_OPTIONS
-DLOGME_BUILD_EXAMPLES=OFF
-DLOGME_BUILD_TOOLS=OFF
)
endif()

@dg0yt dg0yt Feb 5, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(VCPKG_TARGET_IS_UWP)
list(APPEND FEATURE_OPTIONS
-DLOGME_BUILD_EXAMPLES=OFF
-DLOGME_BUILD_TOOLS=OFF
)
endif()

Handled by supports in the manifest.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All suggested changes are now applied (examples removed, tools handled via vcpkg_copy_tools, config fixup simplified). Could you please re-review? Thanks!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed the tools feature entirely. The CLI utility is not required for the library package, and attempting to package it caused repeated issues with vcpkg_copy_tools and feature testing (especially on single-config triplets). To avoid fragile install logic and CI failures, we decided to ship only the library.


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
-DUSE_JSONCPP=ON
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(
PACKAGE_NAME logme
CONFIG_PATH lib/cmake/logme
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vcpkg_cmake_config_fixup(
PACKAGE_NAME logme
CONFIG_PATH lib/cmake/logme
)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/logme)


file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
)

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

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess what is really needed is vcpkg_copy_tools.


vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
7 changes: 7 additions & 0 deletions ports/logme/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
logme provides CMake package config files.
In your CMakeLists.txt:

find_package(logme CONFIG REQUIRED)
target_link_libraries(your_target PRIVATE logme::logme)

The logme::logme target is stable for both static and shared builds.
22 changes: 22 additions & 0 deletions ports/logme/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "logme",
"version": "2.4.3",
"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"
],
"features": {
"examples": {
"description": "Build examples.",
"supports": "!uwp"
},
"tools": {
"description": "Build command-line tools.",
"supports": "!uwp"
}
}
}
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.3",
"port-version": 0
},
"loguru": {
"baseline": "2.1.0",
"port-version": 6
Expand Down
29 changes: 29 additions & 0 deletions versions/l-/logme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
Comment thread
vicroms marked this conversation as resolved.
"versions": [
{
"git-tree": "173a32b0bbec5733eb820835ad9b91aaf3b2a743",
"version": "2.4.3",
"port-version": 0
},
{
"git-tree": "4461159bc1698d26764846b92b7ea899fb56c4b2",
"version": "2.4.1",
"port-version": 1
},
{
"git-tree": "f6b7138d7313b2943269517a445ef877def6bd71",
"version": "2.4.1",
"port-version": 0
},
{
"git-tree": "5dd719e238c0a23527371d11641cfabddeb27341",
"version": "1.9.0",
"port-version": 0
},
{
"git-tree": "0de4c344a23e38f819b9d67f574c50c10c96a5e4",
"version": "1.6.0",
"port-version": 0
}
]
}