mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 00:57:50 +08:00
83a4bd802f
* [kf5texteditor] create a port with v5.98.0 * [kf5texteditor] fix install errors * [kf5texteditor] update baseline * [kf5texteditor] fix windows build * [kf5texteditor] find gettext(host) tools * [kf5texteditor] update baseline * Update ports/kf5texteditor/vcpkg.json Co-authored-by: Kai Pastor <dg0yt@darc.de> * [kf5texteditor] use VCPKG_HOST_TRIPLET * [kf5parts] install .desktop to share/kservicetypes5 * [kf5service] install .desktop to share/kservicetypes5 * [kf5texteditor] use changed kf5ports, kf5services --------- Co-authored-by: Kai Pastor <dg0yt@darc.de>
42 lines
1.4 KiB
CMake
42 lines
1.4 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KDE/kparts
|
|
REF "v${VERSION}"
|
|
SHA512 07ba359faf15f6bc398b64e0534842532e1a3ade94caa6b8dc7886417aa49526b7e0f54bd29805e64b8661f4c402e022bd211a932ee13b0ac4b97e516ae6dbef
|
|
HEAD_REF master
|
|
)
|
|
|
|
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
|
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
|
|
|
# See ECM/kde-modules/KDEInstallDirs5.cmake
|
|
# Relocate .desktop files for next ports
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
list(APPEND KDE_OPTIONS
|
|
-DKDE_INSTALL_KSERVICES5DIR="share/kservices5"
|
|
-DKDE_INSTALL_KSERVICETYPES5DIR="share/kservicetypes5"
|
|
)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_TESTING=OFF
|
|
${FEATURE_OPTIONS}
|
|
${KDE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Parts CONFIG_PATH lib/cmake/KF5Parts)
|
|
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")
|
|
|
|
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
|
|
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|