2016-10-16 02:52:05 +08:00
|
|
|
include(vcpkg_common_functions)
|
2019-03-16 06:29:08 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO GNOME/libxml2
|
|
|
|
REF v2.9.9
|
|
|
|
SHA512 bfcc08bd033f538a968205f0f9e2da4c3438ec2f35f017289783903365e13ed93d83f2f63c7497344a362b7418170ee586a5ecb45493e30feaa0f62b22a57b54
|
|
|
|
HEAD_REF master
|
2016-10-16 02:52:05 +08:00
|
|
|
)
|
|
|
|
|
2017-04-06 07:07:40 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2016-10-16 02:52:05 +08:00
|
|
|
|
2017-04-06 07:07:40 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2018-04-04 06:59:54 +08:00
|
|
|
OPTIONS -DPORT_DIR=${CMAKE_CURRENT_LIST_DIR}
|
2017-04-06 07:07:40 +08:00
|
|
|
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
2016-10-16 02:52:05 +08:00
|
|
|
)
|
|
|
|
|
2017-04-06 07:07:40 +08:00
|
|
|
vcpkg_install_cmake()
|
2016-10-16 02:52:05 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2019-03-16 06:29:08 +08:00
|
|
|
configure_file(${SOURCE_PATH}/Copyright ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
|
|
|
|
|
|
|
# Install usage
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
2016-11-01 04:35:53 +08:00
|
|
|
|
2017-08-30 13:19:34 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2018-03-12 14:41:51 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxml2)
|
|
|
|
endif()
|