updates to the OS X build system :
[blender.git] / intern / ghost / SConscript
1 #!/usr/bin/python
2 Import ('user_options_dict')
3 Import ('library_env')
4 Import ('window_system')
5
6 ghost_env = library_env.Copy ()
7
8 source_files = ['intern/GHOST_Buttons.cpp',
9                 'intern/GHOST_C-api.cpp',
10                 'intern/GHOST_CallbackEventConsumer.cpp',
11                 'intern/GHOST_DisplayManager.cpp',
12                 'intern/GHOST_EventManager.cpp',
13                 'intern/GHOST_EventPrinter.cpp',
14                 'intern/GHOST_ISystem.cpp',
15                 'intern/GHOST_ModifierKeys.cpp',
16                 'intern/GHOST_Rect.cpp',
17                 'intern/GHOST_System.cpp',
18                 'intern/GHOST_TimerManager.cpp',
19                 'intern/GHOST_Window.cpp',
20                 'intern/GHOST_WindowManager.cpp']
21
22 if window_system == 'X11':
23     source_files += ['intern/GHOST_DisplayManagerX11.cpp',
24                      'intern/GHOST_SystemX11.cpp',
25                      'intern/GHOST_WindowX11.cpp']
26 elif window_system == 'WIN32':
27     source_files += ['intern/GHOST_DisplayManagerWin32.cpp',
28                      'intern/GHOST_SystemWin32.cpp',
29                      'intern/GHOST_WindowWin32.cpp']
30 elif window_system == 'CARBON':
31     source_files += ['intern/GHOST_DisplayManagerCarbon.cpp',
32                      'intern/GHOST_SystemCarbon.cpp',
33                      'intern/GHOST_WindowCarbon.cpp']
34 else:
35     print "Unknown window system specified."
36
37 ghost_env.Append (CPPPATH = ['.',
38                              '../ghost',
39                              '../string'])
40
41 ghost_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
42 ghost_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_GHOST', source=source_files)