waf

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

wscript (489B)


      1 #! /usr/bin/env python
      2 # encoding: utf-8
      3 # Thomas Nagy, 2010 (ita)
      4 
      5 top = '.'
      6 out = 'build'
      7 
      8 def options(opt):
      9 	opt.load('compiler_c')
     10 	opt.load('errcheck')
     11 
     12 def configure(conf):
     13 	conf.load('compiler_c')
     14 
     15 def build(bld):
     16 	bld(feature='c cprogram', source='main.c', target='app1')
     17 	bld.program(sources='main.c', target='app2')
     18 	bld.program(source='main.c', targets='app3')
     19 	bld.program(source='main.c', target='app4', include='.')
     20 	bld.program(source='main.c', target='app5', define='x=1')