[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35187] trunk/blender: add NDEBUG to scons release flags + some pep8 cleanup for examples.

Campbell Barton ideasman42 at gmail.com
Fri Feb 25 17:19:51 CET 2011


Revision: 35187
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35187
Author:   campbellbarton
Date:     2011-02-25 16:19:50 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
add NDEBUG to scons release flags + some pep8 cleanup for examples.

Modified Paths:
--------------
    trunk/blender/build_files/scons/config/aix4-config.py
    trunk/blender/build_files/scons/config/darwin-config.py
    trunk/blender/build_files/scons/config/freebsd7-config.py
    trunk/blender/build_files/scons/config/freebsd8-config.py
    trunk/blender/build_files/scons/config/freebsd9-config.py
    trunk/blender/build_files/scons/config/irix6-config.py
    trunk/blender/build_files/scons/config/linux2-config.py
    trunk/blender/build_files/scons/config/linuxcross-config.py
    trunk/blender/build_files/scons/config/openbsd3-config.py
    trunk/blender/build_files/scons/config/sunos5-config.py
    trunk/blender/build_files/scons/config/win32-mingw-config.py
    trunk/blender/doc/python_api/examples/bpy.ops.py
    trunk/blender/doc/python_api/examples/bpy.props.3.py
    trunk/blender/doc/python_api/examples/bpy.types.Menu.1.py
    trunk/blender/doc/python_api/examples/bpy.types.Menu.2.py
    trunk/blender/doc/python_api/examples/bpy.types.Menu.py
    trunk/blender/doc/python_api/examples/bpy.types.Operator.5.py
    trunk/blender/doc/python_api/examples/bpy.types.Panel.1.py
    trunk/blender/doc/python_api/examples/bpy.types.Panel.2.py
    trunk/blender/doc/python_api/sphinx_doc_gen.py

