mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 05:31:37 +08:00
31 lines
789 B
CMake
31 lines
789 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO jmcnamara/libxlsxwriter
|
|
REF "v${VERSION}"
|
|
SHA512 4d1df3b66e694629025ba4154a746d896f9fa32c727267cfbeacf72a3fc70d1b34c7bc767a03bca81395bbe2ff366fc4f4184c2c40126bc6b2d58b33a758cc8f
|
|
HEAD_REF main
|
|
PATCHES
|
|
dependencies.diff
|
|
)
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/third_party/minizip")
|
|
|
|
set(USE_WINDOWSSTORE OFF)
|
|
if (VCPKG_TARGET_IS_UWP)
|
|
set(USE_WINDOWSSTORE ON)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DUSE_SYSTEM_MINIZIP=1
|
|
-DWINDOWSSTORE=${USE_WINDOWSSTORE}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")
|