wscript 573 B

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