2021-12-17 15:29:39 +08:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O K D E / k g l o b a l a c c e l
2022-12-01 03:03:25 +08:00
R E F v 5 . 9 8 . 0
S H A 5 1 2 a 8 8 4 6 5 3 8 c e d 2 4 8 e e 5 3 7 b 9 0 1 3 6 b b b 4 5 c a b f f 6 0 0 8 8 d a b a 7 a 1 9 e 4 8 d 6 a b 6 3 c e 3 8 8 3 5 3 e 8 3 7 7 0 c f 6 b a d 7 b 0 c 7 0 0 b 7 4 0 4 e 1 f 4 a a 8 8 f 7 1 f 2 0 2 d d e 8 c d c 3 0 6 4 4 5 6 d a 7 3 2 4 1 0 5 0
2021-12-17 15:29:39 +08:00
H E A D _ R E F m a s t e r
)
2022-12-01 03:03:25 +08:00
if ( VCPKG_TARGET_IS_LINUX )
message ( WARNING "${PORT} currently requires the following libraries from the system package manager:\n libxcb-keysyms1-dev libxcb-xkb-dev libxcb-record0-dev\n\nThese can be installed on Ubuntu systems via apt-get install llibxcb-keysyms1-dev libxcb-xkb-dev libxcb-record0-dev" )
endif ( )
2021-12-17 15:29:39 +08:00
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
file ( WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n" )
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
O P T I O N S
- D B U I L D _ T E S T I N G = O F F
)
vcpkg_cmake_install ( )
vcpkg_cmake_config_fixup ( PACKAGE_NAME KF5GlobalAccel CONFIG_PATH lib/cmake/KF5GlobalAccel )
vcpkg_copy_pdbs ( )
2022-07-15 03:09:56 +08:00
vcpkg_copy_tools ( TOOL_NAMES kglobalaccel5 AUTO_CLEAN )
2021-12-17 15:29:39 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" )
endif ( )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
2022-07-15 03:09:56 +08:00
file ( GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*" )
vcpkg_install_copyright ( FILE_LIST ${ LICENSE_FILES } )
2022-12-01 03:03:25 +08:00