mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 19:11:38 +08:00
7d2541c69c
* Add gettext cmake wrapper * x-add-version * Make kf5i18n use gettext[tools]:host * x-add-version * Revise wrapper source names * Update git-tree * Provide host tools via port config, not wrapper * Enable tools on linux * Fix linux libintl.h hint * Update git-tree * Update git-tree * Revise vcpkg port config * Revise linux libintl.h message * Revise cmake style * Build only release variant of tools * Cache configuration for faster build * Update git-tree * Fix typo * Revise options * Add top-level Makefile for tools * Remove non-libintl libs and includes * Update git-tree * Update port-version * x-add-version * [gettext] Address PR comments Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
44 lines
1.4 KiB
CMake
44 lines
1.4 KiB
CMake
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
list(APPEND PATCHES "prevent-cmake-failing-with-variable-notfound.patch")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KDE/ki18n
|
|
REF v5.81.0
|
|
SHA512 8e14c429671a51b9b231f2a965f2368b019592a29a04a9e192da25a8a963042fe7478323508c097f73e2c328fd4742f8808fe68ea439e00e6667414d7f75be3e
|
|
PATCHES ${PATCHES}
|
|
)
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DBUILD_HTML_DOCS=OFF
|
|
-DBUILD_MAN_DOCS=OFF
|
|
-DBUILD_QTHELP_DOCS=OFF
|
|
-DBUILD_TESTING=OFF
|
|
-DKDE_INSTALL_PLUGINDIR=plugins
|
|
-DPYTHON_EXECUTABLE=${PYTHON3}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5I18n)
|
|
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}/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)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSES/ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|