From 2e857f38a9531fdd9d5eba4845e0bbf142788dca Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Thu, 1 Aug 2024 10:33:23 +0200 Subject: [PATCH] chore: add CMakePresets.json file Signed-off-by: Andrea Terzolo --- CMakePresets.json | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 CMakePresets.json diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000000..97a9c5e873 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,41 @@ +{ + "version": 3, + "configurePresets": [ + { + "name": "scap-drivers", + "displayName": "Build scap drivers and their tests", + "description": "Build all scap drivers (modern eBPF, legacy eBPF, kmod) and their tests", + "generator": "Unix Makefiles", + "binaryDir": "${sourceDir}/build-scap-drivers", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "BUILD_BPF": "ON", + "BUILD_DRIVER": "ON", + "USE_BUNDLED_DEPS": "ON", + "ENABLE_DRIVERS_TESTS": "ON", + "MODERN_BPF_DEBUG_MODE": "ON", + "BUILD_LIBSCAP_MODERN_BPF": "ON", + "BUILD_LIBSCAP_GVISOR": "OFF", + "CREATE_TEST_TARGETS": "ON", + "ENABLE_LIBSCAP_TESTS": "ON", + "SCAP_FILES_SUITE_ENABLE": "OFF" + } + }, + { + "name": "sinsp-minimal", + "displayName": "Build sinsp in minimal build", + "description": "Build sinsp in minimal build with its tests", + "generator": "Unix Makefiles", + "binaryDir": "${sourceDir}/build-sinsp-minimal", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "BUILD_DRIVER": "ON", + "BUILD_BPF": "ON", + "USE_BUNDLED_DEPS": "ON", + "CREATE_TEST_TARGETS": "ON", + "MINIMAL_BUILD": "ON", + "SCAP_FILES_SUITE_ENABLE": "OFF" + } + } + ] +}