diff options
Diffstat (limited to 'vcpkg/ports/status-code')
| -rw-r--r-- | vcpkg/ports/status-code/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/status-code/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/status-code/vcpkg.json | 21 |
3 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/status-code/portfile.cmake b/vcpkg/ports/status-code/portfile.cmake new file mode 100644 index 0000000..c0a5241 --- /dev/null +++ b/vcpkg/ports/status-code/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ned14/status-code + REF 525e324b1b85fbd1bf74046d760068b7e27b8cda + SHA512 c70a33558e7399aff5d069ddd032ed5896ab2f0075bc864f12f335c1e7023be95503f5ee9dec481fd30b2fbb72611847e50653113a77aa4032121f87f6eb8377 + HEAD_REF master + PATCHES +) + +# Because status-code's deployed files are header-only, the debug build is not necessary +set(VCPKG_BUILD_TYPE release) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF + -Dstatus-code_IS_DEPENDENCY=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON + MAYBE_UNUSED_VARIABLES + CMAKE_DISABLE_FIND_PACKAGE_Boost +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/status-code) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Licence.txt") diff --git a/vcpkg/ports/status-code/usage b/vcpkg/ports/status-code/usage new file mode 100644 index 0000000..52d8cd7 --- /dev/null +++ b/vcpkg/ports/status-code/usage @@ -0,0 +1,4 @@ +The package status-code provides CMake targets:
+
+ find_package(status-code CONFIG REQUIRED)
+ target_link_libraries(main PUBLIC status-code::hl)
diff --git a/vcpkg/ports/status-code/vcpkg.json b/vcpkg/ports/status-code/vcpkg.json new file mode 100644 index 0000000..3b03f26 --- /dev/null +++ b/vcpkg/ports/status-code/vcpkg.json @@ -0,0 +1,21 @@ +{ + "name": "status-code", + "version-date": "2025-05-21", + "maintainers": [ + "Niall Douglas <s_github@nedprod.com>", + "Henrik Gaßmann <henrik@gassmann.onl>" + ], + "description": "Proposed SG14 status_code for the C++ standard (https://wg21.link/P1028).", + "homepage": "https://github.com/ned14/status-code", + "license": "Apache-2.0 OR BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |