== SCons ==
[blender.git] / intern / ghost / SConscript
1 #!/usr/bin/python
2 import sys
3 import os
4
5 Import ('env')
6
7 window_system = sys.platform
8
9 sources = env.Glob('intern/*.cpp')
10
11 pf = ['GHOST_DisplayManager', 'GHOST_System', 'GHOST_Window']
12
13 if window_system == 'linux2':
14         for f in pf:
15                 sources.remove('intern' + os.sep + f + 'Win32.cpp')
16                 sources.remove('intern' + os.sep + f + 'Carbon.cpp')
17 elif window_system == 'win32':
18         for f in pf:
19                 sources.remove('intern' + os.sep + f + 'X11.cpp')
20                 sources.remove('intern' + os.sep + f + 'Carbon.cpp')
21 elif window_system == 'darwin':
22         for f in pf:
23                 sources.remove('intern' + os.sep + f + 'Win32.cpp')
24                 sources.remove('intern' + os.sep + f + 'X11.cpp')
25 else:
26         print "Unknown window system specified."
27         Exit()
28
29 incs = '. ../string ' + env['BF_OPENGL_INC']
30 env.BlenderLib ('blender_GHOST', sources, Split(incs), [], libtype='core', priority = 25 )