mirror of https://github.com/PrimeDecomp/prime.git
Add VSCode build task
This commit is contained in:
parent
521b2d5413
commit
65bdb20bae
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "ninja",
|
||||
"type": "shell",
|
||||
"command": "ninja",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "all_source",
|
||||
"type": "shell",
|
||||
"command": "ninja all_source",
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "all_source_host",
|
||||
"type": "shell",
|
||||
"command": "ninja all_source_host",
|
||||
"problemMatcher": {
|
||||
"base": "$gcc"
|
||||
},
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"label": "current file (host)",
|
||||
"type": "shell",
|
||||
"command": "ninja host/${relativeFile}",
|
||||
"problemMatcher": {
|
||||
"base": "$gcc"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1384,6 +1384,11 @@ if __name__ == "__main__":
|
|||
"basefile": f"$builddir/src/{object}",
|
||||
},
|
||||
)
|
||||
n.build(
|
||||
outputs=f"host/{c_file}",
|
||||
rule="phony",
|
||||
inputs=f"$builddir/host/{object}.o",
|
||||
)
|
||||
if add_to_all:
|
||||
all_host_source_files.append(f"$builddir/host/{object}.o")
|
||||
if add_to_all:
|
||||
|
|
Loading…
Reference in New Issue