forked from bartvdbraak/blender
00291b5cf4
[SCons] Build with Solid as default when enabling the gameengine in the build process [SCons] Build solid and qhull from the extern directory and link statically against them That was about it. There are a few things that needs double checking: * Makefiles * Projectfiles * All the other systems than Linux and Windows on which the build (with scons) has been successfully tested.
34 lines
966 B
Python
34 lines
966 B
Python
import sys
|
|
|
|
qhull_env = Environment()
|
|
|
|
# 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':
|
|
qhull_env.Append (CCFLAGS = ['-O2', '-ansi'])
|
|
elif sys.platform=='sunos':
|
|
qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
|
|
else:
|
|
qhull_env.Append (CCFLAGS = cflags)
|
|
qhull_env.Append (CPPDEFINES = defines)
|
|
|
|
source_files = ['src/geom.c',
|
|
'src/geom2.c',
|
|
'src/global.c',
|
|
'src/io.c',
|
|
'src/mem.c',
|
|
'src/merge.c',
|
|
'src/poly.c',
|
|
'src/poly2.c',
|
|
'src/qhull.c',
|
|
'src/qset.c',
|
|
'src/stat.c',
|
|
'src/user.c']
|
|
|
|
qhull_env.Append (CPPPATH = ['include',
|
|
'src'])
|
|
|
|
qhull_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/extern_qhull', source=source_files)
|