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
|
2018-08-24 19:07:38 +08:00
|
|
|
REF v1.3.0
|
|
|
|
SHA512 716b93a6138daf1e293980a3c26801bfd00aa713afdd9cbe9be672ccff8c86b69b26eb0f3e8259bd0844e04d0e6148b64467d7db6815c76ecf412715d506786f
|
2018-06-27 10:05:11 +08:00
|
|
|
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()
|