clean up top level SConstruct
This commit is contained in:
parent
feebd05cba
commit
98717915b2
2 changed files with 21 additions and 25 deletions
44
SConstruct
44
SConstruct
|
|
@ -23,46 +23,39 @@
|
||||||
|
|
||||||
|
|
||||||
# NOTE: scons -h for help.
|
# NOTE: scons -h for help.
|
||||||
|
# This script /defines/ the components and how they fit together.
|
||||||
|
# SCons will derive dependencies and the necessary build steps.
|
||||||
# Read more about the SCons build system at: http://www.scons.org
|
# Read more about the SCons build system at: http://www.scons.org
|
||||||
# Basically, this script just /defines/ the components and how they
|
|
||||||
# fit together. SCons will derive the necessary build steps.
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------Configuration
|
# SCons plugins and extension modules
|
||||||
TOOLDIR = './admin/scons' # SCons plugins
|
#------------------------------------------------
|
||||||
#-----------------------------------Configuration
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
|
sys.path.append('./admin/scons')
|
||||||
sys.path.append(TOOLDIR)
|
#------------------------------------------------
|
||||||
|
|
||||||
from Buildhelper import *
|
|
||||||
from LumieraEnvironment import *
|
|
||||||
|
|
||||||
|
|
||||||
import Setup
|
import Setup
|
||||||
import Options
|
import Options
|
||||||
import Platform
|
import Platform
|
||||||
|
|
||||||
|
from Buildhelper import *
|
||||||
|
from LumieraEnvironment import *
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
env = Setup.defineBuildEnvironment()
|
env = Setup.defineBuildEnvironment() # dirs & compiler flags
|
||||||
env = Platform.configure(env)
|
env = Platform.configure(env) # library dependencies
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### === MAIN BUILD === ##############################################
|
### === MAIN BUILD === ##############################################
|
||||||
|
|
||||||
# call subdir SConscript(s) for to define the actual build targets
|
# call subdir SConscript(s) to define the actual build targets...
|
||||||
SConscript(dirs=['data','src','src/tool','research','tests','doc'], exports='env')
|
SConscript(dirs=['data','src','src/tool','research','tests','doc'], exports='env')
|
||||||
|
|
||||||
# artifacts defined by the build targets
|
|
||||||
Import('lumiera plugins tools gui testsuite doxydoc')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -74,14 +67,17 @@ env.Clean ('build', [ 'src/pre.gch' ])
|
||||||
|
|
||||||
### === Alias Targets === ###########################################
|
### === Alias Targets === ###########################################
|
||||||
|
|
||||||
|
# pick up the targets defined by the sub SConscripts
|
||||||
|
Import('lumiera plugins tools gui testsuite doxydoc')
|
||||||
|
|
||||||
build = env.Alias('build', lumiera + plugins + tools +gui)
|
build = env.Alias('build', lumiera + plugins + tools +gui)
|
||||||
|
|
||||||
env.Alias ('doc', doxydoc)
|
|
||||||
|
|
||||||
env.Alias ('all', build + testsuite + doxydoc)
|
|
||||||
env.Default('build')
|
env.Default('build')
|
||||||
# SCons default target
|
# SCons default target
|
||||||
|
|
||||||
|
|
||||||
|
env.Alias ('all', build + testsuite + doxydoc)
|
||||||
|
env.Alias ('doc', doxydoc)
|
||||||
|
|
||||||
env.Alias('install', gui)
|
env.Alias('install', gui)
|
||||||
env.Alias('install', '$DESTDIR')
|
env.Alias('install', '$DESTDIR')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ def testCollection(env,dir):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# but have to treat some subdirs individually.
|
# have to treat some subdirs individually.
|
||||||
specials = ['plugin','lib','components']
|
specials = ['plugin','lib','components']
|
||||||
moduledirs = globRootdirs('*')
|
moduledirs = globRootdirs('*')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue