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-swagger | |
Diffstat (limited to 'vcpkg/ports/oatpp-swagger')
| -rw-r--r-- | vcpkg/ports/oatpp-swagger/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/oatpp-swagger/vcpkg.json | 18 |
2 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/oatpp-swagger/portfile.cmake b/vcpkg/ports/oatpp-swagger/portfile.cmake new file mode 100644 index 0000000..5abb629 --- /dev/null +++ b/vcpkg/ports/oatpp-swagger/portfile.cmake @@ -0,0 +1,31 @@ +set(OATPP_VERSION "1.3.0") + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO oatpp/oatpp-swagger + REF "${VERSION}" + SHA512 ba4668e3cc90163219a29d61ef5fba2f3565d9f35c2d050723b00706f2ac5bb721d020f1a49a7c9025694ff7c93c3ff7e4318ef4be5bd1438c02a54df72ba1e3 + HEAD_REF master +) + +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-swagger CONFIG_PATH lib/cmake/oatpp-swagger-${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-swagger/vcpkg.json b/vcpkg/ports/oatpp-swagger/vcpkg.json new file mode 100644 index 0000000..cc07232 --- /dev/null +++ b/vcpkg/ports/oatpp-swagger/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "oatpp-swagger", + "version": "1.3.1", + "description": "Oat++ OpenApi (Swagger) UI submodule.", + "homepage": "https://github.com/oatpp/oatpp-swagger", + "license": "Apache-2.0", + "dependencies": [ + "oatpp", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |