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-09-04 05:14:39 +08:00
|
|
|
REF 576d169463c7f9990045fd9223f5cf688150def0 #RELEASE_1.1.3
|
|
|
|
SHA512 376db117df3ab48a6471d7004fc77fb8bd9b5d9dfaff53675f1bd99c8bc9bec7cadcefbd7116b206ef4703b9146cf097ad3b8aadff36b66302f1c82e8e1fa988
|
|
|
|
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()
|
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
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|