Merge pull request #175 from MysticTreeGames/master
Engine build improvements
This commit is contained in:
commit
3dcfdc057c
3 changed files with 48 additions and 0 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -116,6 +116,11 @@ ipch/
|
||||||
*.vsp
|
*.vsp
|
||||||
*.vspx
|
*.vspx
|
||||||
|
|
||||||
|
# CodeLite project files
|
||||||
|
*.project
|
||||||
|
*.workspace
|
||||||
|
.codelite/
|
||||||
|
|
||||||
# TFS 2012 Local Workspace
|
# TFS 2012 Local Workspace
|
||||||
$tf/
|
$tf/
|
||||||
|
|
||||||
|
@ -198,6 +203,9 @@ ClientBin/
|
||||||
*.publishsettings
|
*.publishsettings
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
|
# KDE
|
||||||
|
.directory
|
||||||
|
|
||||||
# RIA/Silverlight projects
|
# RIA/Silverlight projects
|
||||||
Generated_Code/
|
Generated_Code/
|
||||||
|
|
||||||
|
|
10
SConstruct
10
SConstruct
|
@ -6,6 +6,16 @@ import os.path
|
||||||
import glob
|
import glob
|
||||||
import sys
|
import sys
|
||||||
import methods
|
import methods
|
||||||
|
import multiprocessing
|
||||||
|
|
||||||
|
# Enable aggresive compile mode if building on a multi core box
|
||||||
|
# only is we have not set the number of jobs already or we do
|
||||||
|
# not want it
|
||||||
|
if ARGUMENTS.get('spawn_jobs', 'yes') == 'yes' and \
|
||||||
|
int(GetOption('num_jobs')) <= 1:
|
||||||
|
NUM_JOBS = multiprocessing.cpu_count()
|
||||||
|
if NUM_JOBS > 1:
|
||||||
|
SetOption('num_jobs', NUM_JOBS+1)
|
||||||
|
|
||||||
methods.update_version()
|
methods.update_version()
|
||||||
|
|
||||||
|
|
30
makefile
Normal file
30
makefile
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
#*************************************************************************/
|
||||||
|
#* This file is part of: */
|
||||||
|
#* GODOT ENGINE */
|
||||||
|
#* http://www.godotengine.org */
|
||||||
|
#*************************************************************************/
|
||||||
|
# Simple makefile to give support for external C/C++ IDEs */
|
||||||
|
#*************************************************************************/
|
||||||
|
|
||||||
|
# Default build
|
||||||
|
all: debug
|
||||||
|
|
||||||
|
# Release Build
|
||||||
|
release:
|
||||||
|
scons target="release" bin/godot
|
||||||
|
|
||||||
|
# Profile Build
|
||||||
|
profile:
|
||||||
|
scons target="profile" bin/godot
|
||||||
|
|
||||||
|
# Debug Build
|
||||||
|
debug:
|
||||||
|
# Debug information (code size gets severely affected):
|
||||||
|
# g: Default (same as g2)
|
||||||
|
# g0: no debug info
|
||||||
|
# g1: minimal info
|
||||||
|
# g3: maximal info
|
||||||
|
scons target="debug" CCFLAGS="-g" bin/godot
|
||||||
|
|
||||||
|
clean:
|
||||||
|
scons -c bin/godot
|
Loading…
Reference in a new issue