base-cpp/SConstruct
Eryn Wells c56cc557f8 Redo the _whooollleee_ build system
Following the tutorials on http://www.ostricher.com/tag/scons/, I rebuilt the
build system so that SConscript files are *much* easier to write.
2015-10-16 23:12:39 -07:00

20 lines
473 B
Python

# SConstruct
# vim: set ft=python:
#
# Toplevel Scons build script. This should be mostly complete and generic enough
# for most builds.
#
# Eryn Wells <eryn@erynwells.me>
import logging
setup_logging()
BUILD_CMDS = get_bool_argument(ARGUMENTS.get('BUILD_CMDS', False))
MODE = ARGUMENTS.get('MODE', None)
for mode in (MODE.split(',') if MODE else ['debug']):
env = Environment.for_mode(mode)
env.process_lib_dirs()
env.process_src()
env.process_tests()