diff options
author | Chris Johns <chrisj@rtems.org> | 2014-09-13 12:09:16 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-09-13 12:09:16 +1000 |
commit | 87e0e76be5b17d1dd27274d58ac9b58cdf71c0ca (patch) | |
tree | 0d44623ad165fa69cd0946f2baab79339b3e6215 /wscript | |
parent | waf: Include waf in the souce tree and updated README on building. (diff) | |
download | rtems-tools-87e0e76be5b17d1dd27274d58ac9b58cdf71c0ca.tar.bz2 |
Refactor code into the RTEMS Toolkit.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 29 |
1 files changed, 28 insertions, 1 deletions
@@ -28,7 +28,8 @@ # POSSIBILITY OF SUCH DAMAGE. # -subdirs = ['linkers', +subdirs = ['rtemstoolkit', + 'linkers', 'tester', 'tools/gdb/python'] @@ -37,9 +38,23 @@ def recurse(ctx): ctx.recurse(sd) def options(ctx): + ctx.add_option('--rtems-version', + default = '4.11', + dest='rtems_version', + help = 'Set the RTEMS version') + ctx.add_option('--c-opts', + default = '-O2', + dest='c_opts', + help = 'Set build options, default: -O2.') recurse(ctx) def configure(ctx): + try: + ctx.load("doxygen", tooldir = 'waf-tools') + except: + pass + ctx.env.C_OPTS = ctx.options.c_opts.split(',') + ctx.env.RTEMS_VERSION = ctx.options.rtems_version recurse(ctx) def build(ctx): @@ -50,3 +65,15 @@ def install(ctx): def clean(ctx): recurse(ctx) + +def rebuild(ctx): + import waflib.Options + waflib.Options.commands.extend(['clean', 'build']) + +# +# The doxy command. +# +from waflib import Build +class doxy(Build.BuildContext): + fun = 'build' + cmd = 'doxy' |