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
path: root/intern
diff options
context:
space:
mode:
authorMichel Selten <michel@mselten.demon.nl>2004-01-05 00:11:59 +0300
committerMichel Selten <michel@mselten.demon.nl>2004-01-05 00:11:59 +0300
commitd3e1fc887026d21df8a2791bc8ee3a929962a8a8 (patch)
tree4292c907772d41e34fe4878e2484005a11cef7de /intern
parent2572db0bf0618ecaa4d9153979d70747bc8176b9 (diff)
SCons build system files added.
You'll need SCons (www.scons.org) to build. Platforms currently working: * Linux (me) - options for quicktime, openal and international disabled - uses the system libs and include files for building - no option to build with the precompiled libraries yet. * Windows (jesterKing) - builds with quicktime (optional) - builds with openal (optional) - builds with international support (optional) - Use the DOS box to build - builds with precompiled libraries * Irix (Hos) - Uses default Irix compiler - Not all optimization levels correct yet - options for quicktime, openal and international disabled - builds with precompiled libraries * Cygwin (me) - has a problem in the linking stage - uses free build tools (gcc) - options for quicktime, openal and international disabled - uses the system libs and include files for building - no option to build with the precompiled libraries yet. * MacOS (sgefant) - builds with quicktime (optional) - options for openal and international disabled - builds a nice bundle - builds with precompiled libraries Thanks to IanWill for a bugfix in the Linux build. Note: This is a work in progress. A lot still has to be done - for example the optional parts are only to be enabled by directly setting 'true' or 'false' in the SConstruct file. This needs to be moved to a user config file. Also, the .o/.obj files are stored in the source tree. This needs to be fixed as well. The game engine is not yet built.
Diffstat (limited to 'intern')
-rw-r--r--intern/SConscript11
-rw-r--r--intern/SoundSystem/SConscript52
-rw-r--r--intern/bmfont/SConscript26
-rw-r--r--intern/bsp/SConscript29
-rw-r--r--intern/container/SConscript15
-rw-r--r--intern/decimation/SConscript26
-rw-r--r--intern/ghost/SConscript45
-rw-r--r--intern/guardedalloc/SConscript15
-rw-r--r--intern/iksolver/SConscript21
-rw-r--r--intern/memutil/SConscript15
-rw-r--r--intern/moto/SConscript25
-rw-r--r--intern/string/SConscript15
12 files changed, 295 insertions, 0 deletions
diff --git a/intern/SConscript b/intern/SConscript
new file mode 100644
index 00000000000..aa41a4335c4
--- /dev/null
+++ b/intern/SConscript
@@ -0,0 +1,11 @@
+SConscript(['SoundSystem/SConscript',
+ 'string/SConscript',
+ 'ghost/SConscript',
+ 'guardedalloc/SConscript',
+ 'bmfont/SConscript',
+ 'moto/SConscript',
+ 'container/SConscript',
+ 'memutil/SConscript/',
+ 'decimation/SConscript',
+ 'bsp/SConscript',
+ 'iksolver/SConscript'])
diff --git a/intern/SoundSystem/SConscript b/intern/SoundSystem/SConscript
new file mode 100644
index 00000000000..ce9ab8c1882
--- /dev/null
+++ b/intern/SoundSystem/SConscript
@@ -0,0 +1,52 @@
+# TODO: Add the options for building with fmod and/or OpenAL
+import sys
+
+soundsys_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+Import ('use_openal')
+Import ('use_fmod')
+Import ('extra_includes')
+
+soundsys_env.Append (CCFLAGS = cflags)
+soundsys_env.Append (CXXFLAGS = cxxflags)
+soundsys_env.Append (CPPDEFINES = defines)
+
+source_files = ['dummy/SND_DummyDevice.cpp',
+ 'intern/SND_AudioDevice.cpp',
+ 'intern/SND_C-api.cpp',
+ 'intern/SND_CDObject.cpp',
+ 'intern/SND_DeviceManager.cpp',
+ 'intern/SND_IdObject.cpp',
+ 'intern/SND_Scene.cpp',
+ 'intern/SND_SoundListener.cpp',
+ 'intern/SND_SoundObject.cpp',
+ 'intern/SND_Utils.cpp',
+ 'intern/SND_WaveCache.cpp',
+ 'intern/SND_WaveSlot.cpp']
+
+soundsys_env.Append (CPPPATH = ['.',
+ 'intern',
+ '../moto/include',
+ '../string',
+ 'dummy',
+ 'openal'])
+
+if use_openal == 'true':
+ source_files += ['openal/SND_OpenALDevice.cpp',
+ 'openal/pthread_cancel.cpp']
+ if sys.platform=='win32':
+ cflags += ' /D_LIB'
+
+if use_fmod == 'true':
+ source_files += ['fmod/SND_FmodDevice.cpp']
+
+if use_openal == 'false' and use_fmod == 'false':
+ soundsys_env.Append (CPPDEFINES = 'NO_SOUND')
+
+soundsys_env.Append (CPPPATH = extra_includes)
+
+soundsys_env.Library (target='#/lib/soundsystem', source=source_files)
diff --git a/intern/bmfont/SConscript b/intern/bmfont/SConscript
new file mode 100644
index 00000000000..3ba26e6b74c
--- /dev/null
+++ b/intern/bmfont/SConscript
@@ -0,0 +1,26 @@
+bmfont_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+bmfont_env.Append (CCFLAGS = cflags)
+bmfont_env.Append (CXXFLAGS = cxxflags)
+bmfont_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/BMF_Api.cpp',
+ 'intern/BMF_BitmapFont.cpp',
+ 'intern/BMF_font_helv10.cpp',
+ 'intern/BMF_font_helv12.cpp',
+ 'intern/BMF_font_helvb10.cpp',
+ 'intern/BMF_font_helvb12.cpp',
+ 'intern/BMF_font_helvb14.cpp',
+ 'intern/BMF_font_helvb8.cpp',
+ 'intern/BMF_font_scr12.cpp',
+ 'intern/BMF_font_scr14.cpp',
+ 'intern/BMF_font_scr15.cpp']
+
+bmfont_env.Append (CPPPATH = ['.',
+ 'intern'])
+
+bmfont_env.Library (target='#/lib/blender_BMF', source=source_files)
diff --git a/intern/bsp/SConscript b/intern/bsp/SConscript
new file mode 100644
index 00000000000..d60bad299e2
--- /dev/null
+++ b/intern/bsp/SConscript
@@ -0,0 +1,29 @@
+bsp_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+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='#/lib/blender_BSP', source=source_files)
diff --git a/intern/container/SConscript b/intern/container/SConscript
new file mode 100644
index 00000000000..d916e7e221c
--- /dev/null
+++ b/intern/container/SConscript
@@ -0,0 +1,15 @@
+cont_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+cont_env.Append (CCFLAGS = cflags)
+cont_env.Append (CXXFLAGS = cxxflags)
+cont_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/CTR_List.cpp']
+
+cont_env.Append (CPPPATH = ['.'])
+
+cont_env.Library (target='#/lib/blender_CTR', source=source_files)
diff --git a/intern/decimation/SConscript b/intern/decimation/SConscript
new file mode 100644
index 00000000000..7846cc1667f
--- /dev/null
+++ b/intern/decimation/SConscript
@@ -0,0 +1,26 @@
+dec_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+dec_env.Append (CCFLAGS = cflags)
+dec_env.Append (CXXFLAGS = cxxflags)
+dec_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/LOD_EdgeCollapser.cpp',
+ 'intern/LOD_ExternNormalEditor.cpp',
+ 'intern/LOD_FaceNormalEditor.cpp',
+ 'intern/LOD_ManMesh2.cpp',
+ 'intern/LOD_MeshPrimitives.cpp',
+ 'intern/LOD_QSDecimator.cpp',
+ 'intern/LOD_QuadricEditor.cpp',
+ 'intern/LOD_decimation.cpp']
+
+dec_env.Append (CPPPATH = ['intern',
+ 'extern',
+ '../moto/include',
+ '../container',
+ '../memutil'])
+
+dec_env.Library (target='#/lib/blender_LOD', source=source_files)
diff --git a/intern/ghost/SConscript b/intern/ghost/SConscript
new file mode 100644
index 00000000000..7a2b34dcf21
--- /dev/null
+++ b/intern/ghost/SConscript
@@ -0,0 +1,45 @@
+ghost_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+ghost_env.Append (CCFLAGS = cflags)
+ghost_env.Append (CXXFLAGS = cxxflags)
+ghost_env.Append (CPPDEFINES = defines)
+
+Import ('window_system')
+
+source_files = ['intern/GHOST_Buttons.cpp',
+ 'intern/GHOST_C-api.cpp',
+ 'intern/GHOST_CallbackEventConsumer.cpp',
+ 'intern/GHOST_DisplayManager.cpp',
+ 'intern/GHOST_EventManager.cpp',
+ 'intern/GHOST_EventPrinter.cpp',
+ 'intern/GHOST_ISystem.cpp',
+ 'intern/GHOST_ModifierKeys.cpp',
+ 'intern/GHOST_Rect.cpp',
+ 'intern/GHOST_System.cpp',
+ 'intern/GHOST_TimerManager.cpp',
+ 'intern/GHOST_Window.cpp',
+ 'intern/GHOST_WindowManager.cpp']
+
+if window_system == 'X11':
+ source_files += ['intern/GHOST_DisplayManagerX11.cpp',
+ 'intern/GHOST_SystemX11.cpp',
+ 'intern/GHOST_WindowX11.cpp']
+elif window_system == 'WIN32':
+ source_files += ['intern/GHOST_DisplayManagerWin32.cpp',
+ 'intern/GHOST_SystemWin32.cpp',
+ 'intern/GHOST_WindowWin32.cpp']
+elif window_system == 'CARBON':
+ source_files += ['intern/GHOST_DisplayManagerCarbon.cpp',
+ 'intern/GHOST_SystemCarbon.cpp',
+ 'intern/GHOST_WindowCarbon.cpp']
+else:
+ print "Unknown window system specified."
+
+ghost_env.Append (CPPPATH = ['.',
+ '../string'])
+
+ghost_env.Library (target='#/lib/blender_GHOST', source=source_files)
diff --git a/intern/guardedalloc/SConscript b/intern/guardedalloc/SConscript
new file mode 100644
index 00000000000..23e4faa75fe
--- /dev/null
+++ b/intern/guardedalloc/SConscript
@@ -0,0 +1,15 @@
+guardal_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+guardal_env.Append (CCFLAGS = cflags)
+guardal_env.Append (CXXFLAGS = cxxflags)
+guardal_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/mallocn.c']
+
+guardal_env.Append (CPPPATH = ['.'])
+
+guardal_env.Library (target='#/lib/blender_guardedalloc', source=source_files)
diff --git a/intern/iksolver/SConscript b/intern/iksolver/SConscript
new file mode 100644
index 00000000000..7b757868b9f
--- /dev/null
+++ b/intern/iksolver/SConscript
@@ -0,0 +1,21 @@
+iksolver_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+iksolver_env.Append (CCFLAGS = cflags)
+iksolver_env.Append (CXXFLAGS = cxxflags)
+iksolver_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/IK_QChain.cpp',
+ 'intern/IK_QJacobianSolver.cpp',
+ 'intern/IK_QSegment.cpp',
+ 'intern/IK_Solver.cpp',
+ 'intern/MT_ExpMap.cpp']
+
+iksolver_env.Append (CPPPATH = ['intern',
+ '../moto/include',
+ '../memutil'])
+
+iksolver_env.Library (target='#/lib/blender_IK', source=source_files)
diff --git a/intern/memutil/SConscript b/intern/memutil/SConscript
new file mode 100644
index 00000000000..5387d76f8f8
--- /dev/null
+++ b/intern/memutil/SConscript
@@ -0,0 +1,15 @@
+memutil_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+memutil_env.Append (CCFLAGS = cflags)
+memutil_env.Append (CXXFLAGS = cxxflags)
+memutil_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/MEM_RefCountedC-Api.cpp']
+
+memutil_env.Append (CPPPATH = ['.'])
+
+memutil_env.Library (target='#/lib/blender_MEM', source=source_files)
diff --git a/intern/moto/SConscript b/intern/moto/SConscript
new file mode 100644
index 00000000000..ec4f07e4746
--- /dev/null
+++ b/intern/moto/SConscript
@@ -0,0 +1,25 @@
+moto_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+moto_env.Append (CCFLAGS = cflags)
+moto_env.Append (CXXFLAGS = cxxflags)
+moto_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/MT_CmMatrix4x4.cpp',
+ 'intern/MT_Matrix3x3.cpp',
+ 'intern/MT_Matrix4x4.cpp',
+ 'intern/MT_Plane3.cpp',
+ 'intern/MT_Point3.cpp',
+ 'intern/MT_Quaternion.cpp',
+ 'intern/MT_Transform.cpp',
+ 'intern/MT_Vector2.cpp',
+ 'intern/MT_Vector3.cpp',
+ 'intern/MT_Vector4.cpp',
+ 'intern/MT_random.cpp']
+
+moto_env.Append (CPPPATH = ['include'])
+
+moto_env.Library (target='#/lib/blender_MT', source=source_files)
diff --git a/intern/string/SConscript b/intern/string/SConscript
new file mode 100644
index 00000000000..abb02653e35
--- /dev/null
+++ b/intern/string/SConscript
@@ -0,0 +1,15 @@
+string_env = Environment ()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+string_env.Append (CCFLAGS = cflags)
+string_env.Append (CXXFLAGS = cxxflags)
+string_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/STR_String.cpp']
+
+string_env.Append (CPPPATH = ['.'])
+
+string_env.Library (target='#/lib/blender_STR', source=source_files)