waf

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

wscript_build (424B)


      1 #!/usr/bin/env python
      2 
      3 """
      4 the objects should carry uselib variables (includes, libraries to link against)
      5 to other objects and to the final link
      6 """
      7 
      8 bld.env.LIB_Z = ['z']
      9 bld.env.INCLUDES_Z = ['subdir']
     10 
     11 bld.objects(
     12 		source   = 'a.c',
     13 		target   = 'AA',
     14 		use      = 'Z',
     15 	)
     16 
     17 bld.objects(
     18 		source   = 'b.c',
     19 		target   = 'BB',
     20 		use      = 'AA',
     21 	)
     22 
     23 bld.program(
     24 		source = 'c.c',
     25 		target = 'CC',
     26 		use    = 'BB',
     27 	)
     28