7 window_system = env['OURPLATFORM']
9 sources = env.Glob('intern/*.cpp')
10 if window_system == 'darwin':
11 sources += env.Glob('intern/*.mm')
14 pf = ['GHOST_DisplayManager', 'GHOST_System', 'GHOST_Window', 'GHOST_DropTarget']
15 defs=['_USE_MATH_DEFINES']
17 if window_system in ('linux2', 'openbsd3', 'sunos5', 'freebsd7', 'freebsd8', 'freebsd9', 'irix6', 'aix4', 'aix5'):
20 sources.remove('intern' + os.sep + f + 'Win32.cpp')
21 sources.remove('intern' + os.sep + f + 'Carbon.cpp')
24 elif window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc'):
27 sources.remove('intern' + os.sep + f + 'X11.cpp')
28 sources.remove('intern' + os.sep + f + 'Carbon.cpp')
31 elif window_system == 'darwin':
32 if env['WITH_GHOST_COCOA']:
33 if env['WITH_BF_QUICKTIME']:
34 defs.append('WITH_QUICKTIME')
36 defs.append('USE_QTKIT')
39 sources.remove('intern' + os.sep + f + 'Win32.cpp')
40 sources.remove('intern' + os.sep + f + 'X11.cpp')
41 sources.remove('intern' + os.sep + f + 'Carbon.cpp')
47 sources.remove('intern' + os.sep + f + 'Win32.cpp')
48 sources.remove('intern' + os.sep + f + 'X11.cpp')
49 sources.remove('intern' + os.sep + f + 'Cocoa.mm')
54 print "Unknown window system specified."
57 if env['BF_GHOST_DEBUG']:
58 defs.append('BF_GHOST_DEBUG')
60 incs = '. ../string #extern/glew/include #source/blender/imbuf #source/blender/makesdna ' + env['BF_OPENGL_INC']
61 if window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc'):
62 incs = env['BF_WINTAB_INC'] + ' ' + incs
63 env.BlenderLib ('bf_ghost', sources, Split(incs), defines=defs, libtype=['intern','player'], priority = [40,15] )