mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-09-20 16:36:19 +02:00
f8412a03f5
Makes libtsm a static library rather than dynamic so that it doesn't
have to be installed as a system library on the user's operating system.
Also updates SConstruct to work on more operating systems other than
just NixOS. Adds a number of docker files for building the library on
various distributions (NixOS, Arch Linux, Ubuntu).
Uses a fork of godot-cpp with an updated godot_headers submodule that
includes godotengine/godot_headers#76. We should go back to tracking
https://github.com/godotengine/godot-cpp once the submodule has
been updated in that repo.
Former-commit-id: d8c8b5b272
27 lines
501 B
Bash
Executable file
27 lines
501 B
Bash
Executable file
#! /usr/bin/env nix-shell
|
|
#! nix-shell -i bash --pure -p binutils.bintools cmake scons
|
|
|
|
# Make sure we are in the addons/godot_xterm_native directory
|
|
cd ${BASH_SOURCE%/*}
|
|
|
|
# Initialize godot-cpp
|
|
if [ ! -d "godot-cpp/bin" ]
|
|
then
|
|
cd godot-cpp
|
|
scons platform=linux generate_bindings=yes -j12
|
|
cd ..
|
|
fi
|
|
|
|
# Build libtsm
|
|
if [ ! -f "libtsm/build/src/tsm/libtsm.a" ]
|
|
then
|
|
cd libtsm
|
|
mkdir -p build
|
|
cd build
|
|
cmake -DBUILD_SHARED_LIBS=n ..
|
|
make
|
|
cd ../..
|
|
fi
|
|
|
|
# Build godotxtermnative
|
|
scons platform=linux
|