2018-10-24 20:50:57 +01:00
|
|
|
include(vcpkg_common_functions)
|
2017-04-11 21:58:14 +10:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO apache/xalan-c
|
|
|
|
REF 177da75646a80fae2c22a315c0d987a5eadba143
|
|
|
|
SHA512 e0f095b7031394c39c8e0fdca1f820c4222466f8c6e9df7bc40a21f9ca0e9291b7b6cdfb0a2d67db275ae97d7a7cdd447637102639e74716f0fb23a946b30ebe
|
|
|
|
PATCHES
|
|
|
|
fix-win-deprecated-err.patch
|
2019-09-07 18:36:30 -05:00
|
|
|
fix-missing-dll-error.patch
|
2019-12-06 02:18:47 -08:00
|
|
|
fix-linux-no-bin.patch
|
2018-12-12 20:47:57 +00:00
|
|
|
)
|
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2019-12-21 11:34:24 -08:00
|
|
|
OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_ICU=ON
|
2018-12-12 20:47:57 +00:00
|
|
|
)
|
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
vcpkg_install_cmake()
|
2017-04-11 21:58:14 +10:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
2019-09-07 18:36:30 -05:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/xalanc)
|
2017-04-11 21:58:14 +10:00
|
|
|
else()
|
2019-09-07 18:36:30 -05:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/XalanC TARGET_PATH share/xalanc)
|
2017-04-11 21:58:14 +10:00
|
|
|
endif()
|
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
# cleanup
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
|
|
|
)
|
2017-04-11 21:58:14 +10:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
2019-07-30 00:11:43 +01:00
|
|
|
else()
|
2019-08-07 11:46:34 -05:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/Xalan.exe ${CURRENT_PACKAGES_DIR}/debug/bin/Xalan.exe)
|
|
|
|
endif()
|
2019-07-30 00:11:43 +01:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/xalan-c)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/xalan-c/LICENSE ${CURRENT_PACKAGES_DIR}/share/xalan-c/copyright)
|
2017-04-22 02:37:28 +10:00
|
|
|
|
2019-08-07 11:46:34 -05:00
|
|
|
vcpkg_copy_pdbs()
|