waf/demos/c/stlib/wscript_build

23 lines
531 B
Plaintext
Raw Normal View History

2011-09-10 11:13:51 +02:00
#! /usr/bin/env python
bld.stlib(
source = 'test_staticlib.c',
target = 'my_static_lib')
bld.program(
source = 'main.c',
target = 'test_static_link',
includes = '.',
use = 'my_static_lib')
def r1(self):
import time
time.sleep(1)
self.outputs[0].write('\n')
2012-05-04 09:25:48 +02:00
bld(rule=r1, target='foo.h', before=['c'])
# the default scanner may enforce the build order on generated headers, but it is just
# better and faster to set before=['c', 'cxx'] explicitly
# the dependency processing for 'gccdeps' also requires it
2011-09-10 11:13:51 +02:00