compilation commands

This commit is contained in:
yggdrasil75
2025-11-07 05:46:11 -05:00
parent 664d361c13
commit cc81f08b11
4 changed files with 115 additions and 0 deletions

16
.vscode/c_cpp_properties.json vendored Normal file
View File

@@ -0,0 +1,16 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/g++",
"cStandard": "c23",
"cppStandard": "c++23",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}

44
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,44 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Build and Run Pointcloud Renderer",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/pointcloud_renderer",
"args": ["-g", "-p", "5001"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build-pointcloud-renderer",
"miDebuggerPath": "/usr/bin/gdb"
},
{
"name": "Run Pointcloud Renderer",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/pointcloud_renderer",
"args": ["-g", "-p", "5001"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build-pointcloud-renderer",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}

View File

@@ -69,5 +69,11 @@
"xtr1common": "cpp",
"xtree": "cpp",
"xutility": "cpp"
},
"files.exclude": {
"**/*.rpyc": true,
"**/*.rpa": true,
"**/*.rpymc": true,
"**/cache/": true
}
}

49
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,49 @@
{
"tasks": [
{
"label": "build-pointcloud-renderer",
"type": "shell",
"command": "g++",
"args": [
"-std=c++17",
"-O3",
"-march=native",
"-o", "${workspaceFolder}/bin/pointcloud_renderer",
"main.cpp",
"util/timing_decorator.cpp",
"-ljxl",
"-ljxl_threads"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"],
"detail": "Compiler build task for pointcloud_renderer"
},
{
"type": "cppbuild",
"label": "C/C++: g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}