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/intx | |
Diffstat (limited to 'vcpkg/ports/intx')
| -rw-r--r-- | vcpkg/ports/intx/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/intx/vcpkg.json | 17 |
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/intx/portfile.cmake b/vcpkg/ports/intx/portfile.cmake new file mode 100644 index 0000000..de46318 --- /dev/null +++ b/vcpkg/ports/intx/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO chfast/intx + REF "v${VERSION}" + SHA512 e1126f79cda6455aae4c04bed8deb91be4f47a6ab545a50b840f9f4df5e2d0c36be4e35e5576767b971903522ea8e37490db78efe08a85dbaadf2a396196fba6 + HEAD_REF master +) + +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DINTX_INSTALL=ON + -DINTX_TESTING=OFF + -DINTX_BENCHMARKING=OFF + -DINtX_FUZZING=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME intx CONFIG_PATH lib/cmake/intx) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/intx/vcpkg.json b/vcpkg/ports/intx/vcpkg.json new file mode 100644 index 0000000..fb7167c --- /dev/null +++ b/vcpkg/ports/intx/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "intx", + "version": "0.13.0", + "description": "Extended precision integer C++ library ", + "homepage": "https://github.com/chfast/intx", + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |