mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-05 04:34:23 +02:00
parent
a022104230
commit
ee6d7cb0fa
33 changed files with 89 additions and 50 deletions
28
addons/godot_xterm/native/build.sh
Executable file
28
addons/godot_xterm/native/build.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash --pure -p binutils.bintools cmake scons
|
||||
set -e
|
||||
|
||||
# Make sure we are in the addons/godot_xterm directory
|
||||
cd ${BASH_SOURCE%/*}
|
||||
|
||||
# Initialize godot-cpp
|
||||
if [ ! -d "modules/godot-cpp/bin" ]
|
||||
then
|
||||
cd modules/godot-cpp
|
||||
scons platform=linux generate_bindings=yes -j12
|
||||
cd ../..
|
||||
fi
|
||||
|
||||
# Build libtsm
|
||||
if [ ! -f "modules/libtsm/build/src/tsm/libtsm.a" ]
|
||||
then
|
||||
cd modules/libtsm
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DBUILD_SHARED_LIBS=n ..
|
||||
make
|
||||
cd ../../..
|
||||
fi
|
||||
|
||||
# Build godotxtermnative
|
||||
scons platform=linux
|
Loading…
Add table
Add a link
Reference in a new issue