vcpkg/ports/rsm-bsa/portfile.cmake

40 lines
1.0 KiB
CMake
Raw Permalink Normal View History

[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>
2021-09-15 06:02:27 +08:00
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Ryan-rsm-McKenzie/bsa
REF 4.1.0
SHA512 c488a4f7cffa59064baafd429cf118a8f8a7b5594a0bd49a0ed468572b37af2e7428a83ad83cc7b13b556744a444cb7b8a4591c7018e49cadb1c5d42ae780f51
[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>
2021-09-15 06:02:27 +08:00
HEAD_REF master
PATCHES
DirectXTexUint8Byte.patch
[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>
2021-09-15 06:02:27 +08:00
)
if (VCPKG_TARGET_IS_LINUX)
message(WARNING "Build ${PORT} requires at least gcc 10.")
endif()
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
xmem BSA_SUPPORT_XMEM
)
[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>
2021-09-15 06:02:27 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
${FEATURE_OPTIONS}
[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>
2021-09-15 06:02:27 +08:00
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME bsa
CONFIG_PATH "lib/cmake/bsa"
)
[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>
2021-09-15 06:02:27 +08:00
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/share
[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>
2021-09-15 06:02:27 +08:00
)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)