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
|
2023-08-31 05:02:36 +08:00
|
|
|
REF 4.1.0
|
|
|
|
SHA512 c488a4f7cffa59064baafd429cf118a8f8a7b5594a0bd49a0ed468572b37af2e7428a83ad83cc7b13b556744a444cb7b8a4591c7018e49cadb1c5d42ae780f51
|
2021-09-15 06:02:27 +08:00
|
|
|
HEAD_REF master
|
2024-11-04 09:18:35 +08:00
|
|
|
PATCHES
|
|
|
|
DirectXTexUint8Byte.patch
|
2021-09-15 06:02:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if (VCPKG_TARGET_IS_LINUX)
|
|
|
|
message(WARNING "Build ${PORT} requires at least gcc 10.")
|
|
|
|
endif()
|
|
|
|
|
2021-11-09 13:06:25 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
xmem BSA_SUPPORT_XMEM
|
|
|
|
)
|
|
|
|
|
2021-09-15 06:02:27 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-11-09 13:06:25 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
2021-09-15 06:02:27 +08:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
2021-11-09 13:06:25 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
PACKAGE_NAME bsa
|
|
|
|
CONFIG_PATH "lib/cmake/bsa"
|
|
|
|
)
|
2021-09-15 06:02:27 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-11-09 13:06:25 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
2021-09-15 06:02:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|