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:
authorNathan Letwory <nathan@letworyinteractive.com>2011-08-02 22:33:39 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2011-08-02 22:33:39 +0400
commit5c36b753242be5830764ee41e2f6db4ae776f30a (patch)
treeed8305674ab2a2dab97f739abc32e375657c6df3 /SConstruct
parenta9b093d9eb378016c3ca0300104bdf2263cfa0b6 (diff)
Simple argument to be able to explicitely tell the bitness you want to build Blender in.
python scons\scons.py BF_BITNESS=32 python scons\scons.py BF_BITNESS=64 So from now on for Windows you don't have to run a specific win32 or win64 Python version to get the Blender version you want. If you omit the BF_BITNESS flag the bitness as per Python version will be used as before. Note that this is an argument, so works *only* on the command-line, not in your user-config.py
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index e27f8eae367..dbeabb5c2ef 100644
--- a/SConstruct
+++ b/SConstruct
@@ -111,6 +111,11 @@ btools.print_targets(B.targets, B.bc)
# handling cmd line arguments & config file
+# bitness stuff
+tempbitness = int(B.arguments.get('BF_BITNESS', bitness)) # default to bitness found as per starting python
+if tempbitness in (32, 64): # only set if 32 or 64 has been given
+ bitness = int(tempbitness)
+
# first check cmdline for toolset and we create env to work on
quickie = B.arguments.get('BF_QUICK', None)
quickdebug = B.arguments.get('BF_QUICKDEBUG', None)