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
2022-12-01 03:03:25 +08:00
R E F v 5 . 9 8 . 0
S H A 5 1 2 8 3 9 d 9 f c d 8 0 5 f e 1 4 a a 1 3 c f 0 c c 3 9 f 1 2 a a 4 1 2 f 1 9 3 0 9 6 9 8 c 0 6 2 c 1 4 a 7 d 3 5 d b 4 e 6 f d 3 a f 6 f 4 6 9 0 8 c 1 3 d 7 6 a 8 2 3 4 b a 9 f 2 0 6 7 b 9 a 6 7 e 0 4 2 6 b 2 6 5 d 3 3 4 b e 3 e 8 0 5 d a f 5 a 6 c d 0 a f b
2021-12-17 15:29:39 +08:00
)
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 } )
2022-12-01 03:03:25 +08:00