Use new build scripts

This commit is contained in:
Jaby 2023-10-09 21:49:40 +02:00 committed by Jaby
parent 82a4a34fc9
commit cc27ea5312
4 changed files with 188 additions and 178 deletions

View File

@ -12,14 +12,19 @@
{ {
"label": "all", "label": "all",
"type": "shell", "type": "shell",
"command": "./build_all.bat ${input:cargo cmd}", "windows": {
"command": "./build_all.bat ${input:cargo cmd}"
},
"linux": {
"command": "./build_all.sh ${input:cargo cmd}"
},
"group": { "group": {
"kind": "build" "kind": "build"
}, },
"options": { "options": {
"env": { "env": {
"win_tools": "psxcdgen psxcdgen_ex psxcdread psxreadmap wslpath", "win_tools": "psxcdgen_ex psxcdread psxreadmap wslpath",
"linux_tools": "cpp_out psxcdgen_ex jaby_engine_fconv mkoverlay wslpath", "linux_tools": "cpp_out psxcdgen_ex jaby_engine_fconv mkoverlay",
"clean_tools": "cdtypes tool_helper" "clean_tools": "cdtypes tool_helper"
} }
} }
@ -27,7 +32,12 @@
{ {
"label": "cargo", "label": "cargo",
"type": "shell", "type": "shell",
"command": "./run_cargo ${input:project} ${input:cargo cmd} ${input:build cfg} ${input:cargo target}", "windows": {
"command": "./run_cargo.bat ${input:project} ${input:cargo cmd} ${input:build cfg} ${input:cargo target}",
},
"linux": {
"command": "./run_cargo.sh ${input:project} ${input:cargo cmd} ${input:build cfg} ${input:cargo target}",
},
"group": { "group": {
"kind": "build", "kind": "build",
}, },

View File

@ -2,11 +2,11 @@
# build_all {build|check|clean} # build_all {build|check|clean}
if [ $1 = clean ]; then if [ $1 = clean ]; then
all_project=$win_tools $linux_tools $clean_tools all_project="$win_tools $linux_tools $clean_tools"
else else
all_project=$win_tools $linux_tools all_project="$win_tools $linux_tools"
fi fi
for prj in ${all_project[@]}; do for prj in ${all_project[@]}; do
source run_cargo.sh $prj $1 release ./run_cargo.sh $prj $1 release
done done