diff options
Diffstat (limited to 'vcpkg/ports/astr')
| -rw-r--r-- | vcpkg/ports/astr/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/astr/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/astr/vcpkg.json | 17 |
3 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/astr/portfile.cmake b/vcpkg/ports/astr/portfile.cmake new file mode 100644 index 0000000..bd52174 --- /dev/null +++ b/vcpkg/ports/astr/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO a4z/astr + REF "${VERSION}" + SHA512 528f851821e3bd0719881ed237b1720529a7c9141005214b1963565f164d1a6ec89adb1ea8efee0fa818ba9d8961afb4c7adfc91aca6308799d1ecbd8a9f2ab2 + HEAD_REF main +) + +set(VCPKG_BUILD_TYPE release) # header-only + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/astr/usage b/vcpkg/ports/astr/usage new file mode 100644 index 0000000..d6f0874 --- /dev/null +++ b/vcpkg/ports/astr/usage @@ -0,0 +1,4 @@ +astr provides CMake targets: + + find_package(astr CONFIG REQUIRED) + target_link_libraries(main PRIVATE a4z::astr) diff --git a/vcpkg/ports/astr/vcpkg.json b/vcpkg/ports/astr/vcpkg.json new file mode 100644 index 0000000..8f21727 --- /dev/null +++ b/vcpkg/ports/astr/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "astr", + "version": "0.3.0", + "description": "Compile-time array string header-only library.", + "homepage": "https://github.com/a4z/astr", + "license": "MPL-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |