Make Library build work with podman
This commit is contained in:
parent
cdb3d9fdde
commit
f684cfbfdb
|
@ -11,6 +11,9 @@ RUN apt update && ./install_rust.sh
|
||||||
# TODO: Deal with this eventually
|
# TODO: Deal with this eventually
|
||||||
ADD ["scripts/install_pop-fe.sh", "/usr/scripts"]
|
ADD ["scripts/install_pop-fe.sh", "/usr/scripts"]
|
||||||
|
|
||||||
|
ENV PATH="/jaby_engine/bin:/root/.cargo/bin:${PATH}"
|
||||||
|
ENV JABY_ENGINE_PATH=/jaby_engine
|
||||||
|
|
||||||
#WORKDIR /usr/src/project
|
#WORKDIR /usr/src/project
|
||||||
|
|
||||||
#RUN apt update && apt install -y nginx
|
#RUN apt update && apt install -y nginx
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
if [[ -z "${JABY_ENGINE_PROJECT_PATH}" ]]; then
|
PROJECT_PATH=$1
|
||||||
PROJECT_MOUNT=-v ${JABY_ENGINE_PROJECT_PATH}:${JABY_ENGINE_PROJECT_PATH}
|
PROJECT_WORK_DIR=$2
|
||||||
else
|
shift
|
||||||
PROJECT_MOUNT=
|
shift
|
||||||
fi
|
podman run --rm -it -v ${JABY_ENGINE_PATH}:/jaby_engine -v ${PROJECT_PATH}:/project -e PSX_LICENSE_PATH=${PSX_LICENSE_PATH} -w /project/$PROJECT_WORK_DIR jaby_engine $@
|
||||||
|
|
||||||
podman run --rm -it -v ${JABY_ENGINE_PATH}:${JABY_ENGINE_PATH} $PROJECT_MOUNT -e JABY_ENGINE_PATH=${JABY_ENGINE_PATH} -e PSX_LICENSE_PATH=${PSX_LICENSE_PATH} -w ${PWD} jaby_engine $@
|
|
|
@ -19,23 +19,13 @@
|
||||||
{
|
{
|
||||||
"label": "make",
|
"label": "make",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"windows": {
|
"command": "../../scripts/podman_jaby_engine.sh ../../ src/Library make ${input:target} BUILD_PROFILE=${input:build cfg} PSX_TV_FORMAT=${input:tv format} CUSTOM_CONFIG=${input:config options}",
|
||||||
"command": "wsl make ${input:target} BUILD_PROFILE=${input:build cfg} PSX_TV_FORMAT=${input:tv format} CUSTOM_CONFIG=${input:config options}",
|
|
||||||
},
|
|
||||||
"linux": {
|
|
||||||
"command": "make ${input:target} BUILD_PROFILE=${input:build cfg} PSX_TV_FORMAT=${input:tv format} CUSTOM_CONFIG=${input:config options}",
|
|
||||||
},
|
|
||||||
"group": "build"
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "make_all",
|
"label": "make_all",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"windows": {
|
"command": "../../scripts/podman_jaby_engine.sh ../../ src/Library make -f MakeAll.mk ${input:target prefix}_${input:target} BUILD_PROFILE=${input:build cfg} CUSTOM_CONFIG=${input:config options}",
|
||||||
"command": "wsl make -f MakeAll.mk ${input:target prefix}_${input:target} BUILD_PROFILE=${input:build cfg} CUSTOM_CONFIG=${input:config options}",
|
|
||||||
},
|
|
||||||
"linux": {
|
|
||||||
"command": "make -f MakeAll.mk ${input:target} BUILD_PROFILE=${input:build cfg}",
|
|
||||||
},
|
|
||||||
"group": "build"
|
"group": "build"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -59,7 +49,7 @@
|
||||||
"type": "command",
|
"type": "command",
|
||||||
"command": "shellCommand.execute",
|
"command": "shellCommand.execute",
|
||||||
"args": {
|
"args": {
|
||||||
"command": "echo ^|^<Default^> && dir /b /a:d",
|
"command": "echo \"|<Default>\" && ls -d */",
|
||||||
"cwd": "${workspaceFolder}/../../config",
|
"cwd": "${workspaceFolder}/../../config",
|
||||||
"fieldSeparator": "|"
|
"fieldSeparator": "|"
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,23 +6,14 @@
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"cargo_task": [
|
"cargo_task": [
|
||||||
"./ all!Unix: All",
|
"./ all!All",
|
||||||
"cpp_out all!Unix: cpp_out",
|
"cpp_out all!cpp_out",
|
||||||
"mkoverlay all!Unix: mkoverlay",
|
"mkoverlay all!mkoverlay",
|
||||||
"psxcdgen_ex all!Unix: psxcdgen_ex",
|
"psxcdgen_ex all!psxcdgen_ex",
|
||||||
"psxcdread all!Unix: psxcdread",
|
"psxcdread all!psxcdread",
|
||||||
"psxfileconv all!Unix: psxfileconv",
|
"psxfileconv all!psxfileconv",
|
||||||
"psxreadmap all!Unix: psxreadmap",
|
"psxreadmap all!psxreadmap",
|
||||||
"wslpath all!Unix: wslpath",
|
"wslpath all!wslpath",
|
||||||
|
|
||||||
"./ all-windows!Windows: All",
|
|
||||||
"cpp_out all-windows!Windows: cpp_out",
|
|
||||||
"mkoverlay all-windows!Windows: mkoverlay",
|
|
||||||
"psxcdgen_ex all-windows!Windows: psxcdgen_ex",
|
|
||||||
"psxcdread all-windows!Windows: psxcdread",
|
|
||||||
"psxfileconv all-windows!Windows: psxfileconv",
|
|
||||||
"psxreadmap all-windows!Windows: psxreadmap",
|
|
||||||
"wslpath all-windows!Windows: wslpath"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"tasks": {
|
"tasks": {
|
||||||
|
@ -34,26 +25,11 @@
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build"
|
"kind": "build"
|
||||||
},
|
},
|
||||||
"windows": {
|
"command": "../../scripts/podman_jaby_engine.sh ../../ src/Tools make -C ${input:linux_cargo_task} CARGO_CMD=${input:cargo cmd} BUILD_PROFILE=${input:build cfg}",
|
||||||
"command": "wsl --shell-type login make -C ${input:windows_cargo_task} CARGO_CMD=${input:cargo cmd} BUILD_PROFILE=${input:build cfg}"
|
|
||||||
},
|
|
||||||
"linux": {
|
|
||||||
"command": "make -C ${input:linux_cargo_task} BUILD_PROFILE=${input:build cfg}"
|
|
||||||
},
|
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"inputs": [
|
"inputs": [
|
||||||
{
|
|
||||||
"id": "windows_cargo_task",
|
|
||||||
"type": "command",
|
|
||||||
"command": "shellCommand.execute",
|
|
||||||
"args": {
|
|
||||||
"command": "powershell",
|
|
||||||
"commandArgs": ["-command", "'${config:cargo_task}'.Replace(',',\"`n\")"],
|
|
||||||
"fieldSeparator": "!"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "linux_cargo_task",
|
"id": "linux_cargo_task",
|
||||||
"type": "command",
|
"type": "command",
|
||||||
|
|
Loading…
Reference in New Issue