aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/loguru
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/loguru
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/loguru')
-rw-r--r--vcpkg/ports/loguru/copyright3
-rw-r--r--vcpkg/ports/loguru/portfile.cmake32
-rw-r--r--vcpkg/ports/loguru/vcpkg.json28
3 files changed, 63 insertions, 0 deletions
diff --git a/vcpkg/ports/loguru/copyright b/vcpkg/ports/loguru/copyright
new file mode 100644
index 0000000..334edab
--- /dev/null
+++ b/vcpkg/ports/loguru/copyright
@@ -0,0 +1,3 @@
+This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, modify and distribute it as you see fit.
+
+That being said, I would appreciate credit! If you find Loguru useful, tweet me at @ernerfeldt mail me at emil.ernerfeldt@gmail.com. \ No newline at end of file
diff --git a/vcpkg/ports/loguru/portfile.cmake b/vcpkg/ports/loguru/portfile.cmake
new file mode 100644
index 0000000..b3fc6a5
--- /dev/null
+++ b/vcpkg/ports/loguru/portfile.cmake
@@ -0,0 +1,32 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO emilk/loguru
+ REF 4adaa185883e3c04da25913579c451d3c32cfac1 #v2.1.0
+ SHA512 813c9f9171a828a40270a3ad9f98124586eb56d37f263d55cd1ea6ac997d64431e2ae846f3dc0b477f8bf30873270c53b4bd7e6b6fc52259d2fd36126b24bbe6
+ HEAD_REF master
+)
+
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ fmt LOGURU_USE_FMTLIB
+ stream LOGURU_WITH_STREAMS
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ )
+
+vcpkg_cmake_install()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/loguru")
+vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig()
+
+
+vcpkg_install_copyright(FILE_LIST "${CMAKE_CURRENT_LIST_DIR}/copyright")
diff --git a/vcpkg/ports/loguru/vcpkg.json b/vcpkg/ports/loguru/vcpkg.json
new file mode 100644
index 0000000..a6d854f
--- /dev/null
+++ b/vcpkg/ports/loguru/vcpkg.json
@@ -0,0 +1,28 @@
+{
+ "name": "loguru",
+ "version": "2.1.0",
+ "port-version": 6,
+ "description": "A lightweight and flexible C++ logging library",
+ "homepage": "https://github.com/emilk/loguru",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "fmt": {
+ "description": "Build with fmt support in non-header-only mode",
+ "dependencies": [
+ "fmt"
+ ]
+ },
+ "stream": {
+ "description": "Build with support for stream style logging"
+ }
+ }
+}