aboutsummaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json35
-rw-r--r--.vscode/tasks.json53
2 files changed, 88 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..6ec9117
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,35 @@
+{
+ // 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": [
+ {
+ "type": "cppdbg",
+ "request": "launch",
+ "name": "Debug",
+ "program": "${workspaceFolder}/bin/openvic-dataloader.headless.linux.template_debug.dev.x86_64",
+ "args": ["csv", "./output.csv"],
+ "cwd": "${workspaceFolder}/bin",
+ "preLaunchTask": "dev_build",
+ "windows": {
+ "type": "cppvsdb",
+ "request": "launch",
+ "name": "Debug",
+ "program": "${workspaceFolder}\\bin\\openvic-dataloader.headless.windows.template_debug.dev.x86_64",
+ "args": ["csv", "./output.csv"],
+ "cwd": "${workspaceFolder}\\bin",
+ "preLaunchTask": "dev_build",
+ },
+ "osx": {
+ "type": "cppvsdb",
+ "request": "launch",
+ "name": "Debug",
+ "program": "", // TODO: Mac executable?
+ "args": [],
+ "cwd": "${workspaceFolder}\\game",
+ "preLaunchTask": "dev_build",
+ }
+ }
+ ]
+} \ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..65e62ec
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,53 @@
+{
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
+ // for the documentation about the tasks.json format
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "build",
+ "group": "build",
+ "type": "shell",
+ "command": "scons",
+ "args": [
+ // enable for debugging with breakpoints
+ //"dev_build=yes",
+ ],
+ "problemMatcher": "$msCompile"
+ },
+ {
+ "label": "dev_build",
+ "group": "build",
+ "type": "shell",
+ "command": "scons",
+ "args": [
+ // enable for debugging with breakpoints
+ "dev_build=yes",
+ "debug_symbols=yes"
+ ],
+ "dependsOn": [
+ "build"
+ ],
+ "problemMatcher": "$msCompile"
+ },
+ {
+ "label": "clean",
+ "group": "build",
+ "type": "shell",
+ "command": "scons",
+ "args": [
+ "--clean"
+ ],
+ "problemMatcher": "$msCompile"
+ },
+ {
+ "label": "rebuild",
+ "group": "build",
+ "type": "shell",
+ "dependsOn": [
+ "clean",
+ "build"
+ ],
+ "problemMatcher": "$msCompile"
+ }
+ ]
+} \ No newline at end of file