configure.py
author David Anderson <dvander@alliedmods.net>
Mon Aug 12 00:22:41 2013 +0100 (2013-08-12)
changeset 3989 b73dae36a0da
parent 3828 528fb63b2270
child 4182 8ef93b2feddf
permissions -rw-r--r--
Eliminate InfoVars::rval (bug 5844 part 6, r=ds).
     1 # vim: set ts=2 sw=2 tw=99 noet:
     2 import sys
     3 import ambuild.runner as runner
     4 
     5 run = runner.Runner()
     6 run.options.add_option('--enable-debug', action='store_const', const='1', dest='debug',
     7                        help='Enable debugging symbols')
     8 run.options.add_option('--enable-optimize', action='store_const', const='1', dest='opt',
     9                        help='Enable optimization')
    10 run.options.add_option('--no-mysql', action='store_false', default=True, dest='hasMySql',
    11                        help='Disable building MySQL extension')
    12 run.options.add_option('-s', '--sdks', default='all', dest='sdks',
    13                        help='Build against specified SDKs; valid args are "all", "present", or '
    14                             'comma-delimited list of engine names (default: %default)')
    15 run.Configure(sys.path[0])