diff options
| author | Guekka <39066502+Guekka@users.noreply.github.com> | 2021-09-14 22:02:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-14 15:02:27 -0700 |
| commit | 583ce287cd44cbeb8d2b6cd35febf50aa0b5a626 (patch) | |
| tree | a5265d65b507139d6bd968cf9bcaa1ea2c9bbbd8 /ports | |
| parent | 1a13ae06ecca29b57fc88ce6d00eab5009f443cb (diff) | |
| download | vcpkg-583ce287cd44cbeb8d2b6cd35febf50aa0b5a626.tar.gz vcpkg-583ce287cd44cbeb8d2b6cd35febf50aa0b5a626.zip | |
[rsm-bsa] new port (#19496)
* [bsa] new port
* [bsa] Update version file
* [bsa] Update ci baseline
* [bsa] Update version database
* [bsa] Add patch for minimum cmake version
* [bsa] Update ci baseline
* Update version database
* Try more CI
* Fix merge typo
* [bsa] Update library version
* Update versions database
* Apply suggestions from code review
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
* Update versions/b-/bsa.json
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
* Update versions database
* [bsa] Add warning instead of fail on Linux
* Update versions database
* Update ports/bsa/vcpkg.json
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
* Update version database
* Rename to rsm-bsa
* Update versions database
* Update versions/baseline.json
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
* Fix typo
* Update versions
* Update ci.baseline.txt
* Remove rsm-bsa:x64-linux=fail in ci.baseline.txt now that VMs have G++10.
* Revert "Remove rsm-bsa:x64-linux=fail in ci.baseline.txt now that VMs have G++10."
because we actually are on gcc 9.x :(
This reverts commit 781289dc26d5c018a2486581fb89fc00d60198ee.
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/rsm-bsa/portfile.cmake | 28 | ||||
| -rw-r--r-- | ports/rsm-bsa/vcpkg.json | 20 |
2 files changed, 48 insertions, 0 deletions
diff --git a/ports/rsm-bsa/portfile.cmake b/ports/rsm-bsa/portfile.cmake new file mode 100644 index 000000000..9d94ff11f --- /dev/null +++ b/ports/rsm-bsa/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_fail_port_install(ON_TARGET "OSX" "UWP" ON_ARCH "x86")
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Ryan-rsm-McKenzie/bsa
+ REF 2.0.3
+ SHA512 b54f1cbc88e55b98b0c25ee81007dc42df736836784b2a1e2e91652b46a73054671d798cc0007ea79b7cf0c8181021bb0cbc95ae407d4a538298d668b4c8fe69
+ HEAD_REF master
+)
+
+if (VCPKG_TARGET_IS_LINUX)
+ message(WARNING "Build ${PORT} requires at least gcc 10.")
+endif()
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/bsa")
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug/include
+ ${CURRENT_PACKAGES_DIR}/debug/share
+)
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/rsm-bsa/vcpkg.json b/ports/rsm-bsa/vcpkg.json new file mode 100644 index 000000000..a586e2565 --- /dev/null +++ b/ports/rsm-bsa/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "rsm-bsa", + "version-semver": "2.0.3", + "description": "A C++ library for working with the Bethesda archive file format", + "homepage": "https://github.com/Ryan-rsm-McKenzie/bsa", + "documentation": "https://ryan-rsm-mckenzie.github.io/bsa/", + "supports": "!x86 & !osx & !uwp", + "dependencies": [ + "lz4", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ] +} |
