[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13587] trunk/blender: It is now possible to compile a profiling build with mingw+scons.

Joshua Leung aligorith at gmail.com
Wed Feb 6 02:25:56 CET 2008


Revision: 13587
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13587
Author:   aligorith
Date:     2008-02-06 02:25:56 +0100 (Wed, 06 Feb 2008)

Log Message:
-----------
It is now possible to compile a profiling build with mingw+scons. 

Here are the changes I've had to make:
* Added default settings for BF_PROFILE and BF_PROFILE_FLAGS for mingw
* Made makesdna.c link with profiling flags too. This fixes some linking problems related to guardedmalloc for linking it. I'm not sure if this breaks compiling with BF_PROFILE on other platforms.

Modified Paths:
--------------
    trunk/blender/config/win32-mingw-config.py
    trunk/blender/source/blender/makesdna/intern/SConscript

Modified: trunk/blender/config/win32-mingw-config.py
===================================================================
--- trunk/blender/config/win32-mingw-config.py	2008-02-05 22:46:26 UTC (rev 13586)
+++ trunk/blender/config/win32-mingw-config.py	2008-02-06 01:25:56 UTC (rev 13587)
@@ -156,5 +156,8 @@
 BF_DEBUG = 'false'
 BF_DEBUG_FLAGS= '-g'
 
+BF_PROFILE_FLAGS = ['-pg','-g']
+BF_PROFILE = 'false'
+
 BF_BUILDDIR = '..\\build\\win32-mingw'
 BF_INSTALLDIR='..\\install\\win32-mingw'

Modified: trunk/blender/source/blender/makesdna/intern/SConscript
===================================================================
--- trunk/blender/source/blender/makesdna/intern/SConscript	2008-02-05 22:46:26 UTC (rev 13586)
+++ trunk/blender/source/blender/makesdna/intern/SConscript	2008-02-06 01:25:56 UTC (rev 13587)
@@ -25,6 +25,8 @@
     makesdna_tool.Append (CCFLAGS = cflags)
 makesdna_tool.Append (CPPDEFINES = defines)
 makesdna_tool.Append (LIBPATH = '#'+root_build_dir+'/lib')
+if env['BF_PROFILE']:
+	makesdna_tool.Append (LINKFLAGS = env['BF_PROFILE_FLAGS'])
 
 if env['OURPLATFORM'] == 'linux2' and root_build_dir[0]==os.sep:
     makesdna = makesdna_tool.Program (target = root_build_dir+'/makesdna', source = source_files, LIBS=['bf_guardedalloc'])





More information about the Bf-blender-cvs mailing list