waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

confmap_example.txt (513B)


      1 The configuration methods `@conf` are bound to the configuration context, and to the build context::
      2 
      3 	@waflib.Configure.conf
      4 	def find_program(ctx):
      5 		pass
      6 
      7 	def configure(conf):
      8 		conf.find_program(...)
      9 
     10 The object `conf.env` is usually modified during the execution. If several methods have to be called, then
     11 a transaction should be used, for example::
     12 
     13 	def configure(conf):
     14 		conf.env.stash()
     15 		try:
     16 			conf.find_program('strip')
     17 			conf.env.append_value('CFLAGS', '-O3')
     18 		finally:
     19 			conf.env.revert()
     20 
     21 
     22