From cc81f08b11e5eda61373bf9dfb8cf16b2b92602b Mon Sep 17 00:00:00 2001 From: yggdrasil75 Date: Fri, 7 Nov 2025 05:46:11 -0500 Subject: [PATCH] compilation commands --- .vscode/c_cpp_properties.json | 16 ++++++++++++ .vscode/launch.json | 44 +++++++++++++++++++++++++++++++ .vscode/settings.json | 6 +++++ .vscode/tasks.json | 49 +++++++++++++++++++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..beefcdb --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -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 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..be1cee5 --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index a4707e1..53ac7f2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -69,5 +69,11 @@ "xtr1common": "cpp", "xtree": "cpp", "xutility": "cpp" + }, + "files.exclude": { + "**/*.rpyc": true, + "**/*.rpa": true, + "**/*.rpymc": true, + "**/cache/": true } } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..0c1c647 --- /dev/null +++ b/.vscode/tasks.json @@ -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" +} \ No newline at end of file