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 w i n d o w s y s t e m
R E F v 5 . 8 9 . 0
S H A 5 1 2 8 c d b 1 7 7 b 5 d f f 4 8 7 c 0 0 3 9 f 6 2 4 3 a 8 6 5 2 e 8 e 0 a a a e 5 c d 5 5 f 2 9 9 f 8 a d 4 c d 2 c 6 6 6 5 1 f c 0 b e 3 6 3 2 8 9 9 8 8 0 7 3 9 8 b 5 3 8 0 3 9 8 9 8 8 1 b 5 1 1 f 0 e e 4 7 2 3 5 9 c 6 1 2 9 f f 8 0 9 e 9 b 5 0 2 8 3 b 6 6 a
)
if ( VCPKG_TARGET_IS_LINUX )
message ( WARNING "${PORT} currently requires the following libraries from the system package manager:\n libxcb-res0-dev\n\nThese can be installed on Ubuntu systems via apt-get install libxcb-res0-dev" )
endif ( )
# 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
- D K D E _ I N S T A L L _ P L U G I N D I R = p l u g i n s
)
vcpkg_cmake_install ( )
vcpkg_cmake_config_fixup ( PACKAGE_NAME KF5WindowSystem CONFIG_PATH lib/cmake/KF5WindowSystem )
vcpkg_copy_pdbs ( )
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-01-05 08:54:36 +08:00
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/include/KF5/KWindowSystem/config-kwindowsystem.h" "${CURRENT_PACKAGES_DIR}/" "" )
2022-07-15 03:09:56 +08:00
file ( GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*" )
vcpkg_install_copyright ( FILE_LIST ${ LICENSE_FILES } )