waf/playground/dynamic_build2/wscript

35 lines
705 B
Plaintext
Raw Normal View History

2011-10-03 19:17:11 +02:00
#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2010 (ita)
VERSION='0.0.1'
APPNAME='cc_test'
"""
"""
from waflib import Utils, Build
top = '.'
def options(opt):
opt.load('compiler_c')
def configure(conf):
conf.load('compiler_c')
def read_files(task):
2011-10-03 19:48:21 +02:00
# the real build files must be excluded, else they will get rebuilt
2012-04-15 10:42:06 +02:00
for x in task.generator.bld.bldnode.ant_glob('**', excl='**/*.o app', remove=False):
2011-10-03 19:17:11 +02:00
x.sig = Utils.h_file(x.abspath())
def build(bld):
bld.post_mode = Build.POST_LAZY
2011-10-03 20:20:48 +02:00
bld(rule='tar xvf ${SRC[0].abspath()}', source='foo.tar')
2011-10-03 19:17:11 +02:00
bld.add_group()
2011-10-03 19:48:21 +02:00
bld(rule=read_files, always=True, name='read_files')
2011-10-03 19:17:11 +02:00
bld.add_group()
bld.program(source='aa/main.c', target='app')