jabyengine/src/Tools/Tools.code-workspace

87 lines
2.0 KiB
Plaintext

{
"folders": [
{
"path": "."
}
],
"settings": {},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "all",
"type": "shell",
"command": "./build_all.bat ${input:cargo cmd}",
"group": {
"kind": "build"
}
},
{
"label": "cargo",
"type": "shell",
"command": "./run_cargo ${input:project} ${input:cargo cmd} ${input:build cfg} ${input:cargo target}",
"group": {
"kind": "build",
},
"options": {
"env": {
"CARGO_RUN_ARGS": "${input:cargo run args}"
}
}
},
{
"label": "cargo test",
"type": "shell",
"command": "./run_cargo ${input:project} test release ${input:cargo target}"
},
{
"label": "run test make",
"type": "shell",
"command": "wsl make -f Test.mk test_${input:project}",
"group": {
"kind": "build",
},
"options": {
"cwd": "${workspaceFolder}/Tests"
},
"dependsOn": ["cargo test"],
"dependsOrder": "sequence"
}
],
"inputs": [
{
"id": "build cfg",
"type": "pickString",
"options": ["debug", "release"],
"default": "release",
"description": "build configuration"
},
{
"id": "project",
"type": "pickString",
"options": ["cdtypes", "cpp_out", "jaby_engine_fconv", "mkoverlay", "psxcdgen", "psxcdgen_ex", "psxcdread", "tool_helper", "wslpath"],
"description": "project to build"
},
{
"id": "cargo cmd",
"type":"pickString",
"options": ["build", "check", "update", "clean", "run"],
"default": "build",
"description": "cargo command to run"
},
{
"id": "cargo target",
"type": "pickString",
"options": ["windows", "linux"],
"description": "The target for the tool to build"
},
{
"id": "cargo run args",
"type": "pickString",
"options": ["", "--help", "--list -o ../Tests/Test_Planschbecken psx bin-cue ../Tests/ISO_Planschbecken.xml"],
"default": "",
"description": "Argument options to pass to cargo run"
}
]
}
}