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-08-25 04:43:57 +08:00
|
|
|
REF d1b906991a7587688d384b648c55731f9be52506
|
|
|
|
SHA512 ac1229f95db9ab6367d7650e27b87e76a0874e01c9d404e8c5fb75ba2761318218b658a4f7522188fda8008974393a333a8a5fbed8e3a472c98445f13e459ad5
|
2019-05-03 13:57:43 +08:00
|
|
|
HEAD_REF master
|
2017-11-08 14:08:05 +08:00
|
|
|
)
|
2017-11-09 03:18:21 +08:00
|
|
|
|
2022-03-17 02:48:58 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-01 00:31:22 +08:00
|
|
|
NO_CHARSET_FLAG
|
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
|
|
|
)
|
2022-03-17 02:48:58 +08:00
|
|
|
vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/libxslt/bin")
|
|
|
|
vcpkg_cmake_install()
|
2017-11-08 14:08:05 +08:00
|
|
|
|
2022-03-17 02:48:58 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-11-08 14:08:05 +08:00
|
|
|
|
2022-03-17 02:48:58 +08:00
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/tidyd.exe")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/tidyd")
|
2020-03-11 06:59:38 +08:00
|
|
|
|
2022-03-17 02:48:58 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES tidy AUTO_CLEAN)
|
2017-11-09 03:18:21 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2022-03-17 02:48:58 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2017-11-09 03:18:21 +08:00
|
|
|
endif()
|
|
|
|
|
2022-03-17 02:48:58 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/README/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|