waf

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

wscript (573B)


      1 #! /usr/bin/env python
      2 
      3 """static libraries using other static libraries"""
      4 
      5 top = '.'
      6 out = 'build'
      7 
      8 parts = [ 'a', 'b' ]
      9 
     10 def build(bld):
     11     bld.stlib(
     12         target          = 'a',
     13         source          = 'a/a.c',
     14         includes        = 'a',
     15         export_includes = 'a',
     16         )
     17 
     18     bld.stlib(
     19         target          = 'b',
     20         source          = 'b/b.c',
     21         includes        = 'b',
     22         export_includes = 'b',
     23         use             = 'a',
     24         )
     25 
     26     bld.program(
     27         target = 'test',
     28         source = 'b/test.c',
     29         use    = 'b')
     30