godot-xterm/addons/godot_xterm/native/build.sh

29 lines
539 B
Bash
Raw Normal View History

#! /usr/bin/env nix-shell
#! nix-shell -i bash --pure -p binutils.bintools cmake scons
2020-09-17 11:23:01 +02:00
set -e
# Make sure we are in the addons/godot_xterm directory
cd ${BASH_SOURCE%/*}
# Initialize godot-cpp
2020-09-17 11:23:01 +02:00
if [ ! -d "modules/godot-cpp/bin" ]
then
2020-09-17 11:23:01 +02:00
cd modules/godot-cpp
scons platform=linux generate_bindings=yes -j12
2020-09-17 11:23:01 +02:00
cd ../..
fi
# Build libtsm
2020-09-17 11:23:01 +02:00
if [ ! -f "modules/libtsm/build/src/tsm/libtsm.a" ]
then
2020-09-17 11:23:01 +02:00
cd modules/libtsm
mkdir -p build
cd build
cmake -DBUILD_SHARED_LIBS=n ..
make
2020-09-17 11:23:01 +02:00
cd ../../..
fi
# Build godotxtermnative
scons platform=linux