Added update script and fixed scons on osx

This commit is contained in:
BERTHAUT Florent 2020-05-08 18:36:17 +02:00
parent b2a24dd5a8
commit 7408afb7fb
2 changed files with 8 additions and 0 deletions

View file

@ -51,9 +51,11 @@ if env['platform'] == "osx":
cpp_library += '.osx'
if env['target'] in ('debug', 'd'):
env.Append(CCFLAGS=['-g', '-O2', '-arch', 'x86_64'])
env.Append(CXXFLAGS=['-std=c++17'])
env.Append(LINKFLAGS=['-arch', 'x86_64'])
else:
env.Append(CCFLAGS=['-g', '-O3', '-arch', 'x86_64'])
env.Append(CXXFLAGS=['-std=c++17'])
env.Append(LINKFLAGS=['-arch', 'x86_64'])
elif env['platform'] in ('x11', 'linux'):

6
update.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
git submodule update --init --recursive
cd src/godot-cpp
scons platform=$1 generate_bindings=yes
cd ../..
scons platform=$1