Modified: trunk/blender/build_files/scons/config/aix4-config.py
===================================================================
--- trunk/blender/build_files/scons/config/aix4-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/aix4-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -165,8 +165,8 @@
 
 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
 CXXFLAGS = ['-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
-REL_CFLAGS = [ '-O2' ]
-REL_CCFLAGS = [ '-O2' ]
+REL_CFLAGS = ['-DNDEBUG', '-O2' ]
+REL_CCFLAGS = ['-DNDEBUG', '-O2' ]
 C_WARN = [ '-Wall' , '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
 
 CC_WARN = [ '-Wall' ]

Modified: trunk/blender/build_files/scons/config/darwin-config.py
===================================================================
--- trunk/blender/build_files/scons/config/darwin-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/darwin-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -312,14 +312,14 @@
 
 #Intel Macs are CoreDuo and Up	
 if MACOSX_ARCHITECTURE == 'i386' or MACOSX_ARCHITECTURE == 'x86_64':
-	REL_CFLAGS = ['-O2','-ftree-vectorize','-msse','-msse2','-msse3','-mfpmath=sse']
-	REL_CCFLAGS = ['-O2','-ftree-vectorize','-msse','-msse2','-msse3','-mfpmath=sse']
+	REL_CFLAGS = ['-DNDEBUG', '-O2','-ftree-vectorize','-msse','-msse2','-msse3','-mfpmath=sse']
+	REL_CCFLAGS = ['-DNDEBUG', '-O2','-ftree-vectorize','-msse','-msse2','-msse3','-mfpmath=sse']
 else:
 	CFLAGS = CFLAGS+['-fno-strict-aliasing']
 	CCFLAGS =  CCFLAGS+['-fno-strict-aliasing']
 	CXXFLAGS = CXXFLAGS+['-fno-strict-aliasing']
-	REL_CFLAGS = ['-O2']
-	REL_CCFLAGS = ['-O2']
+	REL_CFLAGS = ['-DNDEBUG', '-O2']
+	REL_CCFLAGS = ['-DNDEBUG', '-O2']
 
 # Intel 64bit Macs are Core2Duo and up
 if MACOSX_ARCHITECTURE == 'x86_64':

Modified: trunk/blender/build_files/scons/config/freebsd7-config.py
===================================================================
--- trunk/blender/build_files/scons/config/freebsd7-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/freebsd7-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -180,8 +180,8 @@
 if WITH_BF_FFMPEG:
   # libavutil needs UINT64_C()
   CXXFLAGS += ['-D__STDC_CONSTANT_MACROS', ]
-REL_CFLAGS = ['-O2']
-REL_CCFLAGS = ['-O2']
+REL_CFLAGS = ['-DNDEBUG', '-O2']
+REL_CCFLAGS = ['-DNDEBUG', '-O2']
 ##BF_DEPEND = True
 ##
 ##AR = ar

Modified: trunk/blender/build_files/scons/config/freebsd8-config.py
===================================================================
--- trunk/blender/build_files/scons/config/freebsd8-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/freebsd8-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -180,8 +180,8 @@
 if WITH_BF_FFMPEG:
   # libavutil needs UINT64_C()
   CXXFLAGS += ['-D__STDC_CONSTANT_MACROS', ]
-REL_CFLAGS = ['-O2']
-REL_CCFLAGS = ['-O2']
+REL_CFLAGS = ['-DNDEBUG', '-O2']
+REL_CCFLAGS = ['-DNDEBUG', '-O2']
 ##BF_DEPEND = True
 ##
 ##AR = ar

Modified: trunk/blender/build_files/scons/config/freebsd9-config.py
===================================================================
--- trunk/blender/build_files/scons/config/freebsd9-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/freebsd9-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -180,8 +180,8 @@
 if WITH_BF_FFMPEG:
   # libavutil needs UINT64_C()
   CXXFLAGS += ['-D__STDC_CONSTANT_MACROS', ]
-REL_CFLAGS = ['-O2']
-REL_CCFLAGS = ['-O2']
+REL_CFLAGS = ['-DNDEBUG', '-O2']
+REL_CCFLAGS = ['-DNDEBUG', '-O2']
 ##BF_DEPEND = True
 ##
 ##AR = ar

Modified: trunk/blender/build_files/scons/config/irix6-config.py
===================================================================
--- trunk/blender/build_files/scons/config/irix6-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/irix6-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -163,8 +163,8 @@
 
 CPPFLAGS = []
 CXXFLAGS = ['-pipe','-fPIC', '-n32']
-REL_CFLAGS = ['-O2']
-REL_CCFLAGS = ['-O2']
+REL_CFLAGS = ['-DNDEBUG', '-O2']
+REL_CCFLAGS = ['-DNDEBUG', '-O2']
 ##BF_DEPEND = 'true'
 ##
 ##AR = ar

Modified: trunk/blender/build_files/scons/config/linux2-config.py
===================================================================
--- trunk/blender/build_files/scons/config/linux2-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/linux2-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -198,8 +198,8 @@
 if WITH_BF_FFMPEG:
   # libavutil needs UINT64_C()
   CXXFLAGS += ['-D__STDC_CONSTANT_MACROS', ]
-REL_CFLAGS = ['-O2']
-REL_CCFLAGS = ['-O2']
+REL_CFLAGS = ['-DNDEBUG', '-O2']
+REL_CCFLAGS = ['-DNDEBUG', '-O2']
 ##BF_DEPEND = True
 ##
 ##AR = ar

Modified: trunk/blender/build_files/scons/config/linuxcross-config.py
===================================================================
--- trunk/blender/build_files/scons/config/linuxcross-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/linuxcross-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -176,8 +176,8 @@
 
 CPPFLAGS = ['-DWIN32', '-DFREE_WINDOWS', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE64_SOURCE']
 CXXFLAGS = ['-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
-REL_CFLAGS = [ '-O2' ]
-REL_CCFLAGS = [ '-O2' ]
+REL_CFLAGS = ['-DNDEBUG',  '-O2']
+REL_CCFLAGS = ['-DNDEBUG',  '-O2']
 C_WARN = ['-Wall', '-Wstrict-prototypes', '-Wno-char-subscripts', '-Wdeclaration-after-statement']
 
 CC_WARN = [ '-Wall' ]

Modified: trunk/blender/build_files/scons/config/openbsd3-config.py
===================================================================
--- trunk/blender/build_files/scons/config/openbsd3-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/openbsd3-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -122,8 +122,8 @@
 CPPFLAGS = []
 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
-REL_CFLAGS = ['-O2']
-REL_CCFLAGS = ['-O2']
+REL_CFLAGS = ['-DNDEBUG', '-O2']
+REL_CCFLAGS = ['-DNDEBUG', '-O2']
 ##BF_DEPEND = True
 ##
 ##AR = ar

Modified: trunk/blender/build_files/scons/config/sunos5-config.py
===================================================================
--- trunk/blender/build_files/scons/config/sunos5-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/sunos5-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -138,8 +138,8 @@
 
 CPPFLAGS = ['-DSUN_OGL_NO_VERTEX_MACROS']
 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
-REL_CFLAGS = ['-O2']
-REL_CCFLAGS = ['-O2']
+REL_CFLAGS = ['-DNDEBUG', '-O2']
+REL_CCFLAGS = ['-DNDEBUG', '-O2']
 ##BF_DEPEND = True
 ##
 ##AR = ar

Modified: trunk/blender/build_files/scons/config/win32-mingw-config.py
===================================================================
--- trunk/blender/build_files/scons/config/win32-mingw-config.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/build_files/scons/config/win32-mingw-config.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -166,8 +166,8 @@
 
 CPPFLAGS = ['-DWIN32', '-DFREE_WINDOWS', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE64_SOURCE']
 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
-REL_CFLAGS = [ '-O2' ]
-REL_CCFLAGS = [ '-O2' ]
+REL_CFLAGS = ['-DNDEBUG',  '-O2']
+REL_CCFLAGS = ['-DNDEBUG',  '-O2']
 
 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wstrict-prototypes']
 

Modified: trunk/blender/doc/python_api/examples/bpy.ops.py
===================================================================
--- trunk/blender/doc/python_api/examples/bpy.ops.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/doc/python_api/examples/bpy.ops.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -27,4 +27,4 @@
 
 # check poll() to avoid exception.
 if bpy.ops.object.mode_set.poll():
-	bpy.ops.object.mode_set(mode='EDIT')
+    bpy.ops.object.mode_set(mode='EDIT')

Modified: trunk/blender/doc/python_api/examples/bpy.props.3.py
===================================================================
--- trunk/blender/doc/python_api/examples/bpy.props.3.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/doc/python_api/examples/bpy.props.3.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -8,6 +8,7 @@
 
 import bpy
 
+
 # Assign a collection
 class SceneSettingItem(bpy.types.PropertyGroup):
     name = bpy.props.StringProperty(name="Test Prop", default="Unknown")
@@ -30,4 +31,4 @@
 my_item.value = 30
 
 for my_item in bpy.context.scene.my_settings:
-	print(my_item.name, my_item.value)
+    print(my_item.name, my_item.value)

Modified: trunk/blender/doc/python_api/examples/bpy.types.Menu.1.py
===================================================================
--- trunk/blender/doc/python_api/examples/bpy.types.Menu.1.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/doc/python_api/examples/bpy.types.Menu.1.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -12,7 +12,7 @@
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator("object.select_all", text="Select/Deselect All")
         layout.operator("object.select_inverse", text="Inverse")
         layout.operator("object.select_random", text="Random")

Modified: trunk/blender/doc/python_api/examples/bpy.types.Menu.2.py
===================================================================
--- trunk/blender/doc/python_api/examples/bpy.types.Menu.2.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/doc/python_api/examples/bpy.types.Menu.2.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -10,6 +10,7 @@
 """
 import bpy
 
+
 def menu_draw(self, context):
     self.layout.operator("wm.save_homefile")
 

Modified: trunk/blender/doc/python_api/examples/bpy.types.Menu.py
===================================================================
--- trunk/blender/doc/python_api/examples/bpy.types.Menu.py	2011-02-25 16:06:14 UTC (rev 35186)
+++ trunk/blender/doc/python_api/examples/bpy.types.Menu.py	2011-02-25 16:19:50 UTC (rev 35187)
@@ -20,7 +20,7 @@
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator("object.select_all", text="Select/Deselect All")
         layout.operator("object.select_inverse", text="Inverse")
         layout.operator("object.select_random", text="Random")


@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list