[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40346] branches/soc-2011-garlic: svn merge -r40222:40344 ^/trunk/blender
Sergey Sharybin
g.ulairi at gmail.com
Mon Sep 19 12:48:16 CEST 2011
Revision: 40346
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40346
Author: nazgul
Date: 2011-09-19 10:48:15 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
svn merge -r40222:40344 ^/trunk/blender
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40222
Modified Paths:
--------------
branches/soc-2011-garlic/CMakeLists.txt
branches/soc-2011-garlic/GNUmakefile
branches/soc-2011-garlic/SConstruct
branches/soc-2011-garlic/build_files/scons/tools/btools.py
branches/soc-2011-garlic/doc/python_api/examples/bpy.types.ID.user_clear.1.py
branches/soc-2011-garlic/doc/python_api/sphinx_doc_gen.py
branches/soc-2011-garlic/doc/python_api/sphinx_doc_gen.sh
branches/soc-2011-garlic/extern/glew/include/GL/glew.h
branches/soc-2011-garlic/extern/glew/include/GL/glxew.h
branches/soc-2011-garlic/extern/glew/include/GL/wglew.h
branches/soc-2011-garlic/extern/glew/src/glew.c
branches/soc-2011-garlic/extern/recastnavigation/Recast/Source/RecastMeshDetail.cpp
branches/soc-2011-garlic/intern/audaspace/intern/AUD_ConverterReader.cpp
branches/soc-2011-garlic/intern/audaspace/intern/AUD_Mixer.cpp
branches/soc-2011-garlic/intern/guardedalloc/intern/mallocn.c
branches/soc-2011-garlic/intern/itasc/kdl/frames.hpp
branches/soc-2011-garlic/intern/string/intern/STR_String.cpp
branches/soc-2011-garlic/release/scripts/modules/rna_info.py
branches/soc-2011-garlic/release/scripts/startup/bl_ui/properties_data_curve.py
branches/soc-2011-garlic/source/blender/avi/intern/avirgb.c
branches/soc-2011-garlic/source/blender/avi/intern/endian.c
branches/soc-2011-garlic/source/blender/blenfont/BLF_api.h
branches/soc-2011-garlic/source/blender/blenfont/intern/blf.c
branches/soc-2011-garlic/source/blender/blenfont/intern/blf_dir.c
branches/soc-2011-garlic/source/blender/blenfont/intern/blf_font.c
branches/soc-2011-garlic/source/blender/blenfont/intern/blf_glyph.c
branches/soc-2011-garlic/source/blender/blenfont/intern/blf_internal_types.h
branches/soc-2011-garlic/source/blender/blenfont/intern/blf_util.c
branches/soc-2011-garlic/source/blender/blenkernel/BKE_global.h
branches/soc-2011-garlic/source/blender/blenkernel/BKE_utildefines.h
branches/soc-2011-garlic/source/blender/blenkernel/CMakeLists.txt
branches/soc-2011-garlic/source/blender/blenkernel/intern/action.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/anim.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/armature.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/blender.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/collision.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/constraint.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/curve.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/effect.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/image.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/ipo.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/navmesh_conversion.cpp
branches/soc-2011-garlic/source/blender/blenkernel/intern/node.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/object.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/particle.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/screen.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/seqeffects.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/sound.c
branches/soc-2011-garlic/source/blender/blenkernel/intern/unit.c
branches/soc-2011-garlic/source/blender/blenlib/BLI_utildefines.h
branches/soc-2011-garlic/source/blender/blenlib/BLI_voxel.h
branches/soc-2011-garlic/source/blender/blenlib/intern/string_utf8.c
branches/soc-2011-garlic/source/blender/blenlib/intern/voxel.c
branches/soc-2011-garlic/source/blender/blenloader/intern/readfile.c
branches/soc-2011-garlic/source/blender/collada/AnimationExporter.cpp
branches/soc-2011-garlic/source/blender/collada/AnimationImporter.cpp
branches/soc-2011-garlic/source/blender/collada/CameraExporter.cpp
branches/soc-2011-garlic/source/blender/collada/DocumentImporter.cpp
branches/soc-2011-garlic/source/blender/collada/TransformReader.cpp
branches/soc-2011-garlic/source/blender/collada/TransformWriter.cpp
branches/soc-2011-garlic/source/blender/editors/animation/anim_draw.c
branches/soc-2011-garlic/source/blender/editors/animation/anim_filter.c
branches/soc-2011-garlic/source/blender/editors/animation/keyframes_edit.c
branches/soc-2011-garlic/source/blender/editors/armature/editarmature.c
branches/soc-2011-garlic/source/blender/editors/armature/poselib.c
branches/soc-2011-garlic/source/blender/editors/curve/curve_ops.c
branches/soc-2011-garlic/source/blender/editors/gpencil/gpencil_paint.c
branches/soc-2011-garlic/source/blender/editors/interface/interface.c
branches/soc-2011-garlic/source/blender/editors/interface/interface_draw.c
branches/soc-2011-garlic/source/blender/editors/interface/interface_regions.c
branches/soc-2011-garlic/source/blender/editors/object/object_hook.c
branches/soc-2011-garlic/source/blender/editors/object/object_modifier.c
branches/soc-2011-garlic/source/blender/editors/object/object_navmesh.cpp
branches/soc-2011-garlic/source/blender/editors/object/object_relations.c
branches/soc-2011-garlic/source/blender/editors/sculpt_paint/paint_image.c
branches/soc-2011-garlic/source/blender/editors/sculpt_paint/paint_stroke.c
branches/soc-2011-garlic/source/blender/editors/sculpt_paint/paint_utils.c
branches/soc-2011-garlic/source/blender/editors/sculpt_paint/sculpt.c
branches/soc-2011-garlic/source/blender/editors/sound/sound_intern.h
branches/soc-2011-garlic/source/blender/editors/sound/sound_ops.c
branches/soc-2011-garlic/source/blender/editors/space_action/action_edit.c
branches/soc-2011-garlic/source/blender/editors/space_action/action_select.c
branches/soc-2011-garlic/source/blender/editors/space_console/console_ops.c
branches/soc-2011-garlic/source/blender/editors/space_console/space_console.c
branches/soc-2011-garlic/source/blender/editors/space_file/file_ops.c
branches/soc-2011-garlic/source/blender/editors/space_graph/graph_edit.c
branches/soc-2011-garlic/source/blender/editors/space_graph/graph_select.c
branches/soc-2011-garlic/source/blender/editors/space_nla/nla_edit.c
branches/soc-2011-garlic/source/blender/editors/space_nla/nla_select.c
branches/soc-2011-garlic/source/blender/editors/space_node/drawnode.c
branches/soc-2011-garlic/source/blender/editors/space_node/node_edit.c
branches/soc-2011-garlic/source/blender/editors/space_node/node_select.c
branches/soc-2011-garlic/source/blender/editors/space_outliner/outliner_draw.c
branches/soc-2011-garlic/source/blender/editors/space_outliner/outliner_edit.c
branches/soc-2011-garlic/source/blender/editors/space_outliner/outliner_tools.c
branches/soc-2011-garlic/source/blender/editors/space_outliner/outliner_tree.c
branches/soc-2011-garlic/source/blender/editors/space_sequencer/sequencer_edit.c
branches/soc-2011-garlic/source/blender/editors/space_view3d/drawobject.c
branches/soc-2011-garlic/source/blender/editors/space_view3d/view3d_buttons.c
branches/soc-2011-garlic/source/blender/editors/space_view3d/view3d_view.c
branches/soc-2011-garlic/source/blender/editors/transform/transform.c
branches/soc-2011-garlic/source/blender/editors/transform/transform_generics.c
branches/soc-2011-garlic/source/blender/editors/uvedit/uvedit_draw.c
branches/soc-2011-garlic/source/blender/gpu/intern/gpu_buffers.c
branches/soc-2011-garlic/source/blender/gpu/intern/gpu_extensions.c
branches/soc-2011-garlic/source/blender/imbuf/CMakeLists.txt
branches/soc-2011-garlic/source/blender/imbuf/SConscript
branches/soc-2011-garlic/source/blender/imbuf/intern/IMB_anim.h
branches/soc-2011-garlic/source/blender/imbuf/intern/IMB_indexer.h
branches/soc-2011-garlic/source/blender/imbuf/intern/filter.c
branches/soc-2011-garlic/source/blender/imbuf/intern/imbuf.h
branches/soc-2011-garlic/source/blender/imbuf/intern/indexer.c
branches/soc-2011-garlic/source/blender/imbuf/intern/iris.c
branches/soc-2011-garlic/source/blender/imbuf/intern/jp2.c
branches/soc-2011-garlic/source/blender/imbuf/intern/md5.c
branches/soc-2011-garlic/source/blender/imbuf/intern/radiance_hdr.c
branches/soc-2011-garlic/source/blender/imbuf/intern/tiff.c
branches/soc-2011-garlic/source/blender/makesdna/DNA_ID.h
branches/soc-2011-garlic/source/blender/makesdna/DNA_action_types.h
branches/soc-2011-garlic/source/blender/makesdna/DNA_node_types.h
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_action.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_actuator.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_animation.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_armature.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_constraint.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_curve.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_fcurve.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_image_api.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_key.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_mesh.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_modifier.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_nla.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_nodetree.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_object.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_pose.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_property.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_scene.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_sequencer.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_text.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_texture.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_texture_api.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_wm.c
branches/soc-2011-garlic/source/blender/modifiers/intern/MOD_weightvg_util.c
branches/soc-2011-garlic/source/blender/modifiers/intern/MOD_weightvg_util.h
branches/soc-2011-garlic/source/blender/modifiers/intern/MOD_weightvgedit.c
branches/soc-2011-garlic/source/blender/modifiers/intern/MOD_weightvgmix.c
branches/soc-2011-garlic/source/blender/modifiers/intern/MOD_weightvgproximity.c
branches/soc-2011-garlic/source/blender/nodes/composite/node_composite_tree.c
branches/soc-2011-garlic/source/blender/nodes/composite/nodes/node_composite_diffMatte.c
branches/soc-2011-garlic/source/blender/python/intern/bpy_app_handlers.c
branches/soc-2011-garlic/source/blender/python/intern/gpu.c
branches/soc-2011-garlic/source/blender/render/intern/include/voxeldata.h
branches/soc-2011-garlic/source/blender/render/intern/raytrace/rayobject_octree.cpp
branches/soc-2011-garlic/source/blender/render/intern/source/convertblender.c
branches/soc-2011-garlic/source/blender/render/intern/source/envmap.c
branches/soc-2011-garlic/source/blender/render/intern/source/pipeline.c
branches/soc-2011-garlic/source/blender/render/intern/source/rendercore.c
branches/soc-2011-garlic/source/blender/render/intern/source/shadbuf.c
branches/soc-2011-garlic/source/blender/render/intern/source/shadeinput.c
branches/soc-2011-garlic/source/blender/render/intern/source/volumetric.c
branches/soc-2011-garlic/source/blender/render/intern/source/voxeldata.c
branches/soc-2011-garlic/source/blender/render/intern/source/zbuf.c
branches/soc-2011-garlic/source/blender/windowmanager/intern/wm_init_exit.c
branches/soc-2011-garlic/source/blender/windowmanager/intern/wm_operators.c
branches/soc-2011-garlic/source/creator/creator.c
branches/soc-2011-garlic/source/gameengine/Converter/BL_ArmatureObject.cpp
branches/soc-2011-garlic/source/gameengine/Ketsji/KX_Dome.cpp
branches/soc-2011-garlic/source/gameengine/Ketsji/KX_GameObject.cpp
branches/soc-2011-garlic/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
branches/soc-2011-garlic/source/gameengine/Ketsji/KX_Scene.cpp
Added Paths:
-----------
branches/soc-2011-garlic/build_files/cmake/cmake_static_check_cppcheck.py
branches/soc-2011-garlic/build_files/cmake/cmake_static_check_sparse.py
branches/soc-2011-garlic/build_files/cmake/cmake_static_check_splint.py
branches/soc-2011-garlic/build_files/cmake/project_source_info.py
Removed Paths:
-------------
branches/soc-2011-garlic/extern/glew/ChangeLog
branches/soc-2011-garlic/extern/glew/README.txt
branches/soc-2011-garlic/extern/glew/doc/
branches/soc-2011-garlic/source/blender/blenkernel/BKE_endian.h
Property Changed:
----------------
branches/soc-2011-garlic/
branches/soc-2011-garlic/source/blender/blenlib/intern/string_utf8.c
branches/soc-2011-garlic/source/blender/editors/space_outliner/
Property changes on: branches/soc-2011-garlic
___________________________________________________________________
Modified: svn:mergeinfo
- /trunk/blender:37070-37405,38788-40222
+ /trunk/blender:37070-37405,38788-40344
Modified: branches/soc-2011-garlic/CMakeLists.txt
===================================================================
--- branches/soc-2011-garlic/CMakeLists.txt 2011-09-19 10:32:53 UTC (rev 40345)
+++ branches/soc-2011-garlic/CMakeLists.txt 2011-09-19 10:48:15 UTC (rev 40346)
@@ -105,6 +105,7 @@
get_blender_version()
+
# Blender internal features
option(WITH_BLENDER "Build blender (disable to build only the blender player)" ON)
mark_as_advanced(WITH_BLENDER)
@@ -1150,6 +1151,18 @@
unset(_sse2)
endif()
+
+# set the endian define
+include(TestBigEndian)
+test_big_endian(_SYSTEM_BIG_ENDIAN)
+if(_SYSTEM_BIG_ENDIAN)
+ add_definitions(-D__BIG_ENDIAN__)
+else()
+ add_definitions(-D__LITTLE_ENDIAN__)
+endif()
+unset(_SYSTEM_BIG_ENDIAN)
+
+
if(WITH_IMAGE_OPENJPEG)
if(UNIX AND NOT APPLE)
# dealt with above
Modified: branches/soc-2011-garlic/GNUmakefile
===================================================================
--- branches/soc-2011-garlic/GNUmakefile 2011-09-19 10:32:53 UTC (rev 40345)
+++ branches/soc-2011-garlic/GNUmakefile 2011-09-19 10:48:15 UTC (rev 40346)
@@ -126,6 +126,11 @@
@echo " * test_pep8 - checks all python script are pep8 which are tagged to use the stricter formatting"
@echo " * test_deprecated - checks for deprecation tags in our code which may need to be removed"
@echo ""
+ @echo "Static Source Code Checking (not assosiated with building blender)"
+ @echo " * check_cppcheck - run blender source through cppcheck (C & C++)"
+ @echo " * check_splint - run blenders source through splint (C only)"
+ @echo " * check_sparse - run blenders source through sparse (C only)"
+ @echo ""
# -----------------------------------------------------------------------------
# Packages
@@ -176,6 +181,20 @@
cmake -G"Eclipse CDT4 - Unix Makefiles" -H$(BLENDER_DIR) -B$(BUILD_DIR)
+# -----------------------------------------------------------------------------
+# Static Checking
+#
+
+check_cppcheck:
+ cd $(BUILD_DIR) ; python3 $(BLENDER_DIR)/build_files/cmake/cmake_static_check_cppcheck.py
+
+check_splint:
+ cd $(BUILD_DIR) ; python3 $(BLENDER_DIR)/build_files/cmake/cmake_static_check_splint.py
+
+check_sparse:
+ cd $(BUILD_DIR) ; python3 $(BLENDER_DIR)/build_files/cmake/cmake_static_check_sparse.py
+
+
clean:
$(MAKE) -C $(BUILD_DIR) clean
Modified: branches/soc-2011-garlic/SConstruct
===================================================================
--- branches/soc-2011-garlic/SConstruct 2011-09-19 10:32:53 UTC (rev 40345)
+++ branches/soc-2011-garlic/SConstruct 2011-09-19 10:48:15 UTC (rev 40346)
@@ -337,6 +337,17 @@
env['CXXFLAGS'].append('-DDISABLE_ELBEEM')
env['CCFLAGS'].append('-DDISABLE_ELBEEM')
+
+if btools.ENDIAN == "big":
+ env['CPPFLAGS'].append('-D__BIG_ENDIAN__')
+ env['CXXFLAGS'].append('-D__BIG_ENDIAN__')
+ env['CCFLAGS'].append('-D__BIG_ENDIAN__')
+else:
+ env['CPPFLAGS'].append('-D__LITTLE_ENDIAN__')
+ env['CXXFLAGS'].append('-D__LITTLE_ENDIAN__')
+ env['CCFLAGS'].append('-D__LITTLE_ENDIAN__')
+
+
# TODO, make optional
env['CPPFLAGS'].append('-DWITH_AUDASPACE')
env['CXXFLAGS'].append('-DWITH_AUDASPACE')
Copied: branches/soc-2011-garlic/build_files/cmake/cmake_static_check_cppcheck.py (from rev 40344, trunk/blender/build_files/cmake/cmake_static_check_cppcheck.py)
===================================================================
--- branches/soc-2011-garlic/build_files/cmake/cmake_static_check_cppcheck.py (rev 0)
+++ branches/soc-2011-garlic/build_files/cmake/cmake_static_check_cppcheck.py 2011-09-19 10:48:15 UTC (rev 40346)
@@ -0,0 +1,76 @@
+#!/usr/bin/env python
+
+# $Id$
+# ***** BEGIN GPL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Contributor(s): Campbell Barton
+#
+# ***** END GPL LICENSE BLOCK *****
+
+# <pep8 compliant>
+
+import project_source_info
+import subprocess
+import sys
+import os
+
+CHECKER_IGNORE_PREFIX = [
+ "extern",
+ "intern/moto",
+ ]
+
+CHECKER_BIN = "cppcheck"
+
+CHECKER_ARGS = [
+ # not sure why this is needed, but it is.
+ "-I" + os.path.join(project_source_info.SOURCE_DIR, "extern/glew/include"),
+
+ # "--check-config", # when includes are missing
+ # "--enable=all", # if you want sixty hundred pedantic suggestions
+ ]
+
+def main():
+ source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX)
+
+ check_commands = []
+ for c, inc_dirs, defs in source_info:
+ cmd = ([CHECKER_BIN] +
+ CHECKER_ARGS +
+ [c] +
+ [("-I%s" % i) for i in inc_dirs] +
+ [("-D%s" % d) for d in defs]
+ )
+
+ check_commands.append((c, cmd))
+
+ for i, (c, cmd) in enumerate(check_commands):
+ percent = 100.0 * (i / (len(check_commands)-1))
+ percent_str = "[" + ("%.2f]" % percent).rjust(7) + " %:"
+
+ # if percent < 27.9:
+ # continue
+
+ # let cppcheck finish the line off...
+ sys.stdout.write("%s " % percent_str)
+
+ sys.stdout.flush()
+ process = subprocess.Popen(cmd)
+ process.wait()
+
+
+if __name__ == "__main__":
+ main()
Copied: branches/soc-2011-garlic/build_files/cmake/cmake_static_check_sparse.py (from rev 40344, trunk/blender/build_files/cmake/cmake_static_check_sparse.py)
===================================================================
--- branches/soc-2011-garlic/build_files/cmake/cmake_static_check_sparse.py (rev 0)
+++ branches/soc-2011-garlic/build_files/cmake/cmake_static_check_sparse.py 2011-09-19 10:48:15 UTC (rev 40346)
@@ -0,0 +1,66 @@
+#!/usr/bin/env python
+
+# $Id$
+# ***** BEGIN GPL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Contributor(s): Campbell Barton
+#
+# ***** END GPL LICENSE BLOCK *****
+
+# <pep8 compliant>
+
+CHECKER_IGNORE_PREFIX = [
+ "extern",
+ "intern/moto",
+ ]
+
+CHECKER_BIN = "sparse"
+CHECKER_ARGS = [
+ ]
+
+import project_source_info
+import subprocess
+import sys
+
+
+def main():
+ source_info = project_source_info.build_info(use_cxx=False, ignore_prefix_list=CHECKER_IGNORE_PREFIX)
+
+ check_commands = []
+ for c, inc_dirs, defs in source_info:
+
+ cmd = ([CHECKER_BIN] +
+ CHECKER_ARGS +
+ [c] +
+ [("-I%s" % i) for i in inc_dirs] +
+ [("-D%s" % d) for d in defs]
+ )
+
+ check_commands.append((c, cmd))
+
+ for i, (c, cmd) in enumerate(check_commands):
+ percent = 100.0 * (i / (len(check_commands) - 1))
+ percent_str = "[" + ("%.2f]" % percent).rjust(7) + " %:"
+
+ sys.stdout.write("%s %s\n" % (percent_str, c))
+ sys.stdout.flush()
+
+ process = subprocess.Popen(cmd)
+ process.wait()
+
+if __name__ == "__main__":
+ main()
Copied: branches/soc-2011-garlic/build_files/cmake/cmake_static_check_splint.py (from rev 40344, trunk/blender/build_files/cmake/cmake_static_check_splint.py)
===================================================================
--- branches/soc-2011-garlic/build_files/cmake/cmake_static_check_splint.py (rev 0)
+++ branches/soc-2011-garlic/build_files/cmake/cmake_static_check_splint.py 2011-09-19 10:48:15 UTC (rev 40346)
@@ -0,0 +1,94 @@
+#!/usr/bin/env python
+
+# $Id$
+# ***** BEGIN GPL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Contributor(s): Campbell Barton
+#
+# ***** END GPL LICENSE BLOCK *****
+
+# <pep8 compliant>
+
+CHECKER_IGNORE_PREFIX = [
+ "extern",
+ "intern/moto",
+ ]
+
+CHECKER_BIN = "splint"
+
+CHECKER_ARGS = [
+ "-weak",
+ "-posix-lib",
+ "-linelen", "10000",
+ "+ignorequals",
+ "+relaxtypes",
+ "-retvalother",
+ "+matchanyintegral",
+ "+longintegral",
+ "+ignoresigns",
+ "-nestcomment",
+ "-predboolothers",
+ "-ifempty",
+ "-unrecogcomments",
+
+ # we may want to remove these later
+ "-type",
+ "-fixedformalarray",
+ "-fullinitblock",
+ "-fcnuse",
+ "-initallelements",
+ "-castfcnptr",
+ # -forcehints,
+ "-bufferoverflowhigh", # warns a lot about sprintf()
+
+ # re-definitions, rna causes most of these
+ "-redef",
+ "-syntax",
+ ]
+
+
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list