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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/playground/use/objects/wscript_build

40 lines
481 B
Python

#!/usr/bin/env python
"""
when linked, object files should bring the libraries (uselib) they refer to
"""
bld.env.LIB_Z = ['z']
bld.recurse('lib')
bld.recurse('libex')
bld.objects(
source = 'a.c',
target = 'A',
use = 'Z',
)
bld.program(
source = 'a-test.c',
target = 'a-test',
use = 'A libex',
)
"""
bld.objects(
source = 'b.c',
target = 'B',
use = 'A',
)
bld.program(
source = 'c.c',
target = 'C',
use = 'B',
)
"""