2021-07-07 05:04:12 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO brechtsanders/xlsxio
|
2023-04-26 13:40:19 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 67b9a4e275446f3ca08e91d31f05236855e761c06ed84ea3aea8c25a7cd6729191f6c95b9efe07392775a75e2713e7ec2c6d216b8d310e7b46bee531cccba8be
|
2021-07-07 05:04:12 +08:00
|
|
|
HEAD_REF master
|
2022-07-07 04:55:52 +08:00
|
|
|
PATCHES
|
|
|
|
fix-dependencies.patch
|
2021-07-07 05:04:12 +08:00
|
|
|
)
|
|
|
|
|
2022-07-07 04:55:52 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/FindMinizip.cmake")
|
2021-07-07 05:04:12 +08:00
|
|
|
|
2022-07-07 04:55:52 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-07-07 05:04:12 +08:00
|
|
|
OPTIONS
|
2023-04-26 13:40:19 +08:00
|
|
|
-DCMAKE_POLICY_DEFAULT_CMP0012=NEW
|
2021-07-07 05:04:12 +08:00
|
|
|
-DBUILD_SHARED=${BUILD_SHARED}
|
|
|
|
-DBUILD_STATIC=${BUILD_STATIC}
|
|
|
|
-DWITH_WIDE=OFF
|
|
|
|
-DBUILD_DOCUMENTATION=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_PC_FILES=OFF
|
|
|
|
-DBUILD_TOOLS=OFF
|
|
|
|
)
|
|
|
|
|
2022-07-07 04:55:52 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2021-07-07 05:04:12 +08:00
|
|
|
|
2022-07-07 04:55:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2021-07-07 05:04:12 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2023-04-26 13:40:19 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|