mirror of https://gitlab.com/ita1024/waf.git
34 lines
611 B
Plaintext
34 lines
611 B
Plaintext
|
#! /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):
|
||
|
for x in task.generator.bld.bldnode.ant_glob('**'):
|
||
|
x.sig = Utils.h_file(x.abspath())
|
||
|
|
||
|
def build(bld):
|
||
|
bld.post_mode = Build.POST_LAZY
|
||
|
|
||
|
bld(rule='tar xvf ${SRC[0].abspath()}', source='foo.tar', cwd=bld.bldnode.abspath())
|
||
|
bld.add_group()
|
||
|
bld(rule=read_files, always=True)
|
||
|
bld.add_group()
|
||
|
bld.program(source='aa/main.c', target='app')
|
||
|
|