2019-07-19 05:01:08 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-10-13 11:30:04 +08:00
|
|
|
REPO BinomialLLC/basis_universal
|
2024-11-05 17:12:20 +08:00
|
|
|
REF "v1_50_0_2"
|
|
|
|
SHA512 845077e9c88a3610b4845bbf4856a2141d678751eb2b5eba26bb4cbbaa0199ad4eae6a37dee485bfcac9d583ee6dca983f300fb7e2b86dfbc9824b5059e11345
|
2019-07-19 05:01:08 +08:00
|
|
|
HEAD_REF master
|
2024-11-05 17:12:20 +08:00
|
|
|
PATCHES
|
|
|
|
# Remove once https://github.com/BinomialLLC/basis_universal/pull/383 merged
|
|
|
|
0001-cmake.patch
|
2019-07-19 05:01:08 +08:00
|
|
|
)
|
|
|
|
|
2022-07-12 06:38:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-19 05:01:08 +08:00
|
|
|
OPTIONS
|
2024-11-05 17:12:20 +08:00
|
|
|
-DEXAMPLES=OFF
|
2019-07-19 05:01:08 +08:00
|
|
|
)
|
|
|
|
|
2022-07-12 06:38:12 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2019-07-19 05:01:08 +08:00
|
|
|
|
2023-10-13 11:30:04 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES "basisu" AUTO_CLEAN)
|
|
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
2024-11-05 17:12:20 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME basisu CONFIG_PATH lib/cmake/basisu)
|
2019-07-19 05:01:08 +08:00
|
|
|
|
2023-10-13 11:30:04 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|