2005-05-06 13:37:18 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
Import('env')
|
2005-05-06 13:37:18 +00:00
|
|
|
|
|
|
|
# Import the C flags set in the SConstruct file
|
2006-02-04 14:15:10 +00:00
|
|
|
#Import ('cflags')
|
|
|
|
#Import ('defines')
|
|
|
|
#Import ('user_options_dict')
|
2005-05-06 13:37:18 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
#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':
|
2007-01-28 14:55:57 +00:00
|
|
|
# ftgl_env.Append (CCFLAGS = ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math'])
|
2006-02-04 14:15:10 +00:00
|
|
|
#else:
|
|
|
|
# ftgl_env.Append (CCFLAGS = cflags)
|
2005-05-06 13:37:18 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
#ftgl_env.Append (CPPDEFINES = defines)
|
2005-05-06 13:37:18 +00:00
|
|
|
|
2008-06-09 10:03:30 +00:00
|
|
|
incs = 'include src ' + env['BF_FREETYPE_INC'] + ' ' + env['BF_OPENGL_INC']
|
2006-02-04 14:15:10 +00:00
|
|
|
defs = ''
|
2005-05-06 13:37:18 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = env.Glob('src/*.cpp')
|
2005-05-06 13:37:18 +00:00
|
|
|
|
2006-02-07 21:24:36 +00:00
|
|
|
env.BlenderLib ( 'extern_ftgl', sources, Split(incs), Split(defs), libtype=['international','player'], priority=[5, 210])
|