user_options_dict from appit() were missing bs_globals.
authorNathan Letwory <nathan@letworyinteractive.com>
Sun, 26 Sep 2004 09:14:46 +0000 (09:14 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Sun, 26 Sep 2004 09:14:46 +0000 (09:14 +0000)
tools/scons/bs/bs_arc.py

index 43b191a473a43a588121d39abe659240052c034d..f06254cc93a37b4fcef5e8ab0c0773fb71891118 100644 (file)
@@ -40,7 +40,7 @@ def appit(target, source, env):
                commands.getoutput(cmd)
                cmd = 'cp %s %s.app/Contents/MacOS/%s'%(target, target, target)
                commands.getoutput(cmd)
-               if  user_options_dict['BUILD_BINARY'] == 'debug':
+               if  bs_globals.user_options_dict['BUILD_BINARY'] == 'debug':
                        print "building debug"
                else :
                        cmd = 'strip -u -r %s.app/Contents/MacOS/%s'%(target, target)
@@ -65,7 +65,7 @@ def appit(target, source, env):
                cmd = 'find %s.app -name .DS_Store -exec rm -rf {} \;'%target
                commands.getoutput(cmd)
                
-               if user_options_dict['BUILD_BLENDER_PLAYER'] == 1:
+               if bs_globals.user_options_dict['BUILD_BLENDER_PLAYER'] == 1:
                        target = 'blenderplayer' 
                        sourceinfo = "source/darwin/%s.app/Contents/Info.plist"%target
                        targetinfo = "%s.app/Contents/Info.plist"%target
@@ -78,7 +78,7 @@ def appit(target, source, env):
                        commands.getoutput(cmd)
                        cmd = 'cp %s %s.app/Contents/MacOS/%s'%(target, target, target)
                        commands.getoutput(cmd)
-                       if  user_options_dict['BUILD_BINARY'] == 'debug':
+                       if  bs_globals.user_options_dict['BUILD_BINARY'] == 'debug':
                                print "building debug player"
                        else :
                                cmd = 'strip -u -r %s.app/Contents/MacOS/%s'%(target, target)