wscript (447B)
1 #! /usr/bin/env python 2 # encoding: utf-8 3 # Thomas Nagy, 2011 (ita) 4 5 """ 6 rpath processing example: 7 add all rpaths from local libraries 8 9 (warning: do not use in production code...) 10 """ 11 12 VERSION='0.0.1' 13 APPNAME='local_rpath' 14 15 top = '.' 16 17 def options(opt): 18 opt.load('compiler_c') 19 20 def configure(conf): 21 conf.load('compiler_c local_rpath') 22 23 def build(bld): 24 bld.shlib(source='a.c', target='foo') 25 bld.program(source='main.c', target='bar', use='foo') 26