SCons: new build target for experimental code

This commit is contained in:
Fischlurch 2011-12-03 06:10:12 +01:00
parent 08d330310f
commit 07002ab3af
5 changed files with 25 additions and 4 deletions

View file

@ -190,6 +190,7 @@ USAGE: scons [-c] [OPTS] [key=val [key=val...]] [TARGETS]
Special Targets: Special Targets:
build : just compile and link build : just compile and link
research: build experimental code (might fail)
testcode: additionally compile the Testsuite testcode: additionally compile the Testsuite
check : build and run the Testsuite check : build and run the Testsuite
doc : generate documentation (Doxygen) doc : generate documentation (Doxygen)
@ -370,13 +371,12 @@ def defineBuildTargets(env, artifacts):
) )
# call subdir SConscript(s) for independent components # call subdir SConscript(s) for independent components
SConscript(dirs=['src/tool'], exports='env artifacts core') SConscript(dirs=['src/tool','research','tests'], exports='env artifacts core')
SConscript(dirs=['tests'], exports='env artifacts core')
def definePostBuildTargets(env, artifacts): def definePostBuildTargets(env, artifacts):
""" define further actions after the core build (e.g. Documentaion). """ define further actions after the core build (e.g. Documentation).
define alias targets to trigger the installing. define alias targets to trigger the installing.
""" """
build = env.Alias('build', ( artifacts['lumiera'] build = env.Alias('build', ( artifacts['lumiera']

1
research/DIR_INFO Normal file
View file

@ -0,0 +1 @@
Experiments and Investigations. Not installed

21
research/SConscript Normal file
View file

@ -0,0 +1,21 @@
# -*- python -*-
##
## SConscript - SCons buildscript for experiments and investigations.
## Things defined here usuall won't be installed
##
Import('env','artifacts','core')
support_lib = artifacts['support']
# build additional test and administrative tools....
experiments = [ env.Program('try', ['try.cpp'] + support_lib) #### to try out some feature...
]
#
# define Phony targets
# - 'scons research' triggers building of experimental code
#
env.Alias('research', experiments )

View file

@ -17,7 +17,6 @@ rsvg = envSvg.Program('rsvg-convert','rsvg-convert.c')
# build additional test and administrative tools.... # build additional test and administrative tools....
artifacts['tools'] = [ env.Program('hello-world','hello.c', install=True) #### hello world (checks C build) artifacts['tools'] = [ env.Program('hello-world','hello.c', install=True) #### hello world (checks C build)
+ env.Program('try', ['try.cpp'] + support_lib) #### to try out some feature...
+ luidgen + luidgen
+ rsvg + rsvg
] ]