Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/csg/SConscript')
-rw-r--r--intern/csg/SConscript30
1 files changed, 4 insertions, 26 deletions
diff --git a/intern/csg/SConscript b/intern/csg/SConscript
index e06cd2c73e6..84d718e5b67 100644
--- a/intern/csg/SConscript
+++ b/intern/csg/SConscript
@@ -1,30 +1,8 @@
#!/usr/bin/python
-csg_env = Environment()
+Import('env')
-# Import the C flags set in the SConstruct file
-Import ('cflags')
-Import ('cxxflags')
-Import ('defines')
-csg_env.Append (CCFLAGS = cflags)
-csg_env.Append (CXXFLAGS = cxxflags)
-csg_env.Append (CPPDEFINES = defines)
+sources = env.Glob('intern/*.cpp') + env.Glob('intern/*.inl')
-source_files = ['intern/CSG_BBoxTree.cpp',
- 'intern/CSG_ConnectedMeshWrapper.inl',
- 'intern/CSG_Math.inl',
- 'intern/CSG_Triangulate.inl',
- 'intern/blender/CSG_CsgOp.cpp',
- 'intern/blender/CSG_Interface.cpp',
- 'intern/CSG_BooleanOp.inl',
- 'intern/CSG_MeshWrapper.inl',
- 'intern/MT_Line3.cpp'
- ]
+incs = 'intern ../container ../moto/include ../memutil intern/blender extern'
-csg_env.Append (CPPPATH = ['intern',
- '../container',
- '../moto/include',
- '../memutil',
- 'intern/blender',
- 'extern'])
-
-csg_env.Library (target='#/lib/blender_BSP', source=source_files)
+env.BlenderLib ('blender_BSP', sources, Split(incs) , [], libtype='blender', priority=15)