2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2018-12-19 04:46:19 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-27 06:06:30 +08:00
|
|
|
REPO tinyxml/tinyxml
|
2018-12-19 04:46:19 +08:00
|
|
|
REF 2.6.2
|
2020-06-27 06:06:30 +08:00
|
|
|
FILENAME "tinyxml_2_6_2.tar.gz"
|
|
|
|
SHA512 133b5db06131a90ad0c2b39b0063f1c8e65e67288a7e5d67e1f7d9ba32af10dc5dfa0462f9723985ee27debe8f09a10a25d4b5a5aaff2ede979b1cebe8e59d56
|
2017-09-04 03:23:07 +08:00
|
|
|
PATCHES
|
2018-12-19 04:46:19 +08:00
|
|
|
0001_use_stl.patch
|
|
|
|
0002_export_tinyxml.patch
|
2017-09-04 03:23:07 +08:00
|
|
|
)
|
|
|
|
|
2018-12-19 04:46:19 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
2017-09-04 03:23:07 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2020-05-22 02:54:42 +08:00
|
|
|
vcpkg_fixup_cmake_targets()
|
2017-09-04 03:23:07 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2020-05-22 02:54:42 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2017-09-04 03:23:07 +08:00
|
|
|
|
|
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml RENAME copyright)
|
2019-03-06 02:39:01 +08:00
|
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/tinyxml-config.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml)
|