forked from mirror/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.
31 lines
573 B
Python
31 lines
573 B
Python
#! /usr/bin/env python
|
|
|
|
"""static libraries using other static libraries"""
|
|
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
parts = [ 'a', 'b' ]
|
|
|
|
def build(bld):
|
|
bld.stlib(
|
|
target = 'a',
|
|
source = 'a/a.c',
|
|
includes = 'a',
|
|
export_includes = 'a',
|
|
)
|
|
|
|
bld.stlib(
|
|
target = 'b',
|
|
source = 'b/b.c',
|
|
includes = 'b',
|
|
export_includes = 'b',
|
|
use = 'a',
|
|
)
|
|
|
|
bld.program(
|
|
target = 'test',
|
|
source = 'b/test.c',
|
|
use = 'b')
|
|
|