2023-03-28 02:57:32 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://github.com/KDAB/KDSoap/releases/download/kdsoap-${VERSION}/kdsoap-${VERSION}.tar.gz"
|
|
|
|
FILENAME "kdsoap-${VERSION}.tar.gz"
|
2024-01-11 09:24:17 +08:00
|
|
|
SHA512 6ed5cd6a0d02a9faf6881facbd28391c553b3671512153ecd058ab53bfbe9d3f0afa3704d580e66010ddf6a3de7e578a632339f8c1ae7529c28f9d5fd7d1eb5f
|
2023-03-28 02:57:32 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-03-22 15:00:55 +08:00
|
|
|
)
|
|
|
|
|
2020-09-19 08:17:21 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KDSoap_STATIC)
|
|
|
|
|
2023-03-28 02:57:32 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-04-22 05:48:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-09-19 08:17:21 +08:00
|
|
|
OPTIONS
|
2023-03-28 02:57:32 +08:00
|
|
|
-DKDSoap_QT6=ON
|
2020-09-19 08:17:21 +08:00
|
|
|
-DKDSoap_STATIC=${KDSoap_STATIC}
|
|
|
|
-DKDSoap_EXAMPLES=OFF
|
2019-03-22 15:00:55 +08:00
|
|
|
)
|
|
|
|
|
2023-03-28 02:57:32 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME KDSoap-qt6 CONFIG_PATH lib/cmake/KDSoap-qt6)
|
2019-03-22 15:00:55 +08:00
|
|
|
|
2023-03-28 02:57:32 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES kdwsdl2cpp-qt6 AUTO_CLEAN)
|
2020-02-12 09:30:03 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2020-02-12 09:30:03 +08:00
|
|
|
endif()
|
2020-09-19 08:17:21 +08:00
|
|
|
|
2023-03-28 02:57:32 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-09-19 08:17:21 +08:00
|
|
|
|
2024-01-11 09:24:17 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|