Added update script and fixed scons on osx
This commit is contained in:
parent
b2a24dd5a8
commit
7408afb7fb
2 changed files with 8 additions and 0 deletions
|
|
@ -51,9 +51,11 @@ if env['platform'] == "osx":
|
||||||
cpp_library += '.osx'
|
cpp_library += '.osx'
|
||||||
if env['target'] in ('debug', 'd'):
|
if env['target'] in ('debug', 'd'):
|
||||||
env.Append(CCFLAGS=['-g', '-O2', '-arch', 'x86_64'])
|
env.Append(CCFLAGS=['-g', '-O2', '-arch', 'x86_64'])
|
||||||
|
env.Append(CXXFLAGS=['-std=c++17'])
|
||||||
env.Append(LINKFLAGS=['-arch', 'x86_64'])
|
env.Append(LINKFLAGS=['-arch', 'x86_64'])
|
||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS=['-g', '-O3', '-arch', 'x86_64'])
|
env.Append(CCFLAGS=['-g', '-O3', '-arch', 'x86_64'])
|
||||||
|
env.Append(CXXFLAGS=['-std=c++17'])
|
||||||
env.Append(LINKFLAGS=['-arch', 'x86_64'])
|
env.Append(LINKFLAGS=['-arch', 'x86_64'])
|
||||||
|
|
||||||
elif env['platform'] in ('x11', 'linux'):
|
elif env['platform'] in ('x11', 'linux'):
|
||||||
|
|
|
||||||
6
update.sh
Executable file
6
update.sh
Executable 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
|
||||||
Loading…
Reference in a new issue