Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-12 01:02:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-12 01:02:27 +0300
commit6c775defd4068117ade1b668e8f83e7f4ac45aee (patch)
treeef7eabad60d20c5b170ebb94ccedcc649c18cd0a /SConstruct
parent778cac6c54b103ba769f23eacf20bfaade07cec4 (diff)
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.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct24
1 files changed, 16 insertions, 8 deletions
diff --git a/SConstruct b/SConstruct
index 809b09a8ec6..bbef7ba4288 100644
--- a/SConstruct
+++ b/SConstruct
@@ -188,8 +188,16 @@ opts.Update(env)
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 @@ if env['WITH_BF_FHS']:
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 'blenderlite' in B.targets:
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 @@ else:
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()