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