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

SConscript « bFTGL « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5504965b1c9874a6eea06bc5a1b41a75f42b5b3c (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
#!/usr/bin/python
import sys
import os

ftgl_env = Environment(ENV=os.environ)

# Import the C flags set in the SConstruct file
Import ('cflags')
Import ('defines')
Import ('user_options_dict')

if sys.platform=='linux2' or sys.platform=='linux-i386':
	ftgl_env.Append (CCFLAGS = ['-O2', '-ansi'])
elif sys.platform=='win32':
	ftgl_env.Append (CCFLAGS = ['/O2'])
elif sys.platform=='sunos':
	ftgl_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
elif sys.platform=='darwin':
	ftgl_env.Append (CCFLAGS = ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' , '-mtune=G4'])
else:
	ftgl_env.Append (CCFLAGS = cflags)

ftgl_env.Append (CPPDEFINES = defines)
ftgl_env.Append (CPPPATH = ['include',
                             'src'])

ftgl_env.Append (CPPPATH = user_options_dict['FREETYPE_INCLUDE'])

source_files = [
		'src/FTBitmapGlyph.cpp',
		'src/FTCharmap.cpp',
		'src/FTContour.cpp',
		'src/FTExtrdGlyph.cpp',
		'src/FTFace.cpp',
		'src/FTFont.cpp',
		'src/FTGLBitmapFont.cpp',
		'src/FTGLExtrdFont.cpp',
		'src/FTGLOutlineFont.cpp',
		'src/FTGLPixmapFont.cpp',
		'src/FTGLPolygonFont.cpp',
		'src/FTGLTextureFont.cpp',
		'src/FTGlyph.cpp',
		'src/FTGlyphContainer.cpp',
		'src/FTLibrary.cpp',
		'src/FTOutlineGlyph.cpp',
		'src/FTPixmapGlyph.cpp',
		'src/FTPoint.cpp',
		'src/FTPolyGlyph.cpp',
		'src/FTSize.cpp',
		'src/FTTextureGlyph.cpp',
		'src/FTVectoriser.cpp']

ftgl_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/extern_ftgl', source=source_files)