Honestly, not going to bother summarizing this massive changeset. You are welcome to look it over in your own free time. Fixes #10. Fixes #11
92 lines
No EOL
1.5 KiB
JSON
92 lines
No EOL
1.5 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Clean builddir",
|
|
"type": "shell",
|
|
"command": "rm",
|
|
"args": [
|
|
"-rf",
|
|
"builddir"
|
|
],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Format",
|
|
"type": "shell",
|
|
"command": "uncrustify",
|
|
"args": [
|
|
"-c",
|
|
"jsc.cfg",
|
|
"--no-backup",
|
|
"**/*.c",
|
|
"**/*.h"
|
|
]
|
|
},
|
|
{
|
|
"label": "Meson Configure and Build",
|
|
"type": "shell",
|
|
"command": "",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": ["Meson Configure", "Meson Compile"]
|
|
},
|
|
{
|
|
"label": "Meson Configure",
|
|
"type": "shell",
|
|
"command": "meson",
|
|
"args": [
|
|
"--prefix=/usr",
|
|
"--libdir=\"libdir\"",
|
|
"--sysconfdir=/etc",
|
|
"builddir"
|
|
],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Meson Compile",
|
|
"type": "shell",
|
|
"command": "meson",
|
|
"args": [
|
|
"compile",
|
|
"-C",
|
|
"builddir",
|
|
],
|
|
"problemMatcher": [],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
{
|
|
"label": "Meson Dist",
|
|
"type": "shell",
|
|
"command": "meson",
|
|
"args": [
|
|
"dist",
|
|
"-C",
|
|
"builddir",
|
|
"--formats",
|
|
"xztar",
|
|
"--include-subprojects"
|
|
],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Meson Install",
|
|
"type": "shell",
|
|
"command": "sudo",
|
|
"args": [
|
|
"meson",
|
|
"install",
|
|
"-C",
|
|
"builddir",
|
|
"--destdir",
|
|
"/",
|
|
"--no-rebuild"
|
|
],
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
} |