Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SConscript « ghost « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1269c631190f8b5e70780774d976195c06543b1d (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/python
import sys
import os

Import ('env')

window_system = env['OURPLATFORM']

sources = env.Glob('intern/*.cpp')
if window_system == 'darwin':
	sources += env.Glob('intern/*.mm')


pf = ['GHOST_DisplayManager', 'GHOST_System', 'GHOST_Window', 'GHOST_DropTarget']
defs=['_USE_MATH_DEFINES']

if window_system in ('linux2', 'openbsd3', 'sunos5', 'freebsd6', 'irix6', 'aix4', 'aix5'):
	for f in pf:
		try:
			sources.remove('intern' + os.sep + f + 'Win32.cpp')
			sources.remove('intern' + os.sep + f + 'Carbon.cpp')
		except ValueError:
			pass
elif window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc'):
	for f in pf:
		try:
			sources.remove('intern' + os.sep + f + 'X11.cpp')
			sources.remove('intern' + os.sep + f + 'Carbon.cpp')
		except ValueError:
			pass
elif window_system == 'darwin':
	if env['WITH_GHOST_COCOA']:
		if env['WITH_BF_QUICKTIME']:
			defs.append('WITH_QUICKTIME')
		if env['USE_QTKIT']:
			defs.append('USE_QTKIT')
		for f in pf:
			try:
				sources.remove('intern' + os.sep + f + 'Win32.cpp')
				sources.remove('intern' + os.sep + f + 'X11.cpp')
				sources.remove('intern' + os.sep + f + 'Carbon.cpp')
			except ValueError:
				pass
	else:
		for f in pf:
			try:
				sources.remove('intern' + os.sep + f + 'Win32.cpp')
				sources.remove('intern' + os.sep + f + 'X11.cpp')
				sources.remove('intern' + os.sep + f + 'Cocoa.mm')
			except ValueError:
				pass

else:
	print "Unknown window system specified."
	Exit()

if env['BF_GHOST_DEBUG']:
	defs.append('BF_GHOST_DEBUG')
	
incs = '. ../string #extern/glew/include #source/blender/imbuf #source/blender/makesdna ' + env['BF_OPENGL_INC']
if window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc'):
	incs = env['BF_WINTAB_INC'] + ' ' + incs
env.BlenderLib ('bf_ghost', sources, Split(incs), defines=defs, libtype=['intern','player'], priority = [40,15] )