update scons files to build with yafray support
authorStefan Gartner <stefang@aon.at>
Mon, 5 Jan 2004 15:33:32 +0000 (15:33 +0000)
committerStefan Gartner <stefang@aon.at>
Mon, 5 Jan 2004 15:33:32 +0000 (15:33 +0000)
SConstruct
source/blender/SConscript
source/blender/render/SConscript
source/blender/src/SConscript
source/blender/yafray/SConscript [new file with mode: 0644]

index 000c4070e983bf5b90760e29d315c95c456279f0..3b8527f7c77adfbececeb8b49b6ee7ca1052c0e9 100644 (file)
@@ -247,6 +247,7 @@ SConscript(['intern/SConscript',
 libpath = (['lib'])
 
 libraries = (['blender_render',
+              'blender_yafray',
               'blender_blendersrc',
               'blender_renderconverter',
               'blender_blenloader',
index 02e39aacb9715a511cacbbe31134310048abcba1..3b01792081d1c40d7f22d55131eee0332135b3ee 100644 (file)
@@ -19,7 +19,8 @@ SConscript(['blenloader/SConscript',
             'python/SConscript',
             'makesdna/SConscript',
             'src/SConscript',
-            'renderconverter/SConscript'])
+            'renderconverter/SConscript',
+            'yafray/SConscript'])
 
 if use_international == 'true':
     SConscript (['ftfont/SConscript'])
index 2307ba033ad7e417fc4518a3e12ac6f8169be9ad..311f90d27d65e3979c08dd7cb20d7d93f87c02bd 100644 (file)
@@ -40,6 +40,7 @@ render_env.Append (CPPPATH = ['intern/include',
                               '../imbuf',
                               '../quicktime',
                               '../include',
-                              '../../kernel/gen_messaging'])
+                              '../../kernel/gen_messaging',
+                              '../yafray'])
 
 render_env.Library (target='#/lib/blender_render', source=source_files)
index 3d79f01f329354731bfa7e8f02ad6d20894be81c..8b84934271f070735f6a230fbba8b84983fe503c 100644 (file)
@@ -115,8 +115,7 @@ source_files = ['B.blend.c',
                 'writeavicodec.c',
                 'writeimage.c',
                 'writemovie.c',
-                'language.c',
-                'yafray_Render.cpp']
+                'language.c']
 
 src_env.Append (CPPPATH = ['#/intern/guardedalloc',
                            '../blenlib',
diff --git a/source/blender/yafray/SConscript b/source/blender/yafray/SConscript
new file mode 100644 (file)
index 0000000..49f0a0c
--- /dev/null
@@ -0,0 +1,20 @@
+yafray_env = Environment()
+
+# Import the C flags set in the SConstruct file
+Import ('cflags')
+Import ('cxxflags')
+Import ('defines')
+yafray_env.Append (CCFLAGS = cflags)
+yafray_env.Append (CXXFLAGS = cxxflags)
+yafray_env.Append (CPPDEFINES = defines)
+
+source_files = ['intern/yafray_Render.cpp']
+
+yafray_env.Append (CPPPATH = ['#/intern/guardedalloc',
+                              '../blenlib',
+                              '../makesdna',
+                              '../blenkernel',
+                              '../imbuf',
+                              '../render/extern/include'])
+
+yafray_env.Library (target='#/lib/blender_yafray', source=source_files)