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
|
2021-11-16 06:54:04 +08:00
|
|
|
REF RELEASE_1.1.4
|
|
|
|
SHA512 fad36f7882fcb21b87e13cf603022cfad3f14e6f955a06e2771712facd0fe12f83f4d1655dc1a744724bda1ac83af7e7bf1393457c5507d8983f63002ab294b5
|
2021-09-04 05:14:39 +08:00
|
|
|
HEAD_REF master
|
2019-05-24 12:58:54 +08:00
|
|
|
)
|
|
|
|
|
2020-01-03 05:55:20 +08:00
|
|
|
if (VCPKG_TARGET_IS_UWP)
|
2019-05-24 12:58:54 +08:00
|
|
|
set(USE_WINDOWSSTORE ON)
|
|
|
|
else()
|
|
|
|
set(USE_WINDOWSSTORE OFF)
|
|
|
|
endif()
|
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-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
|
|
|
|
2021-11-16 06:54:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2019-05-24 12:58:54 +08:00
|
|
|
|