forked from bartvdbraak/blender
9330e553e8
* 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.
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
bsp_env = Environment()
|
|
|
|
# Import the C flags set in the SConstruct file
|
|
Import ('cflags')
|
|
Import ('cxxflags')
|
|
Import ('defines')
|
|
Import ('user_options_dict')
|
|
bsp_env.Append (CCFLAGS = cflags)
|
|
bsp_env.Append (CXXFLAGS = cxxflags)
|
|
bsp_env.Append (CPPDEFINES = defines)
|
|
|
|
source_files = ['intern/BSP_CSGHelper.cpp',
|
|
'intern/BSP_CSGMesh.cpp',
|
|
'intern/BSP_CSGMeshBuilder.cpp',
|
|
'intern/BSP_CSGMeshSplitter.cpp',
|
|
'intern/BSP_CSGNCMeshSplitter.cpp',
|
|
'intern/BSP_CSGUserData.cpp',
|
|
'intern/BSP_FragNode.cpp',
|
|
'intern/BSP_FragTree.cpp',
|
|
'intern/BSP_MeshFragment.cpp',
|
|
'intern/BSP_MeshPrimitives.cpp',
|
|
'intern/BSP_Triangulate.cpp',
|
|
'intern/CSG_BooleanOps.cpp']
|
|
|
|
bsp_env.Append (CPPPATH = ['intern',
|
|
'../container',
|
|
'../moto/include',
|
|
'../memutil'])
|
|
|
|
bsp_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_BSP', source=source_files)
|