diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/oatpp | |
Diffstat (limited to 'vcpkg/ports/oatpp')
| -rw-r--r-- | vcpkg/ports/oatpp/fix-target.patch | 12 | ||||
| -rw-r--r-- | vcpkg/ports/oatpp/portfile.cmake | 33 | ||||
| -rw-r--r-- | vcpkg/ports/oatpp/vcpkg.json | 17 |
3 files changed, 62 insertions, 0 deletions
diff --git a/vcpkg/ports/oatpp/fix-target.patch b/vcpkg/ports/oatpp/fix-target.patch new file mode 100644 index 0000000..e2e40c7 --- /dev/null +++ b/vcpkg/ports/oatpp/fix-target.patch @@ -0,0 +1,12 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 13cccc2c..c4a3fe44 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -301,6 +301,7 @@ set_target_properties(oatpp PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD_REQUIRED ON + ) ++target_compile_features(oatpp PUBLIC cxx_std_11) + if (MSVC) + target_compile_options(oatpp PRIVATE /permissive-) + endif() diff --git a/vcpkg/ports/oatpp/portfile.cmake b/vcpkg/ports/oatpp/portfile.cmake new file mode 100644 index 0000000..b9d94b3 --- /dev/null +++ b/vcpkg/ports/oatpp/portfile.cmake @@ -0,0 +1,33 @@ +set(OATPP_VERSION "1.3.0") + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO oatpp/oatpp + REF "1.3.1" + SHA512 2d6aec0a7f298fef19ce77517643388af4f127abe710b619aa17301b1c869b05f05758323370abdcc2eca9c675045f86b185af00b1689e469fc8aa4e02971f92 + HEAD_REF master + PATCHES + fix-target.patch +) + +if (VCPKG_CRT_LINKAGE STREQUAL "static") + set(OATPP_MSVC_LINK_STATIC_RUNTIME TRUE) +else() + set(OATPP_MSVC_LINK_STATIC_RUNTIME FALSE) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DOATPP_BUILD_TESTS:BOOL=OFF" + "-DOATPP_MSVC_LINK_STATIC_RUNTIME=${OATPP_MSVC_LINK_STATIC_RUNTIME}" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp CONFIG_PATH lib/cmake/oatpp-${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/vcpkg.json b/vcpkg/ports/oatpp/vcpkg.json new file mode 100644 index 0000000..1089200 --- /dev/null +++ b/vcpkg/ports/oatpp/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "oatpp", + "version": "1.3.1", + "description": "Modern web framework.", + "homepage": "https://github.com/oatpp/oatpp", + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |