2021-06-07 08:53:43 +02:00
|
|
|
services:
|
2021-06-15 08:54:35 +02:00
|
|
|
javascript:
|
2022-08-01 09:56:43 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: javascript.Dockerfile
|
2021-06-07 08:53:43 +02:00
|
|
|
user: ${UID_GID}
|
|
|
|
volumes:
|
2021-06-15 08:54:35 +02:00
|
|
|
- .:/src
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
cd /src/thirdparty/godot-cpp
|
2021-07-17 06:04:08 +02:00
|
|
|
scons platform=javascript target=$${TARGET:-debug} -j$$(nproc)
|
2021-06-15 08:54:35 +02:00
|
|
|
cd /src
|
2021-07-17 06:04:08 +02:00
|
|
|
scons platform=javascript target=$${TARGET:-debug} -j$$(nproc)
|
2022-06-01 05:26:03 +02:00
|
|
|
godot-cpp-linux:
|
|
|
|
user: ${UID_GID}
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: linux.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./thirdparty/godot-cpp:/godot-cpp
|
|
|
|
working_dir: /godot-cpp
|
|
|
|
libuv-linux:
|
|
|
|
user: ${UID_GID}
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: linux.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./thirdparty/libuv:/libuv
|
|
|
|
working_dir: /libuv
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
target=$${TARGET:-release}
|
|
|
|
bits=$${BITS:-'64'}
|
2022-06-29 15:48:12 +02:00
|
|
|
mkdir build 2>/dev/null
|
2022-06-01 05:26:03 +02:00
|
|
|
args="-DCMAKE_BUILD_TYPE=$$target \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE"
|
|
|
|
if [[ $$bits -eq 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
|
2022-06-29 15:48:12 +02:00
|
|
|
godot-cpp-windows:
|
|
|
|
user: ${UID_GID}
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: windows.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./thirdparty/godot-cpp:/godot-cpp
|
|
|
|
working_dir: /godot-cpp
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
scons platform=windows use_mingw=yes generate_bindings=yes target=$${TARGET:-release} bits=$${BITS:-64} -j$$(nproc)
|
|
|
|
libuv-windows:
|
|
|
|
user: ${UID_GID}
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: windows.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./thirdparty/libuv:/libuv
|
|
|
|
working_dir: /libuv
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
target=$${TARGET:-release}
|
|
|
|
bits=$${BITS:-'64'}
|
|
|
|
mkdir build 2>/dev/null
|
|
|
|
args="-DCMAKE_BUILD_TYPE=$$target \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE"
|
|
|
|
if [[ $$bits -eq 32 ]]; then
|
|
|
|
args="$$args -DCMAKE_SYSTEM_PROCESSOR=i686 -DCMAKE_C_FLAGS=-m32"
|
|
|
|
args="$$args -DCMAKE_TOOLCHAIN_FILE=/mingw-w64-i686.cmake"
|
|
|
|
else
|
|
|
|
args="$$args -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_C_FLAGS="
|
|
|
|
args="$$args -DCMAKE_TOOLCHAIN_FILE=/mingw-w64-x86_64.cmake"
|
|
|
|
fi
|
|
|
|
pushd build
|
|
|
|
cmake .. $$args
|
|
|
|
popd
|
|
|
|
cmake --build build
|
|
|
|
libgodot-xterm-windows:
|
|
|
|
user: ${UID_GID}
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: windows.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- .:/godot-xterm
|
|
|
|
working_dir: /godot-xterm
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -c
|
|
|
|
- scons platform=windows use_mingw=yes target=$${TARGET:-release} bits=$${BITS:-64} -j$$(nproc)
|