wscript 447 B

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