Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 81 lines (58 sloc) 2.914 kb
import platform #Requiered to detect the current plattform
# define the variables the user can set on the command line
vars = Variables('')
vars.Add(BoolVariable('RELEASE', 'Set to build for release', 0))
vars.Add(BoolVariable('PG', 'Set to build with -pg set for gcc for profiling', 0))
vars.Add(BoolVariable('SHAREDLIB', 'Set to build shared libraries instead of static ones (untested).', 0))
"""Set to build using the systems native pcre lib instead of the delivered lib. Uses same configuration dir for both configurations.
""", 1))
"""Selects the xml parser to be used
libxml: Use libXML contained in OpenCOLLADA external sources
expat: Use expat contained in OpenCOLLADA external sources
libxmlNative: Use libXML deliverd with your OS. libXML and the corresponding development files need to be installed
expatNative: Use expat deliverd with your OS. expat and the corresponding development files need to be installed
, 'libxmlnative', allowed_values=('libxml', 'expat', 'libxmlnative', 'expatnative'), ignorecase=2))
vars.Add(BoolVariable('NOVALIDATION', 'Set to disable shema validation in sax frame work loader', 0))
env=Environment( variables=vars )
if env['RELEASE']:
configurationName = 'release'
env['CPPFLAGS'] = ' -O2 -DNDEBUG'
configurationName = 'debug'
env['CPPFLAGS'] = ' -O0 -g3 -ggdb3 -fno-inline'
if env['PG']:
configurationName += 'Pg'
env['CPPFLAGS'] += ' -pg'
env['platformDir'] = env['PLATFORM'] + '/'
env['architectureDir'] = platform.machine() + '/'
env['configurationBaseName'] = env['platformDir'] + env['architectureDir'] + configurationName
if (env['XMLPARSER'] == 'expat') or (env['XMLPARSER'] == 'expatnative'):
env['xmlParserConfName'] = 'expat'
env['xmlParserConfName'] = 'libxml'
env['validationConfName'] = 'Novalidation'
env['validationConfName'] = ''
env['objDir'] = 'obj/'
env['libDir'] = 'lib/'
env['binDir'] = 'bin/'
SConscript(['COLLADABaseUtils/SConscript'], exports = 'env')
SConscript(['Externals/MathMLSolver/SConscript'], exports = 'env')
SConscript(['Externals/UTF/SConscript'], exports = 'env')
if not env['PCRENATIVE']:
SConscript(['Externals/pcre/SConscript'], exports = 'env')
if env['XMLPARSER'] == 'expat':
SConscript(['Externals/expat/SConscript'], exports = 'env')
elif env['XMLPARSER'] == 'libxml':
SConscript(['Externals/LibXML/SConscript'], exports = 'env')
SConscript(['COLLADAFramework/SConscript'], exports = 'env')
SConscript(['GeneratedSaxParser/SConscript'], exports = 'env')
SConscript(['COLLADASaxFrameworkLoader/SConscript'], exports = 'env')
SConscript(['COLLADAStreamWriter/SConscript'], exports = 'env')
SConscript(['COLLADAValidator/SConscript'], exports = 'env')
Jump to Line
Something went wrong with that request. Please try again.