7 window_system = env['OURPLATFORM']
9 sources = env.Glob('intern/*.cpp')
11 pf = ['GHOST_DisplayManager', 'GHOST_System', 'GHOST_Window']
13 if window_system in ('linux2', 'openbsd3', 'sunos5', 'freebsd6', 'irix6'):
15 sources.remove('intern' + os.sep + f + 'Win32.cpp')
16 sources.remove('intern' + os.sep + f + 'Carbon.cpp')
17 elif window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc'):
19 sources.remove('intern' + os.sep + f + 'X11.cpp')
20 sources.remove('intern' + os.sep + f + 'Carbon.cpp')
21 elif window_system == 'darwin':
23 sources.remove('intern' + os.sep + f + 'Win32.cpp')
24 sources.remove('intern' + os.sep + f + 'X11.cpp')
26 print "Unknown window system specified."
29 incs = '. ../string ' + env['BF_OPENGL_INC']
30 if window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc'):
31 incs = env['BF_WINTAB_INC'] + ' ' + incs
32 env.BlenderLib ('bf_ghost', sources, Split(incs), defines=['_USE_MATH_DEFINES'], libtype=['intern'], priority = [40] )