Take either of these files and save as .vscode/tasks.json in your orx project.
Based on the vscode reference material here: https://code.visualstudio.com/docs/editor/tasks
Take either of these files and save as .vscode/tasks.json in your orx project.
Based on the vscode reference material here: https://code.visualstudio.com/docs/editor/tasks
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Setup orx", | |
| "group": "build", | |
| "type": "shell", | |
| "command": "./setup.sh", | |
| "options": { | |
| "cwd": "${workspaceFolder}" | |
| }, | |
| "windows": { | |
| "command": ".\\setup.bat", | |
| "options": { | |
| "shell": { | |
| "executable": "cmd.exe", | |
| "args": [ | |
| "/d", | |
| "/c" | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "label": "Build orx (debug)", | |
| "group": { | |
| "kind": "build", | |
| "isDefault": true | |
| }, | |
| "type": "shell", | |
| "linux": { | |
| "command": "make", | |
| "options": { | |
| "cwd": "code/build/linux/gmake/" | |
| } | |
| }, | |
| "osx": { | |
| "command": "make", | |
| "options": { | |
| "cwd": "code/build/mac/gmake/" | |
| } | |
| }, | |
| "windows": { | |
| "command": "mingw32-make.exe", | |
| "options": { | |
| "cwd": "code/build/windows/gmake/", | |
| "shell": { | |
| "executable": "cmd.exe", | |
| "args": [ | |
| "/d", | |
| "/c" | |
| ] | |
| } | |
| } | |
| }, | |
| "problemMatcher": [ | |
| "$gcc" | |
| ] | |
| } | |
| ] | |
| } |
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Build game", | |
| "group": { | |
| "kind": "build", | |
| "isDefault": true | |
| }, | |
| "type": "shell", | |
| "linux": { | |
| "command": "make", | |
| "options": { | |
| "cwd": "build/linux/gmake/" | |
| } | |
| }, | |
| "osx": { | |
| "command": "make", | |
| "options": { | |
| "cwd": "build/mac/gmake/" | |
| } | |
| }, | |
| "windows": { | |
| "command": "mingw32-make.exe", | |
| "options": { | |
| "cwd": "build/windows/gmake/", | |
| "shell": { | |
| "executable": "cmd.exe", | |
| "args": [ | |
| "/d", | |
| "/c" | |
| ] | |
| } | |
| } | |
| }, | |
| "problemMatcher": [ | |
| "$gcc" | |
| ] | |
| }, | |
| { | |
| "label": "Run game", | |
| "type": "shell", | |
| "osx": { | |
| "command": "./bin/vscode-experimentd" | |
| }, | |
| "linux": { | |
| "command": "./bin/vscode-experimentd" | |
| }, | |
| "windows": { | |
| "command": ".\\bin\\vscode-experimentd.exe" | |
| }, | |
| "dependsOn": [ | |
| "Build game" | |
| ], | |
| "problemMatcher": [ | |
| "$gcc" | |
| ] | |
| } | |
| ] | |
| } |
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Build game", | |
| "group": { | |
| "kind": "build", | |
| "isDefault": true | |
| }, | |
| "type": "shell", | |
| "linux": { | |
| "command": "make", | |
| "options": { | |
| "cwd": "build/linux/gmake/" | |
| } | |
| }, | |
| "osx": { | |
| "command": "make", | |
| "options": { | |
| "cwd": "build/mac/gmake/" | |
| } | |
| }, | |
| "windows": { | |
| "command": "mingw32-make.exe", | |
| "options": { | |
| "cwd": "build/windows/gmake/", | |
| "shell": { | |
| "executable": "cmd.exe", | |
| "args": [ | |
| "/d", | |
| "/c" | |
| ] | |
| } | |
| } | |
| }, | |
| "problemMatcher": [ | |
| "$gcc" | |
| ] | |
| } | |
| ] | |
| } |