mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-29 05:21:23 +01:00
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()
|
|
|
|
|
|
|