|
|
| 117 |
action="store_true", default=False, |
117 |
action="store_true", default=False, |
| 118 |
dest='doxygen') |
118 |
dest='doxygen') |
| 119 |
|
119 |
|
|
|
120 |
opt.add_option('--build', |
| 121 |
help=('Locally build a program; argument must be a program name.'), |
| 122 |
type="string", default='', dest='buildprogram') |
| 120 |
opt.add_option('--run', |
123 |
opt.add_option('--run', |
| 121 |
help=('Run a locally built program; argument can be a program name,' |
124 |
help=('Run a locally built program; argument can be a program name,' |
| 122 |
' or a command starting with the program name.'), |
125 |
' or a command starting with the program name.'), |
|
|
| 511 |
bld.add_subdirs('bindings/python') |
514 |
bld.add_subdirs('bindings/python') |
| 512 |
|
515 |
|
| 513 |
if Options.options.run: |
516 |
if Options.options.run: |
|
|
517 |
Options.options.buildprogram = Options.options.run |
| 518 |
|
| 519 |
if Options.options.buildprogram: |
| 514 |
# Check that the requested program name is valid |
520 |
# Check that the requested program name is valid |
| 515 |
program_name, dummy_program_argv = wutils.get_run_program(Options.options.run, wutils.get_command_template(env)) |
521 |
program_name, dummy_program_argv = wutils.get_run_program(Options.options.buildprogram, wutils.get_command_template(env)) |
| 516 |
|
522 |
|
| 517 |
# When --run'ing a program, tell WAF to only build that program, |
523 |
# When --run'ing a program, tell WAF to only build that program, |
| 518 |
# nothing more; this greatly speeds up compilation when all you |
524 |
# nothing more; this greatly speeds up compilation when all you |