2017-03-18 23:18:38 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2018-06-27 10:05:11 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO tfussell/xlnt
|
|
|
|
REF v1.2.0
|
|
|
|
SHA512 e95eeb23ffe0bd68081a3a1dccfc2164697d4fac4386ddb9cc1029180a499de250c28df34d1b3971ff26e95a55d822f43efe032aa989321ee29d3d3e7a8b5587
|
|
|
|
HEAD_REF master
|
2017-03-18 23:18:38 +08:00
|
|
|
)
|
|
|
|
|
2016-12-04 07:30:37 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
2017-03-18 23:18:38 +08:00
|
|
|
set(STATIC OFF)
|
2016-12-04 07:30:37 +08:00
|
|
|
else()
|
2017-03-18 23:18:38 +08:00
|
|
|
set(STATIC ON)
|
2016-12-04 07:30:37 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2018-06-27 10:05:11 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2016-12-04 07:30:37 +08:00
|
|
|
OPTIONS -DTESTS=OFF -DSAMPLES=OFF -DBENCHMARKS=OFF -DSTATIC=${STATIC}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-11-01 18:03:33 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/man)
|
2018-06-27 10:05:11 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/xlnt RENAME copyright)
|
2016-12-04 07:30:37 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|