64 lines
2.1 KiB
JSON
64 lines
2.1 KiB
JSON
{
|
|
"version": 3,
|
|
"cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 },
|
|
"configurePresets": [
|
|
{
|
|
"name": "dev",
|
|
"displayName": "Dev (x86, P0 only)",
|
|
"description": "May phat trien. Chi vslam_common + test, khong can RTAB-Map hay PCL.",
|
|
"binaryDir": "${sourceDir}/build/dev",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "asan",
|
|
"displayName": "AddressSanitizer",
|
|
"description": "Bat buoc chay truoc moi lan dong giai doan: Channel va TransformTree deu la code da luong co con tro chia se.",
|
|
"binaryDir": "${sourceDir}/build/asan",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
"CMAKE_CXX_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer",
|
|
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address,undefined"
|
|
}
|
|
},
|
|
{
|
|
"name": "tsan",
|
|
"displayName": "ThreadSanitizer",
|
|
"description": "Kiem quy tac 'luong safety khong chia se mutex voi luong slam'.",
|
|
"binaryDir": "${sourceDir}/build/tsan",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
"CMAKE_CXX_FLAGS": "-fsanitize=thread -fno-omit-frame-pointer",
|
|
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=thread"
|
|
}
|
|
},
|
|
{
|
|
"name": "jetson",
|
|
"displayName": "Jetson AGX release (arm64)",
|
|
"description": "Deps build tu nguon nam o /opt/vslam. Xem tools/build_deps.sh.",
|
|
"binaryDir": "${sourceDir}/build/jetson",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release",
|
|
"CMAKE_PREFIX_PATH": "/opt/vslam",
|
|
"CMAKE_INSTALL_PREFIX": "/opt/vslam",
|
|
"VSLAM_ENABLE_CPACK": "ON"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{ "name": "dev", "configurePreset": "dev" },
|
|
{ "name": "asan", "configurePreset": "asan" },
|
|
{ "name": "tsan", "configurePreset": "tsan" },
|
|
{ "name": "jetson", "configurePreset": "jetson", "jobs": 6 }
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "dev",
|
|
"configurePreset": "dev",
|
|
"output": { "outputOnFailure": true }
|
|
}
|
|
]
|
|
}
|