godot-xterm/addons/godot_xterm/native/docker-compose.yml

62 lines
1.5 KiB
YAML
Raw Permalink Normal View History

---
2021-06-07 08:53:43 +02:00
services:
javascript:
build:
context: .
dockerfile: javascript.Dockerfile
user: ${UID_GID}
volumes:
- .:/src
command:
- /bin/bash
- -c
- |
2024-03-30 03:24:32 +01:00
scons platform=web target=$${TARGET:-template_debug} -j$$(nproc)
libuv-linux:
user: ${UID_GID}
build:
context: .
dockerfile: linux.Dockerfile
volumes:
- ./thirdparty/libuv:/libuv
working_dir: /libuv
command:
- /bin/bash
- -c
- |
target=$${TARGET:-release}
arch=$${ARCH:-x86_64}
mkdir build 2>/dev/null ;
args="-DCMAKE_BUILD_TYPE=$$target \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE"
if [[ $$arch == "x86_32" ]]; then
args="$$args -DCMAKE_SYSTEM_PROCESSOR=i686 -DCMAKE_C_FLAGS=-m32";
else
args="$$args -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_C_FLAGS=";
fi
pushd build
cmake .. $$args
popd
cmake --build build
libgodot-xterm-linux:
user: ${UID_GID}
build:
context: .
dockerfile: linux.Dockerfile
volumes:
- .:/godot-xterm
working_dir: /godot-xterm
environment:
- SCONS_CACHE=/scons-cache
command:
- /bin/bash
- -c
- |
if [ -z "$$DEBUG_SYMBOLS" ]; then
if [ "$$TARGET" == "debug" ]; then
DEBUG_SYMBOLS=yes
fi
fi
scons target=template_$${TARGET:-debug} arch=$${ARCH:-x86_64} debug_symbols=$${DEBUG_SYMBOLS:-no}