Additional top-level build targets:
prepare Create all target files not part of the repository
+default Build all default targets (like calling scons with no arguments)
+examples Build all examples
all_tests Build and run unit tests for all modules
all_docs Build documentation for all modules
all Build everything
'$BOOSTIOSTREAMSLIB', '$BOOSTSIGNALSLIB', '$BOOSTFSLIB' ],
TEST_EXTRA_LIBS = [ ],
- PREFIX = '/usr/local',
- LIBINSTALLDIR = '$PREFIX/lib',
- BININSTALLDIR = '$PREFIX/bin',
- INCLUDEINSTALLDIR = '$PREFIX/include',
- OBJINSTALLDIR = '$LIBINSTALLDIR',
- DOCINSTALLDIR = '$PREFIX/doc',
+ PREFIX = '#/dist',
+ LIBINSTALLDIR = '$PREFIX${syslayout and "/lib" or ""}',
+ BININSTALLDIR = '$PREFIX${syslayout and "/bin" or ""',
+ INCLUDEINSTALLDIR = '$PREFIX${syslayout and "/include" or ""}',
+ OBJINSTALLDIR = '$LIBINSTALLDIR${syslayout and "/$LIBINSTALLDIR/senf" or ""',
+ DOCINSTALLDIR = '$PREFIX/docs',
CPP_INCLUDE_EXTENSIONS = [ '.h', '.hh', '.ih', '.mpp', '.cci', '.ct', '.cti' ],
CPP_EXCLUDE_EXTENSIONS = [ '.test.hh' ],
)
env.SetDefault(
- LIBSENF = "senf",
- final = 0,
- debug = 0,
+ LIBSENF = "senf",
+ final = 0,
+ debug = 0,
+ syslayout = 0
)
# Set variables from command line
# Load SConscripts
+SConscriptChdir(0)
SConscript("debian/SConscript")
-SConscript("doclib/SConscript")
+SConscriptChdir(1)
if os.path.exists('SConscript.local') : SConscript('SConscript.local')
-
SConscript("senf/SConscript")
-
SConscript("Examples/SConscript")
SConscript("HowTos/SConscript")
+SConscript("doclib/SConscript")
###########################################################################
# Define build targets
env.Alias('install_all', env.FindInstalledFiles())
env.Alias('default', DEFAULT_TARGETS)
env.Alias('all_tests', env.FindAllBoostUnitTests())
-env.Alias('all', [ 'default', 'all_tests', 'all_docs' ])
+env.Alias('all', [ 'default', 'all_tests', 'examples', 'all_docs' ])
#### prepare
env.PhonyTarget('prepare', [], [])