Skip to content

Commit

Permalink
chore: add CMakePresets.json file
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
  • Loading branch information
Andreagit97 authored and poiana committed Aug 27, 2024
1 parent 33cbe07 commit 7207f61
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}

0 comments on commit 7207f61

Please sign in to comment.