2020-08-08 06:38:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/kguiaddons
|
2021-07-28 08:02:50 +08:00
|
|
|
REF v5.84.0
|
|
|
|
SHA512 e5905c0aa5343ce3d4cd3765cb81390fc89fb78aec3c8de8b31d1dada8074d04f549ff785f3988498d2e274d7cb08a35a83ba031d18562049e6ca41d18ea52ee
|
2020-08-08 06:38:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-05-21 16:30:43 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
wayland WITH_WAYLAND
|
|
|
|
)
|
|
|
|
|
|
|
|
if("wayland" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_LINUX)
|
|
|
|
message(FATAL_ERROR "Feature wayland is only supported on Linux.")
|
|
|
|
endif()
|
|
|
|
|
2020-08-08 06:38:18 +08:00
|
|
|
vcpkg_configure_cmake(
|
2021-05-21 16:30:43 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-08-08 06:38:18 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
2021-05-21 16:30:43 +08:00
|
|
|
-DQtWaylandScanner_EXECUTABLE=${CURRENT_INSTALLED_DIR}/tools/qt5-wayland/bin/qtwaylandscanner
|
|
|
|
${FEATURE_OPTIONS}
|
2020-08-08 06:38:18 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5GuiAddons)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-04-13 01:15:11 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2020-08-08 06:38:18 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/data)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/data)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/etc)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/etc)
|
2021-04-13 01:15:11 +08:00
|
|
|
|
2021-05-21 16:30:43 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSES/ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|