[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26820] trunk/blender: Clear scons installation directory when WITHOUT_BF_INSTALL is disabled.

Campbell Barton ideasman42 at gmail.com
Thu Feb 11 23:02:27 CET 2010


Revision: 26820
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26820
Author:   campbellbarton
Date:     2010-02-11 23:02:27 +0100 (Thu, 11 Feb 2010)

Log Message:
-----------
Clear scons installation directory when WITHOUT_BF_INSTALL is disabled.
After discussion with Brecht and Martin we agree this is best long term.

Also fixed "scons blenderlite" for python and fluid.

Modified Paths:
--------------
    trunk/blender/SConstruct
    trunk/blender/source/blender/makesrna/intern/SConscript

Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct	2010-02-11 21:55:07 UTC (rev 26819)
+++ trunk/blender/SConstruct	2010-02-11 22:02:27 UTC (rev 26820)
@@ -188,8 +188,16 @@
 if not env['BF_FANCY']:
 	B.bc.disable()
 
+
+# remove install dir so old and new files are not mixed.
+if not env['WITHOUT_BF_INSTALL']:
+    if os.path.isdir(env['BF_INSTALLDIR']):
+        print B.bc.OKGREEN + "Clearing installation directory%s: %s" % (B.bc.ENDC, os.path.abspath(env['BF_INSTALLDIR']))
+        shutil.rmtree(env['BF_INSTALLDIR'])
+
+
 SetOption('num_jobs', int(env['BF_NUMJOBS']))
-print "Build with %d parallel jobs" % (GetOption('num_jobs'))
+print B.bc.OKGREEN + "Build with parallel jobs%s: %s" % (B.bc.ENDC, GetOption('num_jobs'))
 
 # BLENDERPATH is a unix only option to enable typical style paths this is
 # spesifically a data-dir, which is used a lot but cant replace BF_INSTALLDIR
@@ -200,12 +208,6 @@
 else:
 	BLENDERPATH = env['BF_INSTALLDIR']
 
-# disable elbeem (fluidsim) compilation?
-if env['BF_NO_ELBEEM'] == 1:
-	env['CPPFLAGS'].append('-DDISABLE_ELBEEM')
-	env['CXXFLAGS'].append('-DDISABLE_ELBEEM')
-	env['CCFLAGS'].append('-DDISABLE_ELBEEM')
-
 if env['WITH_BF_OPENMP'] == 1:
 		if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
 				env['CCFLAGS'].append('/openmp')
@@ -319,6 +321,12 @@
 		if k not in B.arguments:
 			env[k] = v
 
+# disable elbeem (fluidsim) compilation?
+if env['BF_NO_ELBEEM'] == 1:
+	env['CPPFLAGS'].append('-DDISABLE_ELBEEM')
+	env['CXXFLAGS'].append('-DDISABLE_ELBEEM')
+	env['CCFLAGS'].append('-DDISABLE_ELBEEM')
+
 if env['WITH_BF_SDL'] == False and env['OURPLATFORM'] in ('win32-vc', 'win32-ming', 'win64-vc'):
 	env['PLATFORM_LINKFLAGS'].remove('/ENTRY:mainCRTStartup')
 	env['PLATFORM_LINKFLAGS'].append('/ENTRY:main')
@@ -394,7 +402,7 @@
 	if toolset=='msvc':
 		B.msvc_hack(env)
 
-print B.bc.HEADER+'Building in '+B.bc.ENDC+B.root_build_dir
+print B.bc.HEADER+'Building in: ' + B.bc.ENDC + os.path.abspath(B.root_build_dir)
 env.SConsignFile(B.root_build_dir+'scons-signatures')
 B.init_lib_dict()
 

Modified: trunk/blender/source/blender/makesrna/intern/SConscript
===================================================================
--- trunk/blender/source/blender/makesrna/intern/SConscript	2010-02-11 21:55:07 UTC (rev 26819)
+++ trunk/blender/source/blender/makesrna/intern/SConscript	2010-02-11 22:02:27 UTC (rev 26820)
@@ -75,6 +75,8 @@
 if env['BF_UNIT_TEST']:
 	defs.append('UNIT_TEST')
 
+if not env['WITH_BF_PYTHON']:
+	defs.append('DISABLE_PYTHON')
 
 if env['OURPLATFORM'] == 'linux2':
 	cflags='-pthread'





More information about the Bf-blender-cvs mailing list