* libraries are now generated in [BUILD_DIR]/lib * passed the user_options to all libraries now. This means I could remove a couple of Export/Import lines. * Changed the order in source/blender/src/SConscript and source/gameengine/SConscript. All libraries are now sorted alphabetically. This has no impact on the build process.
39 lines
1.3 KiB
Python
Executable File
39 lines
1.3 KiB
Python
Executable File
expressions_env = Environment()
|
|
|
|
# Import the C flags set in the SConstruct file
|
|
Import ('cflags')
|
|
Import ('cxxflags')
|
|
Import ('defines')
|
|
Import ('python_include')
|
|
Import ('user_options_dict')
|
|
expressions_env.Append (CCFLAGS = cflags)
|
|
expressions_env.Append (CXXFLAGS = cxxflags)
|
|
expressions_env.Append (CPPDEFINES = defines)
|
|
|
|
source_files = ['BoolValue.cpp',
|
|
'ConstExpr.cpp',
|
|
'EmptyValue.cpp',
|
|
'ErrorValue.cpp',
|
|
'EXP_C-Api.cpp',
|
|
'Expression.cpp',
|
|
'FloatValue.cpp',
|
|
'IdentifierExpr.cpp',
|
|
'IfExpr.cpp',
|
|
'InputParser.cpp',
|
|
'IntValue.cpp',
|
|
'KX_HashedPtr.cpp',
|
|
'ListValue.cpp',
|
|
'Operator1Expr.cpp',
|
|
'Operator2Expr.cpp',
|
|
'PyObjectPlus.cpp',
|
|
'StringValue.cpp',
|
|
'Value.cpp',
|
|
'VectorValue.cpp']
|
|
|
|
expressions_env.Append (CPPPATH = ['.',
|
|
'#source/kernel/gen_system',
|
|
'#intern/string',
|
|
python_include])
|
|
|
|
expressions_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_expressions', source=source_files)
|