初版可用
This commit is contained in:
54
.zed/tasks.json
Normal file
54
.zed/tasks.json
Normal file
@@ -0,0 +1,54 @@
|
||||
[
|
||||
{
|
||||
"label": "Debug-Config",
|
||||
"command": "cmd",
|
||||
"shell": {
|
||||
"program": "C:\\Windows\\System32\\cmd.exe",
|
||||
},
|
||||
"env": {
|
||||
"EXT_ARGS": "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_PREFIX_PATH=C:/local",
|
||||
"CC": "clang",
|
||||
"CXX": "clang++",
|
||||
},
|
||||
"args": [
|
||||
"/c",
|
||||
"cmake -Bbuild -S . -G Ninja %EXT_ARGS% -DCMAKE_BUILD_TYPE=Debug",
|
||||
],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
},
|
||||
{
|
||||
"label": "Debug-Build",
|
||||
"command": "cmd",
|
||||
"shell": {
|
||||
"program": "C:\\Windows\\System32\\cmd.exe",
|
||||
},
|
||||
"args": ["/c", "cmake --build build --config Debug"],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
},
|
||||
{
|
||||
"label": "Release-Config",
|
||||
"command": "cmd",
|
||||
"shell": {
|
||||
"program": "C:\\Windows\\System32\\cmd.exe",
|
||||
},
|
||||
"env": {
|
||||
"EXT_ARGS": "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_PREFIX_PATH=C:/local",
|
||||
"CC": "clang",
|
||||
"CXX": "clang++",
|
||||
},
|
||||
"args": [
|
||||
"/c",
|
||||
"cmake -Bbuild -S . -G Ninja %EXT_ARGS% -DCMAKE_BUILD_TYPE=Release",
|
||||
],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
},
|
||||
{
|
||||
"label": "Release-Build",
|
||||
"command": "cmd",
|
||||
"shell": {
|
||||
"program": "C:\\Windows\\System32\\cmd.exe",
|
||||
},
|
||||
"args": ["/c", "cmake --build build --config Release"],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user