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.
waf/playground/c/program/wscript_build

20 lines
386 B
Python

#! /usr/bin/env python
bld.program(source='main.c', target=bld.path.get_bld().make_node('foo.exe'), includes=". ..")
"""
bld.env.CFLAGS_TEST = ['-O3']
bld.env.CFLAGS_BAR = ['-O2']
bld.shlib(source='a.c', target='meh')
bld(
features = 'c cprogram',
source = 'main.c',
includes = '. ..',
#ccflags = '-O3',
use='TEST meh',
uselib='BAR',
target = 'myprogram')
"""