* Added the options to build (configurable via config.opts):
- blender dynamic (default enabled),
- blender static (default disabled). Not working because of a linking order
problem. The /usr/lib/libGL.a and /usr/lib/libGLU.a flags need to be
appended at the end of the link command, not directly after the linker.
Mailed the SCons mail list for a possible solution.
- blender player (default disabled). Not implemented yet anyway.
- blender plugin (default disabled). Not implemented yet anyway.
* Added the following variables to the config.opts:
- OPENGL_STATIC. This flag is only needed when building blender static.
- USE_BUILDINFO (true/false). Display build information in the splash
screen. When enabled, it will always rebuild source/creator/buildinfo.c,
so for compilation speed reasons, it is not adviced to enable this all the
time.
I had to make some adjustments specifically for the windows build
(winblender.res) file. This file is only compiled when building the dynamic
blender. I hope this is correct.
30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
creator_env = Environment ()
|
|
|
|
Import ('cflags')
|
|
Import ('cxxflags')
|
|
Import ('defines')
|
|
Import ('user_options_dict')
|
|
creator_env.Append (CCFLAGS = cflags)
|
|
creator_env.Append (CXXFLAGS = cxxflags)
|
|
creator_env.Append (CPPDEFINES = defines)
|
|
|
|
source_files = ['creator.c']
|
|
|
|
creator_env.Append (CPPPATH = ['#/intern/guardedalloc',
|
|
'../blender/blenlib',
|
|
'../blender/blenkernel',
|
|
'../blender/include',
|
|
'../blender/blenloader',
|
|
'../blender/imbuf',
|
|
'../blender/renderconverter',
|
|
'../blender/render/extern/include',
|
|
'../blender/python',
|
|
'../blender/makesdna',
|
|
'../kernel/gen_messaging',
|
|
'../kernel/gen_system'])
|
|
|
|
if user_options_dict['USE_QUICKTIME'] == 1:
|
|
creator_env.Append (CPPDEFINES = ['WITH_QUICKTIME'])
|
|
|
|
creator_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_creator', source=source_files)
|