mirror of https://gitlab.com/ita1024/waf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
513 B
Plaintext
23 lines
513 B
Plaintext
The configuration methods `@conf` are bound to the configuration context, and to the build context::
|
|
|
|
@waflib.Configure.conf
|
|
def find_program(ctx):
|
|
pass
|
|
|
|
def configure(conf):
|
|
conf.find_program(...)
|
|
|
|
The object `conf.env` is usually modified during the execution. If several methods have to be called, then
|
|
a transaction should be used, for example::
|
|
|
|
def configure(conf):
|
|
conf.env.stash()
|
|
try:
|
|
conf.find_program('strip')
|
|
conf.env.append_value('CFLAGS', '-O3')
|
|
finally:
|
|
conf.env.revert()
|
|
|
|
|
|
|