mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 14:47:58 +08:00
[check] Use modern cmake helpers and disable tests (#24451)
* [check] Disable tests * version
This commit is contained in:
parent
26ad3c7b3e
commit
5af7af31d1
@ -1,30 +1,36 @@
|
|||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO libcheck/check
|
REPO libcheck/check
|
||||||
REF 11970a7e112dfe243a2e68773f014687df2900e8 # 0.15.2
|
REF 11970a7e112dfe243a2e68773f014687df2900e8 # 0.15.2
|
||||||
SHA512 210c9617fa1c1ce16bef983b0e6cb587b1774c3f7ce27a53ca7799642dc7a14be8de567d69dc0e57845684c6f7991d772c73654f63c8755afda3b37a35c7156e
|
SHA512 210c9617fa1c1ce16bef983b0e6cb587b1774c3f7ce27a53ca7799642dc7a14be8de567d69dc0e57845684c6f7991d772c73654f63c8755afda3b37a35c7156e
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
PATCHES fix-lib-path.patch
|
PATCHES fix-lib-path.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_cmake_configure(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
OPTIONS
|
||||||
|
-DCHECK_ENABLE_TESTS=OFF
|
||||||
|
-DBUILD_TESTING=OFF
|
||||||
|
-DCHECK_ENABLE_GCOV=OFF
|
||||||
|
-DENABLE_MEMORY_LEAKING_TESTS=OFF
|
||||||
|
-DCHECK_ENABLE_TIMEOUT_TESTS=OFF
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_cmake_install()
|
||||||
|
|
||||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/check)
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/check)
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/man")
|
||||||
|
|
||||||
# Handle copyright
|
vcpkg_fixup_pkgconfig()
|
||||||
file(INSTALL ${SOURCE_PATH}/COPYING.LESSER DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
||||||
vcpkg_fixup_pkgconfig()
|
file(INSTALL "${SOURCE_PATH}/COPYING.LESSER" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||||
|
@ -1,7 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "check",
|
"name": "check",
|
||||||
"version-string": "0.15.2",
|
"version": "0.15.2",
|
||||||
"port-version": 2,
|
"port-version": 3,
|
||||||
"description": "A unit testing framework for C",
|
"description": "A unit testing framework for C",
|
||||||
"homepage": "https://github.com/libcheck/check"
|
"homepage": "https://github.com/libcheck/check",
|
||||||
|
"license": "LGPL-2.1",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "vcpkg-cmake",
|
||||||
|
"host": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vcpkg-cmake-config",
|
||||||
|
"host": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -1350,7 +1350,7 @@
|
|||||||
},
|
},
|
||||||
"check": {
|
"check": {
|
||||||
"baseline": "0.15.2",
|
"baseline": "0.15.2",
|
||||||
"port-version": 2
|
"port-version": 3
|
||||||
},
|
},
|
||||||
"chipmunk": {
|
"chipmunk": {
|
||||||
"baseline": "7.0.3",
|
"baseline": "7.0.3",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "f9804577939493b7f7934d98adc953624e0020c4",
|
||||||
|
"version": "0.15.2",
|
||||||
|
"port-version": 3
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "f88273666d201fd843e12ba5d98d4ed8a10bd576",
|
"git-tree": "f88273666d201fd843e12ba5d98d4ed8a10bd576",
|
||||||
"version-string": "0.15.2",
|
"version-string": "0.15.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user