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.
27 lines
447 B
Python
27 lines
447 B
Python
#! /usr/bin/env python
|
|
# encoding: utf-8
|
|
# Thomas Nagy, 2011 (ita)
|
|
|
|
"""
|
|
rpath processing example:
|
|
add all rpaths from local libraries
|
|
|
|
(warning: do not use in production code...)
|
|
"""
|
|
|
|
VERSION='0.0.1'
|
|
APPNAME='local_rpath'
|
|
|
|
top = '.'
|
|
|
|
def options(opt):
|
|
opt.load('compiler_c')
|
|
|
|
def configure(conf):
|
|
conf.load('compiler_c local_rpath')
|
|
|
|
def build(bld):
|
|
bld.shlib(source='a.c', target='foo')
|
|
bld.program(source='main.c', target='bar', use='foo')
|
|
|