2017-11-08 14:08:05 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-11-08 14:08:05 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO htacg/tidy-html5
|
2019-05-22 12:00:24 +08:00
|
|
|
REF 5.6.0
|
|
|
|
SHA512 179088a6dbd29bb0e4f0219222f755b186145495f7414f6d0e178803ab67140391283d35352d946f9790c6b1b5b462ee6e24f1cc84f19391cb9b65e73979ffd1
|
2019-05-03 13:57:43 +08:00
|
|
|
HEAD_REF master
|
2017-11-08 14:08:05 +08:00
|
|
|
PATCHES
|
2019-05-03 13:57:43 +08:00
|
|
|
remove_execution_character_set.patch
|
2017-11-08 14:08:05 +08:00
|
|
|
)
|
2017-11-09 03:18:21 +08:00
|
|
|
|
2017-11-08 14:08:05 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2017-11-09 03:18:21 +08:00
|
|
|
OPTIONS
|
2019-05-03 13:57:43 +08:00
|
|
|
-DBUILD_SHARED_LIB=OFF
|
|
|
|
-DTIDY_CONSOLE_SHARED=OFF
|
2017-11-08 14:08:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/tidyd.exe)
|
2017-11-09 03:18:21 +08:00
|
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/tidy-html5)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/tidy.exe ${CURRENT_PACKAGES_DIR}/tools/tidy-html5/tidy.exe)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
|
|
|
|
2017-11-08 14:08:05 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/README/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tidy-html5 RENAME copyright)
|