waf

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

wscript_build (386B)


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