aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/oatpp-consul
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/oatpp-consul
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/oatpp-consul')
-rw-r--r--vcpkg/ports/oatpp-consul/portfile.cmake24
-rw-r--r--vcpkg/ports/oatpp-consul/vcpkg.json19
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/oatpp-consul/portfile.cmake b/vcpkg/ports/oatpp-consul/portfile.cmake
new file mode 100644
index 0000000..83e4287
--- /dev/null
+++ b/vcpkg/ports/oatpp-consul/portfile.cmake
@@ -0,0 +1,24 @@
+set(OATPP_VERSION "1.3.0")
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO oatpp/oatpp-consul
+ REF ${OATPP_VERSION}
+ SHA512 b7bfff564e70fe94f99e959e8bc095b6cda704764c54e3837fc5f808b610c9197fbd0d601cb481a9cbf0d17fc1dece8d7cce6881a604fccbe63bd9b1c2b871f0
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-consul CONFIG_PATH lib/cmake/oatpp-consul-${OATPP_VERSION})
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/oatpp-consul/vcpkg.json b/vcpkg/ports/oatpp-consul/vcpkg.json
new file mode 100644
index 0000000..c59494d
--- /dev/null
+++ b/vcpkg/ports/oatpp-consul/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "oatpp-consul",
+ "version": "1.3.0",
+ "port-version": 1,
+ "description": "OAT++ Modern web framework consul module.",
+ "homepage": "https://github.com/oatpp/oatpp-consul",
+ "license": "Apache-2.0",
+ "dependencies": [
+ "oatpp",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}