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:
-rw-r--r--SConstruct19
-rw-r--r--tools/scons/bs/bs_config.py11
2 files changed, 23 insertions, 7 deletions
diff --git a/SConstruct b/SConstruct
index 837b25b6f2f..1023c19591e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -4,10 +4,13 @@ import os
import time
import sys
from distutils import sysconfig
-import SCons.Script
from tools.scons.bs import *
bs_globals.arguments = ARGUMENTS
+bs_globals.targets = COMMAND_LINE_TARGETS
+
+print 'targets = ',bs_globals.targets
+print 'arguments = ', bs_globals.arguments
appname = ''
playername = ''
@@ -50,6 +53,11 @@ sdl_env = Environment ()
freetype_env = Environment ()
env = Environment ()
+#use_ccgsubsurflib = 'true'
+# NOTE: this option is currently turned on and off by
+# adding it to extra_flags for your platform like this:
+# extra_flags.append( '-DUSE_CCGSUBSURFLIB' )
+
if sys.platform == 'linux2' or sys.platform == 'linux-i386':
use_international = 'false'
use_gameengine = 'true'
@@ -66,6 +74,7 @@ if sys.platform == 'linux2' or sys.platform == 'linux-i386':
release_flags = ['-O2']
debug_flags = ['-O2', '-g']
extra_flags = ['-pipe', '-funsigned-char']
+ extra_flags.append( '-DUSE_CCGSUBSURFLIB' )
cxxflags = []
defines = []
warn_flags = ['-Wall', '-W']
@@ -153,7 +162,8 @@ elif sys.platform == 'darwin':
fink_path = '/sw/'
# TODO : try -mpowerpc -mpowerpc-gopt -mpowerpc-gfxopt optims
# doing actual profiling
- extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc', '-mtune=G4']
+ extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc', '-mtune=G4']
+ extra_flags.append( '-DUSE_CCGSUBSURFLIB' )
# , '-malign-natural'] malign is causing problems with jpeg lib but worth a 1-2% speedup
#'-force_cpusubtype_ALL', '-mpowerpc-gpopt',
@@ -258,6 +268,7 @@ elif sys.platform == 'cygwin':
release_flags = ['-O2']
debug_flags = ['-O2', '-g']
extra_flags = ['-pipe', '-mno-cygwin', '-mwindows', '-funsigned-char']
+ extra_flags.append( '-DUSE_CCGSUBSURFLIB' )
cxxflags = []
defines = ['FREE_WINDOWS']
warn_flags = ['-Wall', '-Wno-char-subscripts']
@@ -439,6 +450,7 @@ elif string.find (sys.platform, 'sunos') != -1:
release_flags = ['-O2']
debug_flags = ['-O2', '-g']
extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-DSUN_OGL_NO_VERTEX_MACROS']
+ extra_flags.append( '-DUSE_CCGSUBSURFLIB' )
cxxflags = []
defines = []
warn_flags = ['-Wall', '-W']
@@ -516,6 +528,7 @@ elif string.find (sys.platform, 'irix') != -1:
build_blender_plugin = 'false'
irix_precomp = '#../lib/irix-6.5-mips'
extra_flags = ['-n32', '-mips3', '-Xcpluscomm']
+ extra_flags.append( '-DUSE_CCGSUBSURFLIB' )
cxxflags = ['-n32', '-mips3', '-Xcpluscomm', '-LANG:std']
cxxflags += ['-LANG:libc_in_namespace_std=off']
@@ -607,6 +620,7 @@ elif sys.platform=='openbsd3':
release_flags = ['-O2']
debug_flags = ['-O2', '-g']
extra_flags = ['-pipe', '-fPIC', '-funsigned-char']
+ extra_flags.append( '-DUSE_CCGSUBSURFLIB' )
cxxflags = []
defines = []
warn_flags = ['-Wall','-W']
@@ -686,6 +700,7 @@ elif sys.platform=='freebsd4' or sys.platform=='freebsd5':
release_flags = ['-O2']
debug_flags = ['-O2', '-g']
extra_flags = ['-pipe', '-fPIC', '-funsigned-char']
+ extra_flags.append( '-DUSE_CCGSUBSURFLIB' )
cxxflags = []
defines = []
warn_flags = ['-Wall','-W']
diff --git a/tools/scons/bs/bs_config.py b/tools/scons/bs/bs_config.py
index 7413ee9ab7b..23b01f98775 100644
--- a/tools/scons/bs/bs_config.py
+++ b/tools/scons/bs/bs_config.py
@@ -2,7 +2,7 @@
import sys
import os
-import SCons.Script
+#import SCons.Script
import bs_globals
def checkPyVersion():
@@ -18,9 +18,9 @@ def parseOpts():
copyloc = ''
all_args = sys.argv[1:]
- parser = SCons.Script.OptParser()
- options, targets = parser.parse_args(all_args)
- if ('clean' in targets):
+# parser = SCons.Script.OptParser()
+# options, targets = parser.parse_args(all_args)
+ if ('clean' in bs_globals.targets):
bs_globals.enable_clean = 1
# User configurable options file. This can be controlled by the user by running
@@ -34,4 +34,5 @@ def parseOpts():
else:
bs_globals.docopy = 1;
bs_globals.copyto = copyloc
- \ No newline at end of file
+
+