summaryrefslogtreecommitdiff
path: root/py/waf/switch.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/waf/switch.py')
-rw-r--r--py/waf/switch.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/py/waf/switch.py b/py/waf/switch.py
new file mode 100644
index 0000000000..0ec674fd8c
--- /dev/null
+++ b/py/waf/switch.py
@@ -0,0 +1,26 @@
+def options(ctx):
+ ctx.load('compiler_c')
+ ctx.load('compiler_cxx')
+ ctx.load('waf_unit_test')
+
+ ctx.add_option('--enable-tests', action='store_true', default=False, help='Enable tests (TEMP OPTION!)')
+
+ grp = ctx.add_option_group("config (configuration file) options")
+ grp.add_option('--bsp', dest='bsps', help="Command seperated list of BSPs to build.", type='string')
+ grp.add_option('--list', action='store_true', default=False, help='List available BSPs.')
+ grp.add_option('--prefix', dest='prefix', help="Install prefix.", type='string')
+ grp.add_option('--path-tools', dest='path_tools', help="Directory for RTEMS tools.", type='string')
+ grp.add_option('--force', action='store_true', default=False, help='Force overwriting config.cfg.')
+
+ grp = ctx.add_option_group("docs documentation options")
+ grp.add_option('--out', dest='file_out', default="options.html", help="Output file (default: %default)", type='string')
+ grp.add_option('--html', action='store_true', default=True, help='Generate HTML documentation. (default: yes)')
+ grp.add_option('--txt', action='store_true', default=True, help='Generate Text documentation. (default: no)')
+
+ grp = ctx.add_option_group("build options")
+ grp.add_option('--build-bsp', help="Build this BSP only.", type='string')
+
+ grp = ctx.add_option_group("developer options")
+ grp.add_option('--dev-config', action='store_true', default=False, help="Write build configuration. (default: no)")
+ grp.add_option('--dev-json', action='store_true', default=False, help="Write JSON build log.. (default: no)")
+