forked from misakamm/xege
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from wysaid/better_vscode_tasks
优化在 MacOS 上的编译体验, 支持 vscode 快速开发. 解决 VisualStudio 上 demo 部分的编译问题.
- Loading branch information
Showing
11 changed files
with
377 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"version": 4, | ||
"env": { | ||
"myDefaultIncludePath": [ | ||
"${workspaceFolder}/src", | ||
"${workspaceFolder}/src/ege" | ||
] | ||
}, | ||
"configurations": [ | ||
{ | ||
"name": "default", | ||
"cStandard": "c11", | ||
"cppStandard": "c++17", | ||
"defines": [ | ||
"_FORTIFY_SOURCE=0" | ||
], | ||
"includePath": [ | ||
"${myDefaultIncludePath}" | ||
], | ||
"configurationProvider": "ms-vscode.cmake-tools" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Load CMake Project", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-l", | ||
"tasks.sh", | ||
"--debug", | ||
"--load" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
}, | ||
{ | ||
"label": "Reload CMake Project", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-l", | ||
"tasks.sh", | ||
"--debug", | ||
"--reload" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
}, | ||
{ | ||
"label": "Cleanup CMake Project", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-l", | ||
"tasks.sh", | ||
"--clean" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
}, | ||
{ | ||
"label": "Build XEGE Library", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-l", | ||
"tasks.sh", | ||
"--debug", | ||
"--build" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
}, | ||
{ | ||
"label": "Build Demos", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-l", | ||
"tasks.sh", | ||
"--debug", | ||
"--target", | ||
"demos", | ||
"--build" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
}, | ||
{ | ||
"label": "Load And Build XEGE Library", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-l", | ||
"tasks.sh", | ||
"--debug", | ||
"--load", | ||
"--build" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
}, | ||
{ | ||
"label": "Load And Build Demos", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-l", | ||
"tasks.sh", | ||
"--debug", | ||
"--target", | ||
"demos", | ||
"--load", | ||
"--build" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
}, | ||
{ | ||
"label": "Run Demo - GraphicsTest", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-l", | ||
"tasks.sh", | ||
"--debug", | ||
"--target", | ||
"graphicstest", | ||
"--build", | ||
"--run", | ||
"graphicstest.exe", | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.