wscript 737 B

123456789101112131415161718
  1. #! /usr/bin/env python
  2. def options(ctx):
  3. ctx.load('compiler_c')
  4. def configure(ctx):
  5. ctx.load('compiler_c syms')
  6. def build(ctx):
  7. ctx(features='c cshlib syms', source='a.c b.c', export_symbols_regex='mylib_.*', target='testlib')
  8. ctx(features='c cprogram', source='main.c', target='app', use='testlib')
  9. # multiple shared libraries sharing the same file
  10. ctx(features='c syms', source='a.c b.c', export_symbols_regex='mylib_.*', use='cshlib',
  11. target='obj_example', sym_file='obj_example.def')
  12. ctx(features='c cshlib syms', source=[], export_symbols_regex='mylib_.*', target='lib1', sym_file='obj_example.def')
  13. ctx(features='c cshlib syms', source=[], export_symbols_regex='mylib_.*', target='lib2', sym_file='obj_example.def')