2020-08-08 04:08:18 +05:30
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/kitemmodels
|
2021-05-21 04:30:43 -04:00
|
|
|
REF v5.81.0
|
|
|
|
SHA512 7942598e0ac3fd81226bb8485e721cf5424da8ef049812e9fa060c18b5dcccaa9e39a761beb81da7ccd3c7e67886752e60f96e889e6075173544968015ac45b1
|
2020-08-08 04:08:18 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-06-25 04:04:57 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-08-08 04:08:18 +05:30
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_HTML_DOCS=OFF
|
|
|
|
-DBUILD_MAN_DOCS=OFF
|
|
|
|
-DBUILD_QTHELP_DOCS=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
2021-04-12 13:15:11 -04:00
|
|
|
-DKDE_INSTALL_QMLDIR=qml
|
2020-08-08 04:08:18 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5ItemModels)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-04-12 13:15:11 -04:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2020-08-08 04:08:18 +05:30
|
|
|
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}/etc)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/etc)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2021-04-12 13:15:11 -04:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSES/ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|