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_attributes/wscript

36 lines
748 B
Python

#! /usr/bin/env python
"""
This example demonstrates a few attributes that may be passed to
bld.program, bld.shlib and bld.stlib
"""
def options(opt):
opt.load('compiler_c')
def configure(conf):
conf.load('compiler_c')
def build(bld):
bld.program(
source = 'main.c',
target = 'appname',
features = ['more', 'features', 'here'],
includes = ['.'],
defines = ['LINUX=1', 'BIDULE'],
lib = ['m'],
libpath = ['/usr/lib64'],
stlib = ['dl'],
stlibpath = ['/usr/local/lib'],
linkflags = ['-g'],
install_path = '${SOME_PATH}/bin', # None to disable
vnum = '1.2.3',
ccflags = ['-O2', '-Wall'],
cxxflags = ['-O3'],
rpath = ['/opt/kde/lib']
)