waf

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

wscript (498B)


      1 #! /usr/bin/env python
      2 # encoding: utf-8
      3 # Thomas Nagy, 2006-2015 (ita)
      4 
      5 """
      6 See waflib/extras/stale.py for more information.
      7 Do not forget to reconfigure the project after changing "configure" below
      8 """
      9 
     10 VERSION='0.0.1'
     11 APPNAME='cc_test'
     12 
     13 top = '.'
     14 
     15 def options(opt):
     16 	opt.load('compiler_c')
     17 
     18 def configure(conf):
     19 	conf.load('compiler_c stale')
     20 
     21 def build(bld):
     22 	import random
     23 	if random.randint(0, 1):
     24 		bld(rule='touch ${TGT}', target='foo.h')
     25 	else:
     26 		bld(rule='touch ${TGT}', target='bar.h')
     27