mirror of https://gitlab.com/ita1024/waf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
709 B
Python
35 lines
709 B
Python
#! /usr/bin/env python
|
|
# encoding: utf-8
|
|
# Thomas Nagy, 2006-2015 (ita)
|
|
|
|
"""
|
|
See waflib/extras/stale.py for more information.
|
|
Do not forget to reconfigure the project after changing "configure" below
|
|
"""
|
|
|
|
VERSION='0.0.1'
|
|
APPNAME='cc_test'
|
|
|
|
top = '.'
|
|
|
|
def options(opt):
|
|
opt.load('compiler_c')
|
|
|
|
def configure(conf):
|
|
conf.load('compiler_c stale')
|
|
|
|
def build(bld):
|
|
import waflib.Build
|
|
bld.post_mode = waflib.Build.POST_AT_ONCE
|
|
|
|
# the file foo.h is removed when bar.h is creatd
|
|
# or the other way round
|
|
# but both foo.h and bar.h will not be found in the build directory
|
|
|
|
import random
|
|
if random.randint(0, 1):
|
|
bld(rule='touch ${TGT}', target='foo.h')
|
|
else:
|
|
bld(rule='touch ${TGT}', target='bar.h')
|
|
|