File: SConscript

package info (click to toggle)
blender 2.46%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 68,208 kB
  • ctags: 77,061
  • sloc: ansic: 518,049; cpp: 199,438; python: 67,585; sh: 7,097; makefile: 3,572; perl: 2,082; java: 8
file content (32 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download
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
#!/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 in ('linux2', 'openbsd3', 'sunos5', 'freebsd6'):
    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')
else:
    print "Unknown window system specified."
    Exit()

incs = '. ../string ' + env['BF_OPENGL_INC']
if window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross'):
    incs = env['BF_WINTAB_INC'] + ' ' + incs
env.BlenderLib ('bf_ghost', sources, Split(incs), defines=['_USE_MATH_DEFINES'], libtype=['core','player'], priority = [25,15] )