mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-17 07:38:16 +08:00
5a8ff0088a
* Update mingw support expressions * Update versions * Use pkg-config for complete libgcrypt dependencies * Remove crypto from default features Align with CMake build system defaults. * Drop unused liblzma dependency * Update versions * Skip installation of docs * Update versions * Restructure patches * Update versions * CI [skip actions] * Revise libxml2 wrapper * Omit CONFIG from find_package(LibXml2) * Test libxml2 with, and fix for, CMake 3.7 * Update versions * More libxml2 wrapper changes * libxslt gcrypt variable name changes * Install usage * Trim portfile * [openscap] Use vcpkg pkg-config database * [openscap] Unbreak find_package(Threads) * Update versions * Update CI baseline * REQUIRED is a literal * Update versions * Always load libxml2 config instead of find module [skip actions] * [libxmlmm] Fix linking to libxml2 libxml2 needs iconv include dir on Windows. * [libxmlmm] License field and processing * [libxmlmm] Export unofficial CMake config * [libxmlmm] Change target prefix, not global default * Revert cmake-user changes * Set LIBXML2_FOUND * Update versions * Fix xslt-config * Update versions * Adjust tidy-html5 * Update versions Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
47 lines
1.4 KiB
CMake
47 lines
1.4 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO OpenSCAP/openscap
|
|
REF 3a4c635691380fa990a226acc8558db35d7ebabc #1.3.1
|
|
SHA512 12681d43b2ce067c5a5c4eb47e14d91d6e9362b1f98f1d35b05d79ad84c7ee8c29f438eaae8e8465033155e500bb0f936eb79af46fab15e4a07e03c6be8b655d
|
|
HEAD_REF dev
|
|
PATCHES
|
|
fix-build.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
|
|
docs ENABLE_DOCS
|
|
tests ENABLE_TESTS
|
|
util ENABLE_OSCAP_UTIL
|
|
python ENABLE_PYTHON3
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
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
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
#Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |