Die svn die!
This commit is contained in:
parent
766132a2da
commit
9c9afdd47d
|
@ -51,16 +51,16 @@ class Builder:
|
||||||
|
|
||||||
if attribute in self._conf.getAllIds(): setattr( self._conf, attribute, value )
|
if attribute in self._conf.getAllIds(): setattr( self._conf, attribute, value )
|
||||||
|
|
||||||
if attribute == "quiet": self._quiet = value
|
if attribute == "quiet": self._quiet = value
|
||||||
elif attribute == "rmBuild": self._rmBuild = value
|
elif attribute == "rmBuild": self._rmBuild = value
|
||||||
elif attribute == "doBuild": self._doBuild = value
|
elif attribute == "doBuild": self._doBuild = value
|
||||||
elif attribute == "noCache": self._noCache = value
|
elif attribute == "noCache": self._noCache = value
|
||||||
elif attribute == "enableDoc": self._enableDoc = value
|
elif attribute == "enableDoc": self._enableDoc = value
|
||||||
elif attribute == "enableShared": self._enableShared = value
|
elif attribute == "enableShared": self._enableShared = value
|
||||||
elif attribute == "checkDatabase": self._checkDatabase = value
|
elif attribute == "checkDatabase": self._checkDatabase = value
|
||||||
elif attribute == "checkDeterminism": self._checkDeterminism = value
|
elif attribute == "checkDeterminism": self._checkDeterminism = value
|
||||||
elif attribute == "verboseMakefile": self._verboseMakefile = value
|
elif attribute == "verboseMakefile": self._verboseMakefile = value
|
||||||
elif attribute == "makeArguments": self._makeArguments = value.split ()
|
elif attribute == "makeArguments": self._makeArguments = value.split ()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# -*- mode:Python -*-
|
# -*- mode:Python -*-
|
||||||
#
|
#
|
||||||
# This file is part of the Coriolis Software.
|
# This file is part of the Coriolis Software.
|
||||||
# Copyright (c) UPMC/LIP6 2008-2012, All Rights Reserved
|
# Copyright (c) UPMC/LIP6 2008-2013, All Rights Reserved
|
||||||
#
|
#
|
||||||
# +-----------------------------------------------------------------+
|
# +-----------------------------------------------------------------+
|
||||||
# | C O R I O L I S |
|
# | C O R I O L I S |
|
||||||
|
@ -120,8 +120,8 @@ class Configuration ( object ):
|
||||||
|
|
||||||
def _guessOs ( self ):
|
def _guessOs ( self ):
|
||||||
self._libSuffix = None
|
self._libSuffix = None
|
||||||
self._osSlsoc6x_64 = re.compile (".*Linux.*el6.*x86_64.*")
|
self._osSlsoc6x_64 = re.compile (".*Linux.*(el6|slsoc6).*x86_64.*")
|
||||||
self._osSlsoc6x = re.compile (".*Linux.*el6.*")
|
self._osSlsoc6x = re.compile (".*Linux.*(el6|slsoc6).*")
|
||||||
self._osSLSoC5x_64 = re.compile (".*Linux.*el5.*x86_64.*")
|
self._osSLSoC5x_64 = re.compile (".*Linux.*el5.*x86_64.*")
|
||||||
self._osSLSoC5x = re.compile (".*Linux.*(el5|2.6.23.13.*SoC).*")
|
self._osSLSoC5x = re.compile (".*Linux.*(el5|2.6.23.13.*SoC).*")
|
||||||
self._osLinux_64 = re.compile (".*Linux.*x86_64.*")
|
self._osLinux_64 = re.compile (".*Linux.*x86_64.*")
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# -*- mode:Python -*-
|
# -*- mode:Python -*-
|
||||||
#
|
#
|
||||||
# This file is part of the Coriolis Software.
|
# This file is part of the Coriolis Software.
|
||||||
# Copyright (c) UPMC/LIP6 2008-2012, All Rights Reserved
|
# Copyright (c) UPMC 2008-2013, All Rights Reserved
|
||||||
#
|
#
|
||||||
# +-----------------------------------------------------------------+
|
# +-----------------------------------------------------------------+
|
||||||
# | C O R I O L I S |
|
# | C O R I O L I S |
|
||||||
|
@ -54,8 +54,8 @@ def safeImport ( moduleName, symbol=None ):
|
||||||
|
|
||||||
def guessOs ():
|
def guessOs ():
|
||||||
libDir = 'lib'
|
libDir = 'lib'
|
||||||
osSlsoc6x_64 = re.compile (".*Linux.*el6.*x86_64.*")
|
osSlsoc6x_64 = re.compile (".*Linux.*(el6|slsoc6).*x86_64.*")
|
||||||
osSlsoc6x = re.compile (".*Linux.*el6.*")
|
osSlsoc6x = re.compile (".*Linux.*(el6|slsoc6).*")
|
||||||
osSLSoC5x_64 = re.compile (".*Linux.*el5.*x86_64.*")
|
osSLSoC5x_64 = re.compile (".*Linux.*el5.*x86_64.*")
|
||||||
osSLSoC5x = re.compile (".*Linux.*(el5|2.6.23.13.*SoC).*")
|
osSLSoC5x = re.compile (".*Linux.*(el5|2.6.23.13.*SoC).*")
|
||||||
osLinux_64 = re.compile (".*Linux.*x86_64.*")
|
osLinux_64 = re.compile (".*Linux.*x86_64.*")
|
||||||
|
@ -71,16 +71,20 @@ def guessOs ():
|
||||||
if osSlsoc6x_64.match(lines[0]):
|
if osSlsoc6x_64.match(lines[0]):
|
||||||
osType = "Linux.slsoc6x_64"
|
osType = "Linux.slsoc6x_64"
|
||||||
libDir = "lib64"
|
libDir = "lib64"
|
||||||
elif osSlsoc6x .match(lines[0]): osType = "Linux.slsoc6x"
|
elif osSlsoc6x.match(lines[0]):
|
||||||
|
osType = "Linux.slsoc6x"
|
||||||
elif osSLSoC5x_64.match(lines[0]):
|
elif osSLSoC5x_64.match(lines[0]):
|
||||||
osType = "Linux.SLSoC5x_64"
|
osType = "Linux.SLSoC5x_64"
|
||||||
libDir = "lib64"
|
libDir = "lib64"
|
||||||
elif osSLSoC5x .match(lines[0]): osType = "Linux.SLSoC5x"
|
elif osSLSoC5x .match(lines[0]):
|
||||||
|
osType = "Linux.SLSoC5x"
|
||||||
elif osLinux_64.match(lines[0]):
|
elif osLinux_64.match(lines[0]):
|
||||||
osType = "Linux.x86_64"
|
osType = "Linux.x86_64"
|
||||||
libDir = "lib64"
|
libDir = "lib64"
|
||||||
elif osLinux .match(lines[0]): osType = "Linux.i386"
|
elif osLinux .match(lines[0]):
|
||||||
elif osDarwin.match(lines[0]): osType = "Darwin"
|
osType = "Linux.i386"
|
||||||
|
elif osDarwin.match(lines[0]):
|
||||||
|
osType = "Darwin"
|
||||||
elif osFreeBSD8x_amd64.match(lines[0]):
|
elif osFreeBSD8x_amd64.match(lines[0]):
|
||||||
osType = "FreeBSD.8x.amd64"
|
osType = "FreeBSD.8x.amd64"
|
||||||
libDir = "lib64"
|
libDir = "lib64"
|
||||||
|
@ -105,9 +109,10 @@ def guessPythonSitePackage ():
|
||||||
|
|
||||||
|
|
||||||
def autoLocate ():
|
def autoLocate ():
|
||||||
|
osType, libDir = guessOs()
|
||||||
|
print 'Building for target: <%s>' % osType
|
||||||
print 'Making an educated guess to locate myself:'
|
print 'Making an educated guess to locate myself:'
|
||||||
sitePackage = guessPythonSitePackage()
|
sitePackage = guessPythonSitePackage()
|
||||||
osType, libDir = guessOs()
|
|
||||||
|
|
||||||
builderDir = None
|
builderDir = None
|
||||||
locations = [ os.path.abspath(os.path.dirname(sys.argv[0]))
|
locations = [ os.path.abspath(os.path.dirname(sys.argv[0]))
|
||||||
|
@ -140,6 +145,7 @@ def autoLocate ():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
sys.path.insert( 0, builderDir )
|
sys.path.insert( 0, builderDir )
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
@ -226,7 +232,7 @@ else:
|
||||||
if options.static: builder.enableShared = "OFF"
|
if options.static: builder.enableShared = "OFF"
|
||||||
if options.doc: builder.enableDoc = "ON"
|
if options.doc: builder.enableDoc = "ON"
|
||||||
if options.checkDb: builder.checkDatabase = "ON"
|
if options.checkDb: builder.checkDatabase = "ON"
|
||||||
if options.checkDeterminism: builder.enableDeterminism = "ON"
|
if options.checkDeterminism: builder.checkDeterminism = "ON"
|
||||||
if options.verboseMakefile: builder.verboseMakefile = "ON"
|
if options.verboseMakefile: builder.verboseMakefile = "ON"
|
||||||
if options.rootDir: builder.rootDir = options.rootDir
|
if options.rootDir: builder.rootDir = options.rootDir
|
||||||
if options.noBuild: builder.doBuild = False
|
if options.noBuild: builder.doBuild = False
|
||||||
|
|
Loading…
Reference in New Issue