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

common_sources = ['application.cpp', 'videoprovider.cpp', 'hcoord.cpp', 'pattern.cpp']

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

Export('env')

env.SConscript('wriggle/SConscript')
env.Append(LIBS = ['wriggle'])
env.Append(LIBPATH = ['wriggle'])

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

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