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

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', 'SDLmain', 'gstreamer-0.10'])

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