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/docs/book/examples/cprog_incdirs/wscript

30 lines
521 B
Python

#! /usr/bin/env python
"""
include paths added by export_includes are propagated to other targets
"""
def options(opt):
opt.load('compiler_c')
def configure(conf):
conf.load('compiler_c')
def build(bld):
bld(
includes = '. src',
export_includes = 'src',
name = 'com_includes')
bld.stlib(
source = 'a.c',
target = 'shlib1',
use = 'com_includes')
bld.program(
source = 'main.c',
target = 'app',
use = 'shlib1',
)