mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-23 10:20:24 +01:00
27 lines
447 B
Plaintext
27 lines
447 B
Plaintext
|
#! /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')
|
||
|
|