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