2019-05-24 12:58:54 +08:00
|
|
|
vcpkg_from_github(
|
2020-01-03 05:55:20 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-05-24 12:58:54 +08:00
|
|
|
REPO jmcnamara/libxlsxwriter
|
2024-10-03 23:18:58 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 4d1df3b66e694629025ba4154a746d896f9fa32c727267cfbeacf72a3fc70d1b34c7bc767a03bca81395bbe2ff366fc4f4184c2c40126bc6b2d58b33a758cc8f
|
|
|
|
HEAD_REF main
|
2023-05-09 09:25:24 +08:00
|
|
|
PATCHES
|
|
|
|
dependencies.diff
|
2019-05-24 12:58:54 +08:00
|
|
|
)
|
2023-05-09 09:25:24 +08:00
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/third_party/minizip")
|
2019-05-24 12:58:54 +08:00
|
|
|
|
2023-05-09 09:25:24 +08:00
|
|
|
set(USE_WINDOWSSTORE OFF)
|
2020-01-03 05:55:20 +08:00
|
|
|
if (VCPKG_TARGET_IS_UWP)
|
2023-05-09 09:25:24 +08:00
|
|
|
set(USE_WINDOWSSTORE ON)
|
2019-05-24 12:58:54 +08:00
|
|
|
endif()
|
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-05-09 09:25:24 +08:00
|
|
|
-DUSE_SYSTEM_MINIZIP=1
|
2021-09-04 05:14:39 +08:00
|
|
|
-DWINDOWSSTORE=${USE_WINDOWSSTORE}
|
2019-05-24 12:58:54 +08:00
|
|
|
)
|
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-11-16 06:54:04 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_pdbs()
|
2019-05-24 12:58:54 +08:00
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-05-24 12:58:54 +08:00
|
|
|
|
2023-05-09 09:25:24 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")
|