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