summaryrefslogtreecommitdiff
path: root/SConstruct
blob: faf225ba577ff522368c4a8d10e4146a515b0323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
env = Environment(
	LIBS = ['ARgsub_lite', 'ARvideo', 'AR', 'assimp'],
)

common_sources = ['application.cpp', 'pattern.cpp', 'texture.cpp', 'texturesdl.cpp']

if env['PLATFORM'] == 'darwin':
	env.Append(CPPFLAGS = '-m32')
	env.Append(LINKFLAGS = '-m32')
	env.Append(FRAMEWORKS = ['SDL', 'SDL_image', 'Cocoa', 'OpenGL', 'QuickTime', 'Carbon', 'AppKit'])
	common_sources.append('SDLMain.m')
else:
	env.Append(LIBS = ['GL', 'GLU', 'SDL', 'SDL_image', 'SDLmain', 'gstreamer-0.10'])

env.Program('foo', ['foo.cpp'] + common_sources)

env.Program('assimp', ['assimp.cpp'] + common_sources)