2019-03-16 06:29:08 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO GNOME/libxml2
|
2020-09-05 11:29:01 +08:00
|
|
|
REF v2.9.10
|
|
|
|
SHA512 de8d7c6c90f9d0441747deec320c4887faee1fd8aff9289115caf7ce51ab73b6e2c4628ae7eaad4a33a64561d23a92fd5e8a5afa7fa74183bdcd9a7b06bc67f1
|
2019-03-16 06:29:08 +08:00
|
|
|
HEAD_REF master
|
2020-01-17 05:33:22 +08:00
|
|
|
PATCHES
|
|
|
|
RemoveIncludeFromWindowsRcFile.patch
|
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
|
|
|
|
2020-11-12 07:28:09 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
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")
|
2020-09-05 11:29:01 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
2018-03-12 14:41:51 +08:00
|
|
|
endif()
|
2020-11-12 07:28:09 +08:00
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
file(INSTALL ${SOURCE_PATH}/Copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|