mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 11:28:59 +08:00
ac541816b1
* [openscap] update to 1.3.6 * update version * update evrsion * Fix conflict * update evrsion * CI [skip actions] * fix xmlsec dependency * fix deps * fix deps * fix deps * fix deps * fix deps * CI * version 1.3.7 * update to 1.3.7 * world * CI * fix deps * fix deps * CI * fix deps * CI * [openscap]: fix not install util * [openscap]: fix not install util * [openscap]: fix not install util * [openscap]: fix not install util * [openscap]: fix not install util * [openscap]: fix not install util --------- Co-authored-by: Jonliu1993 <13720414433@163.com>
54 lines
1.5 KiB
CMake
54 lines
1.5 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO OpenSCAP/openscap
|
|
REF ${VERSION}
|
|
SHA512 88d095f350cb1b27f30222c809835ad9f182589a4410ea66f6389d9140804a45767b70176bcd52a0ad6b248ccf63153f09e44f93e70b3002d45cc445642a458f
|
|
HEAD_REF dev
|
|
PATCHES
|
|
fix-build.patch
|
|
fix-buildflag-and-install.patch
|
|
fix-utils.patch
|
|
)
|
|
file(REMOVE "${SOURCE_PATH}/cmake/FindThreads.cmake")
|
|
|
|
if ("python" IN_LIST FEATURES)
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
endif()
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
util ENABLE_OSCAP_UTIL
|
|
python ENABLE_PYTHON3
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
-DPYTHON_EXECUTABLE=${PYTHON3}
|
|
-DENABLE_PERL=OFF
|
|
-DENABLE_MITRE=OFF
|
|
-DENABLE_VALGRIND=OFF
|
|
-DENABLE_OSCAP_UTIL_DOCKER=OFF
|
|
-DENABLE_OSCAP_UTIL_AS_RPM=OFF
|
|
-DENABLE_OSCAP_UTIL_SSH=OFF
|
|
-DENABLE_OSCAP_UTIL_VM=OFF
|
|
-DENABLE_OSCAP_UTIL_PODMAN=OFF
|
|
-DENABLE_OSCAP_UTIL_CHROOT=OFF
|
|
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
|
|
-DENABLE_TESTS=OFF
|
|
-DENABLE_DOCS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
if(ENABLE_OSCAP_UTIL)
|
|
vcpkg_copy_tools(TOOL_NAMES oscap AUTO_CLEAN)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
#Handle copyright
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|