diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..2030133 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,26 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**", + "/usr/include/x86_64-linux-gnu/qt5", + "/usr/include/x86_64-linux-gnu/qt5/QtCore", + "/usr/include/x86_64-linux-gnu/qt5/QtGui", + "/usr/include/x86_64-linux-gnu/qt5/QtWidgets", + "/usr/include/x86_64-linux-gnu/qt5/QtOpenGL" + ], + "defines": [ + "QT_CORE_LIB", + "QT_GUI_LIB", + "QT_WIDGETS_LIB", + "QT_OPENGL_LIB" + ], + "compilerPath": "/usr/bin/g++", + "cStandard": "c17", + "cppStandard": "c++17", + "intelliSenseMode": "linux-gcc-x64" + } + ], + "version": 4 +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8f9f864 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,40 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug tiletest", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/tiletest", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "Build" + }, + { + "name": "Run tiletest (without debugging)", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/tiletest", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "preLaunchTask": "Build" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..90872a6 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,66 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build", + "type": "shell", + "command": "qmake tiletest.pro && make -j$(nproc)", + "group": { + "kind": "build", + "isDefault": true + }, + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": ["$gcc"] + }, + { + "label": "qmake", + "type": "shell", + "command": "qmake tiletest.pro", + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": ["$gcc"] + }, + { + "label": "make", + "type": "shell", + "command": "make -j$(nproc)", + "group": "build", + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": ["$gcc"] + }, + { + "label": "Clean", + "type": "shell", + "command": "make clean", + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [] + }, + { + "label": "Rebuild", + "type": "shell", + "command": "make clean && qmake tiletest.pro && make -j$(nproc)", + "group": "build", + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": ["$gcc"] + }, + { + "label": "Run", + "type": "shell", + "command": "./tiletest", + "dependsOn": "Build", + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [] + } + ] +}