2017-06-21 06:20:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO leethomason/tinyxml2
|
2024-06-06 15:27:36 +08:00
|
|
|
REF 10.0.0
|
|
|
|
SHA512 a359d33bc12fad455b53d81011dbe12727cae0aabfaa5704f1a25807ca216dd854a571291029886c0beedeca5c3b6393dd49c4718773e18a0e008abbdb3de36a
|
2017-06-21 06:20:52 +08:00
|
|
|
HEAD_REF master
|
2022-10-29 12:40:50 +08:00
|
|
|
PATCHES
|
|
|
|
0001-fix-do-not-force-export-the-symbols-when-building-st.patch
|
|
|
|
0002-fix-check-for-TINYXML2_EXPORT-on-non-windows.patch
|
2024-06-06 15:27:36 +08:00
|
|
|
0003-fix-Android-SDK-below-24-does-not-support-fseeko.patch
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
|
2021-10-12 11:12:26 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-04-20 05:31:08 +08:00
|
|
|
OPTIONS
|
|
|
|
-Dtinyxml2_BUILD_TESTING=OFF
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
|
2021-10-12 11:12:26 +08:00
|
|
|
vcpkg_cmake_install()
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2021-10-12 11:12:26 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tinyxml2)
|
2020-06-19 06:30:42 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-06-21 06:20:52 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-12 11:12:26 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-06-21 06:20:52 +08:00
|
|
|
|
2022-04-20 05:31:08 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|