2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
import sys
|
|
|
|
import os
|
2004-02-29 21:40:48 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-05 17:14:52 +00:00
|
|
|
window_system = env['OURPLATFORM']
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = env.Glob('intern/*.cpp')
|
|
|
|
|
|
|
|
pf = ['GHOST_DisplayManager', 'GHOST_System', 'GHOST_Window']
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if window_system == 'linux2':
|
2006-02-05 17:14:52 +00:00
|
|
|
for f in pf:
|
|
|
|
sources.remove('intern' + os.sep + f + 'Win32.cpp')
|
|
|
|
sources.remove('intern' + os.sep + f + 'Carbon.cpp')
|
2006-03-13 11:42:49 +00:00
|
|
|
elif window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross'):
|
2006-02-05 17:14:52 +00:00
|
|
|
for f in pf:
|
|
|
|
sources.remove('intern' + os.sep + f + 'X11.cpp')
|
|
|
|
sources.remove('intern' + os.sep + f + 'Carbon.cpp')
|
2006-02-04 14:15:10 +00:00
|
|
|
elif window_system == 'darwin':
|
2006-02-05 17:14:52 +00:00
|
|
|
for f in pf:
|
|
|
|
sources.remove('intern' + os.sep + f + 'Win32.cpp')
|
|
|
|
sources.remove('intern' + os.sep + f + 'X11.cpp')
|
2006-02-04 14:15:10 +00:00
|
|
|
else:
|
2006-02-05 17:14:52 +00:00
|
|
|
print "Unknown window system specified."
|
|
|
|
Exit()
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs = '. ../string ' + env['BF_OPENGL_INC']
|
2006-02-07 21:24:36 +00:00
|
|
|
env.BlenderLib ('bf_ghost', sources, Split(incs), [], libtype=['core','player'], priority = [25,15] )
|