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 = ['texture.cpp', 'texturepng.cpp']
if env['PLATFORM'] == 'darwin':
env.Append(CPPFLAGS = '-m32')
env.Append(LINKFLAGS = '-m32')
env.Append(FRAMEWORKS = ['SDL', '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)
|