wscript_build 386 B

12345678910111213141516171819
  1. #! /usr/bin/env python
  2. bld.program(source='main.c', target=bld.path.get_bld().make_node('foo.exe'), includes=". ..")
  3. """
  4. bld.env.CFLAGS_TEST = ['-O3']
  5. bld.env.CFLAGS_BAR = ['-O2']
  6. bld.shlib(source='a.c', target='meh')
  7. bld(
  8. features = 'c cprogram',
  9. source = 'main.c',
  10. includes = '. ..',
  11. #ccflags = '-O3',
  12. use='TEST meh',
  13. uselib='BAR',
  14. target = 'myprogram')
  15. """