forked from ydnax/gpn12gamejamgame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCons.gcc
20 lines (20 loc) · 1018 Bytes
/
SCons.gcc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
env = Environment()
env.Replace( CXX = "g++-4.7.0" )
env.Append( CCFLAGS = '-pedantic -Wall -Wextra -Werror -std=c++11' )
env.Append( LIBS = ['SDL', 'SDL_image', 'SDL_gfx', 'SDL_mixer', 'SDL_ttf',] )
env.Append( CPPPATH = '.' )
debug = ARGUMENTS.get('debug', 0)
if int(debug)==1:
env.SetOption('num_jobs', 1)
env.Append(CCFLAGS = '-g -ggdb -O0')
else:
env.SetOption('num_jobs', 4)
env.Append(CCFLAGS = '-O3 -mmmx -msse -msse2 -msse3')
env.Program("game_name.bin", [ env.Object(Glob('game_name/*.cpp')),
env.Object(Glob('game_name/GameLogic/*.cpp')),
env.Object(Glob('game_name/Objects/*.cpp')),
env.Object(Glob('pic-gl/Util/*.cpp')),
env.Object(Glob('pic-gl/Ui/*.cpp')),
env.Object(Glob('pic-gl/Resources/*.cpp')),
env.Object(Glob('pic-gl/Gameflow/*.cpp')),
] )