forked from bartvdbraak/blender
ef1b7a5735
+ 'scons blenderplayer' builds blender AND blenderplayer now (tested on Linux only, but was only linking issue, so should work on other platforms too). NOTE: I noticed some compileflags for GE specific libs that were left out - I re-enabled them in the SConscripts, but I'm going to do a test build my- self now, so if there are problems with them on win32, I probably already know about them :)
31 lines
872 B
Python
31 lines
872 B
Python
#!/usr/bin/python
|
|
import sys
|
|
import os
|
|
|
|
Import('env')
|
|
|
|
# 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)
|
|
|
|
incs = 'include src ' + env['BF_FREETYPE_INC']
|
|
defs = ''
|
|
|
|
sources = env.Glob('src/*.cpp')
|
|
|
|
env.BlenderLib ( 'extern_ftgl', sources, Split(incs), Split(defs), libtype=['international','player'], priority=[5, 210])
|