File: SConscript

package info (click to toggle)
blender 2.42a-8
  • links: PTS
  • area: main
  • in suites: etch
  • size: 60,724 kB
  • ctags: 83,393
  • sloc: ansic: 576,763; cpp: 187,760; python: 48,472; sh: 15,811; makefile: 4,298; perl: 2,082; asm: 1,471; java: 8
file content (34 lines) | stat: -rw-r--r-- 1,120 bytes parent folder | download | duplicates (2)
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
31
32
33
34
#!/usr/bin/python
import sys
import os

Import ('env')

window_system = env['OURPLATFORM']

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 in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross'):
    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')
elif window_system == 'openbsd3':
    for f in pf:
        sources.remove('intern' + os.sep + f + 'Win32.cpp')
        sources.remove('intern' + os.sep + f + 'Carbon.cpp')
else:
    print "Unknown window system specified."
    Exit()

incs = '. ../string ' + env['BF_OPENGL_INC']
env.BlenderLib ('bf_ghost', sources, Split(incs), [], libtype=['core','player'], priority = [25,15] )