wscript_build 481 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env python
  2. """
  3. when linked, object files should bring the libraries (uselib) they refer to
  4. """
  5. bld.env.LIB_Z = ['z']
  6. bld.recurse('lib')
  7. bld.recurse('libex')
  8. bld.objects(
  9. source = 'a.c',
  10. target = 'A',
  11. use = 'Z',
  12. )
  13. bld.program(
  14. source = 'a-test.c',
  15. target = 'a-test',
  16. use = 'A libex',
  17. )
  18. """
  19. bld.objects(
  20. source = 'b.c',
  21. target = 'B',
  22. use = 'A',
  23. )
  24. bld.program(
  25. source = 'c.c',
  26. target = 'C',
  27. use = 'B',
  28. )
  29. """