* use env.Clone() instead of deprecated env.Copy()
authorNathan Letwory <nathan@letworyinteractive.com>
Sun, 5 Oct 2008 21:36:36 +0000 (21:36 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Sun, 5 Oct 2008 21:36:36 +0000 (21:36 +0000)
source/blender/makesdna/intern/SConscript
tools/Blender.py

index 762f999fac658354914d40a331e963745a6b1d7a..417c6e8feb1cf071048dd5b99d3ea535f98c93a2 100644 (file)
@@ -9,8 +9,8 @@ root_build_dir=env['BF_BUILDDIR']
 
 source_files = ['makesdna.c']
 
-makesdna_tool = env.Copy()
-dna = env.Copy()
+makesdna_tool = env.Clone()
+dna = env.Clone()
 makesdna_tool.Append(CCFLAGS = '-DBASE_HEADER="\\"source/blender/makesdna/\\"" ')
 
 makesdna_tool.Append (CPPPATH = ['#/intern/guardedalloc',
index 47bc5e9fa722f3670591290ac3af99b461964c91..228f5cb6edcabc0c1775d59e714bd51e3327ba80 100644 (file)
@@ -390,7 +390,7 @@ class BlenderEnvironment(SConsEnvironment):
             self.Exit()
         
         print bc.HEADER+'Configuring resource '+bc.ENDC+bc.OKGREEN+libname+bc.ENDC
-        lenv = self.Copy()
+        lenv = self.Clone()
         res = lenv.RES('#'+root_build_dir+'lib/'+libname, source)
       
         SConsEnvironment.Default(self, res)
@@ -405,7 +405,7 @@ class BlenderEnvironment(SConsEnvironment):
                 print bc.HEADER+'Configuring library '+bc.ENDC+bc.OKGREEN+libname +bc.ENDC+bc.OKBLUE+ " (debug mode)" + bc.ENDC
             else:
                 print bc.HEADER+'Configuring library '+bc.ENDC+bc.OKGREEN+libname + bc.ENDC
-            lenv = self.Copy()
+            lenv = self.Clone()
             lenv.Append(CPPPATH=includes)
             lenv.Append(CPPDEFINES=defines)
             if lenv['WITH_BF_GAMEENGINE']:
@@ -439,7 +439,7 @@ class BlenderEnvironment(SConsEnvironment):
 
     def BlenderProg(self=None, builddir=None, progname=None, sources=None, includes=None, libs=None, libpath=None, binarykind=''):
         print bc.HEADER+'Configuring program '+bc.ENDC+bc.OKGREEN+progname+bc.ENDC
-        lenv = self.Copy()
+        lenv = self.Clone()
         if lenv['OURPLATFORM'] in ['win32-vc', 'cygwin']:
             lenv.Append(LINKFLAGS = Split(lenv['PLATFORM_LINKFLAGS']))
             if lenv['BF_DEBUG']: