summaryrefslogtreecommitdiff
path: root/.vscode/tasks.json
diff options
context:
space:
mode:
authoractboy168 <actboy168@gmail.com>2019-06-10 16:52:20 +0800
committeractboy168 <actboy168@gmail.com>2019-06-10 16:52:20 +0800
commit11dbf384b2042e9d2749e95d64e1efbeaeaf0b35 (patch)
treeea840be852b1af89104d2066b51cc8d0d7adc584 /.vscode/tasks.json
parentaa77a6514802a40bde972647b84adf95e375d4ae (diff)
downloadlua-language-server-11dbf384b2042e9d2749e95d64e1efbeaeaf0b35.zip
新的安装脚本
Diffstat (limited to '.vscode/tasks.json')
-rw-r--r--.vscode/tasks.json52
1 files changed, 34 insertions, 18 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 11a5f61e..8bb1b196 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -1,32 +1,48 @@
{
"version": "2.0.0",
+ "type": "shell",
+ "windows": {
+ "options": {
+ "shell": {
+ "executable": "C:\\Windows\\System32\\cmd.exe",
+ "args": [
+ "/c"
+ ]
+ }
+ }
+ },
+ "options": {
+ "cwd": "${workspaceFolder}"
+ },
"tasks": [
{
"type": "shell",
- "label": "编译",
- "command": "cd 3rd\\luamake && tools\\ninja -f ninja\\msvc.ninja && cd ..\\.. && 3rd\\luamake\\luamake rebuild"
+ "label": "PreCompile",
+ "windows": {
+ "command": "tools\\ninja -f ninja\\msvc.ninja"
+ },
+ "linux": {
+ "command": "ninja -f ninja/linux.ninja"
+ },
+ "osx": {
+ "command": "ninja -f ninja/macos.ninja"
+ },
+ "options": {
+ "cwd": "${workspaceFolder}/3rd/luamake"
+ },
},
{
- "label": "Copy Extension",
+ "type": "shell",
+ "label": "Compile",
+ "command": "${workspaceFolder}/3rd/luamake/luamake rebuild"
+ },
+ {
+ "label": "Install",
"command": "${workspaceFolder}/build/lua",
"args": [
"make/copy.lua",
"${command:extensionPath}"
- ],
- "type": "shell",
- "windows": {
- "options": {
- "shell": {
- "executable": "C:\\Windows\\System32\\cmd.exe",
- "args": [
- "/c"
- ]
- }
- }
- },
- "options": {
- "cwd": "${workspaceFolder}"
- },
+ ]
}
]
} \ No newline at end of file