[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38454] branches/soc-2011-tomato: Merging r38433 through r38453 from trunk into soc-2011-tomato
Sergey Sharybin
g.ulairi at gmail.com
Sun Jul 17 19:25:12 CEST 2011
Revision: 38454
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38454
Author: nazgul
Date: 2011-07-17 17:25:11 +0000 (Sun, 17 Jul 2011)
Log Message:
-----------
Merging r38433 through r38453 from trunk into soc-2011-tomato
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38433
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38453
Modified Paths:
--------------
branches/soc-2011-tomato/build_files/cmake/cmake_consistency_check.py
branches/soc-2011-tomato/extern/binreloc/CMakeLists.txt
branches/soc-2011-tomato/extern/eltopo/CMakeLists.txt
branches/soc-2011-tomato/extern/glew/CMakeLists.txt
branches/soc-2011-tomato/extern/lzo/CMakeLists.txt
branches/soc-2011-tomato/intern/audaspace/CMakeLists.txt
branches/soc-2011-tomato/intern/boolop/CMakeLists.txt
branches/soc-2011-tomato/intern/bsp/CMakeLists.txt
branches/soc-2011-tomato/intern/ffmpeg/ffmpeg_compat.h
branches/soc-2011-tomato/intern/ghost/CMakeLists.txt
branches/soc-2011-tomato/intern/smoke/CMakeLists.txt
branches/soc-2011-tomato/source/blender/avi/CMakeLists.txt
branches/soc-2011-tomato/source/blender/blenfont/CMakeLists.txt
branches/soc-2011-tomato/source/blender/blenkernel/CMakeLists.txt
branches/soc-2011-tomato/source/blender/blenlib/CMakeLists.txt
branches/soc-2011-tomato/source/blender/blenloader/CMakeLists.txt
branches/soc-2011-tomato/source/blender/blenpluginapi/CMakeLists.txt
branches/soc-2011-tomato/source/blender/collada/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/animation/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/armature/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/curve/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/gpencil/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/interface/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/mesh/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/metaball/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/object/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/object/object_bake.c
branches/soc-2011-tomato/source/blender/editors/physics/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/render/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/screen/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/sculpt_paint/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/sound/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_action/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_api/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_buttons/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_file/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_graph/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_image/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_info/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_logic/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_nla/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_node/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_node/node_header.c
branches/soc-2011-tomato/source/blender/editors/space_node/space_node.c
branches/soc-2011-tomato/source/blender/editors/space_outliner/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_script/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_sequencer/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_sound/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_text/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_time/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_userpref/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/space_view3d/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/transform/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/util/CMakeLists.txt
branches/soc-2011-tomato/source/blender/editors/uvedit/CMakeLists.txt
branches/soc-2011-tomato/source/blender/gpu/CMakeLists.txt
branches/soc-2011-tomato/source/blender/ikplugin/CMakeLists.txt
branches/soc-2011-tomato/source/blender/imbuf/CMakeLists.txt
branches/soc-2011-tomato/source/blender/imbuf/intern/cineon/CMakeLists.txt
branches/soc-2011-tomato/source/blender/imbuf/intern/dds/CMakeLists.txt
branches/soc-2011-tomato/source/blender/imbuf/intern/openexr/CMakeLists.txt
branches/soc-2011-tomato/source/blender/makesrna/intern/CMakeLists.txt
branches/soc-2011-tomato/source/blender/makesrna/intern/rna_object_api.c
branches/soc-2011-tomato/source/blender/modifiers/CMakeLists.txt
branches/soc-2011-tomato/source/blender/nodes/CMakeLists.txt
branches/soc-2011-tomato/source/blender/python/generic/CMakeLists.txt
branches/soc-2011-tomato/source/blender/python/generic/bgl.c
branches/soc-2011-tomato/source/blender/python/intern/CMakeLists.txt
branches/soc-2011-tomato/source/blender/quicktime/CMakeLists.txt
branches/soc-2011-tomato/source/blender/render/CMakeLists.txt
branches/soc-2011-tomato/source/blender/windowmanager/CMakeLists.txt
branches/soc-2011-tomato/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/BlenderRoutines/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Converter/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Expressions/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/GameLogic/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/GamePlayer/common/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/GamePlayer/ghost/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Ketsji/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Ketsji/KXNetwork/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Network/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Network/LoopBackNetwork/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Physics/Bullet/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Rasterizer/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeLists.txt
branches/soc-2011-tomato/source/gameengine/VideoTexture/CMakeLists.txt
Added Paths:
-----------
branches/soc-2011-tomato/release/scripts/templates/batch_export.py
Property Changed:
----------------
branches/soc-2011-tomato/
Property changes on: branches/soc-2011-tomato
___________________________________________________________________
Modified: svn:mergeinfo
- /trunk/blender:36831-38432
+ /trunk/blender:36831-38453
Modified: branches/soc-2011-tomato/build_files/cmake/cmake_consistency_check.py
===================================================================
--- branches/soc-2011-tomato/build_files/cmake/cmake_consistency_check.py 2011-07-17 16:39:19 UTC (rev 38453)
+++ branches/soc-2011-tomato/build_files/cmake/cmake_consistency_check.py 2011-07-17 17:25:11 UTC (rev 38454)
@@ -35,6 +35,21 @@
global_refs = {}
+def replace_line(f, i, text, keep_indent=True):
+ file_handle = open(f, 'r')
+ data = file_handle.readlines()
+ file_handle.close()
+
+ l = data[i]
+ ws = l[:len(l) - len(l.lstrip())]
+
+ data[i] = "%s%s\n" % (ws, text)
+
+ file_handle = open(f, 'w')
+ file_handle.writelines(data)
+ file_handle.close()
+
+
def source_list(path, filename_check=None):
for dirpath, dirnames, filenames in os.walk(path):
@@ -77,7 +92,20 @@
found = False
i = 0
# print(f)
+
+ def is_definition(l, f, i, name):
+ if ('set(%s' % name) in l or ('set(' in l and l.endswith(name)):
+ if len(l.split()) > 1:
+ raise Exception("strict formatting not kept 'set(%s*' %s:%d" % (name, f, i))
+ return True
+
+ if ("list(APPEND %s" % name) in l or ('list(APPEND ' in l and l.endswith(name)):
+ if l.endswith(")"):
+ raise Exception("strict formatting not kept 'list(APPEND %s...)' on 1 line %s:%d" % (name, f, i))
+ return True
+
while it is not None:
+ context_name = ""
while it is not None:
i += 1
try:
@@ -87,16 +115,13 @@
break
l = l.strip()
if not l.startswith("#"):
- if 'set(SRC' in l or ('set(' in l and l.endswith("SRC")):
- if len(l.split()) > 1:
- raise Exception("strict formatting not kept 'set(SRC*' %s:%d" % (f, i))
- found = True
+ found = is_definition(l, f, i, "SRC")
+ if found:
+ context_name = "SRC"
break
-
- if "list(APPEND SRC" in l or ('list(APPEND ' in l and l.endswith("SRC")):
- if l.endswith(")"):
- raise Exception("strict formatting not kept 'list(APPEND SRC...)' on 1 line %s:%d" % (f, i))
- found = True
+ found = is_definition(l, f, i, "INC")
+ if found:
+ context_name = "INC"
break
if found:
@@ -125,30 +150,45 @@
if not l:
pass
elif l.startswith("$"):
- # assume if it ends with SRC we know about it
- if not l.split("}")[0].endswith("SRC"):
- print("Can't use var '%s' %s:%d" % (l, f, i))
+ if context_name == "SRC":
+ # assume if it ends with context_name we know about it
+ if not l.split("}")[0].endswith(context_name):
+ print("Can't use var '%s' %s:%d" % (l, f, i))
elif len(l.split()) > 1:
raise Exception("Multi-line define '%s' %s:%d" % (l, f, i))
else:
new_file = normpath(join(cmake_base, l))
- if is_c_header(new_file):
- sources_h.append(new_file)
- global_refs.setdefault(new_file, []).append((f, i))
- elif is_c(new_file):
- sources_c.append(new_file)
- global_refs.setdefault(new_file, []).append((f, i))
- elif l in ("PARENT_SCOPE", ):
- # cmake var, ignore
- pass
- elif new_file.endswith(".list"):
- pass
- elif new_file.endswith(".def"):
- pass
- else:
- raise Exception("unknown file type - not c or h %s -> %s" % (f, new_file))
+ if context_name == "SRC":
+ if is_c_header(new_file):
+ sources_h.append(new_file)
+ global_refs.setdefault(new_file, []).append((f, i))
+ elif is_c(new_file):
+ sources_c.append(new_file)
+ global_refs.setdefault(new_file, []).append((f, i))
+ elif l in ("PARENT_SCOPE", ):
+ # cmake var, ignore
+ pass
+ elif new_file.endswith(".list"):
+ pass
+ elif new_file.endswith(".def"):
+ pass
+ else:
+ raise Exception("unknown file type - not c or h %s -> %s" % (f, new_file))
+ elif context_name == "INC":
+ if os.path.isdir(new_file):
+ new_path_rel = os.path.relpath(new_file, cmake_base)
+
+ if new_path_rel != l:
+ print("overly relative path:\n %s:%d\n %s\n %s" % (f, i, l, new_path_rel))
+
+ ## Save time. just replace the line
+ # replace_line(f, i - 1, new_path_rel)
+
+ else:
+ raise Exception("non existant include %s:%d -> %s" % (f, i, new_file))
+
# print(new_file)
global_h.update(set(sources_h))
@@ -166,6 +206,10 @@
if ff not in sources_c:
print(" missing: " + ff)
'''
+
+ # reset
+ sources_h[:] = []
+ sources_c[:] = []
filen.close()
Modified: branches/soc-2011-tomato/extern/binreloc/CMakeLists.txt
===================================================================
--- branches/soc-2011-tomato/extern/binreloc/CMakeLists.txt 2011-07-17 16:39:19 UTC (rev 38453)
+++ branches/soc-2011-tomato/extern/binreloc/CMakeLists.txt 2011-07-17 17:25:11 UTC (rev 38454)
@@ -19,7 +19,7 @@
#
set(INC
- ./include
+ include
)
set(INC_SYS
Modified: branches/soc-2011-tomato/extern/eltopo/CMakeLists.txt
===================================================================
--- branches/soc-2011-tomato/extern/eltopo/CMakeLists.txt 2011-07-17 16:39:19 UTC (rev 38453)
+++ branches/soc-2011-tomato/extern/eltopo/CMakeLists.txt 2011-07-17 17:25:11 UTC (rev 38454)
@@ -27,10 +27,10 @@
set(INC
.
common
+ eltopo3d
+ common/meshes
common/newsparse
common/tunicate
- common/meshes
- eltopo3d
)
set(INC_SYS
@@ -51,11 +51,19 @@
common/makelevelset2.cpp
common/makelevelset3.cpp
common/marching_triangles.cpp
+ common/predicates.cpp
+ common/sos_ccd_wrapper.cpp
+ common/wallclocktime.cpp
+ eltopo3d/accelerationgrid.cpp
+ eltopo3d/broadphasegrid.cpp
+ eltopo3d/dynamicsurface.cpp
+ eltopo3d/eltopo.cpp
+ eltopo3d/nondestructivetrimesh.cpp
+ eltopo3d/subdivisionscheme.cpp
+ eltopo3d/surftrack.cpp
common/newsparse/dense_matrix.cpp
common/newsparse/krylov_solvers.cpp
common/newsparse/sparse_matrix.cpp
- common/predicates.cpp
- common/sos_ccd_wrapper.cpp
common/sparse/incomplete_qr.cpp
common/tunicate/expansion.cpp
common/tunicate/intersection.cpp
@@ -63,14 +71,6 @@
common/tunicate/orientation.cpp
common/tunicate/sos_intersection.cpp
common/tunicate/sos_orientation.cpp
- common/wallclocktime.cpp
- eltopo3d/accelerationgrid.cpp
- eltopo3d/broadphasegrid.cpp
- eltopo3d/dynamicsurface.cpp
- eltopo3d/eltopo.cpp
- eltopo3d/nondestructivetrimesh.cpp
- eltopo3d/subdivisionscheme.cpp
- eltopo3d/surftrack.cpp
eltopo-capi.h
common/array1.h
@@ -93,21 +93,8 @@
common/marching_triangles.h
common/mat.h
common/matlapack.h
- common/newsparse/dense_matrix.h
- common/newsparse/krylov_solvers.h
- common/newsparse/linear_operator.h
- common/newsparse/sparse_matrix.h
common/openglutils.h
common/predicates.h
- common/sparse/cgsolver.h
- common/sparse/crsolver.h
- common/sparse/incomplete_qr.h
- common/sparse/sparseilu.h
- common/sparse/sparsematrix.h
- common/sparse/sparsemilu.h
- common/tunicate/expansion.h
- common/tunicate/neg.h
- common/tunicate/tunicate.h
common/util.h
common/vec.h
common/vector_math.h
@@ -121,6 +108,19 @@
eltopo3d/options.h
eltopo3d/subdivisionscheme.h
eltopo3d/surftrack.h
+ common/newsparse/dense_matrix.h
+ common/newsparse/krylov_solvers.h
+ common/newsparse/linear_operator.h
+ common/newsparse/sparse_matrix.h
+ common/sparse/cgsolver.h
+ common/sparse/crsolver.h
+ common/sparse/incomplete_qr.h
+ common/sparse/sparseilu.h
+ common/sparse/sparsematrix.h
+ common/sparse/sparsemilu.h
+ common/tunicate/expansion.h
+ common/tunicate/neg.h
+ common/tunicate/tunicate.h
)
add_definitions(-DNOGUI)
Modified: branches/soc-2011-tomato/extern/glew/CMakeLists.txt
===================================================================
--- branches/soc-2011-tomato/extern/glew/CMakeLists.txt 2011-07-17 16:39:19 UTC (rev 38453)
+++ branches/soc-2011-tomato/extern/glew/CMakeLists.txt 2011-07-17 17:25:11 UTC (rev 38454)
@@ -25,7 +25,7 @@
# ***** END GPL LICENSE BLOCK *****
set(INC
- ./include
+ include
)
set(INC_SYS
@@ -33,7 +33,9 @@
)
if(UNIX)
- list(APPEND INC_SYS ${X11_X11_INCLUDE_PATH})
+ list(APPEND INC_SYS
+ ${X11_X11_INCLUDE_PATH}
+ )
endif()
set(SRC
Modified: branches/soc-2011-tomato/extern/lzo/CMakeLists.txt
===================================================================
--- branches/soc-2011-tomato/extern/lzo/CMakeLists.txt 2011-07-17 16:39:19 UTC (rev 38453)
+++ branches/soc-2011-tomato/extern/lzo/CMakeLists.txt 2011-07-17 17:25:11 UTC (rev 38454)
@@ -25,7 +25,7 @@
# ***** END GPL LICENSE BLOCK *****
set(INC
- include
+
)
set(INC_SYS
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list