wscript_build (845B)
1 #! /usr/bin/env python 2 # encoding: utf-8 3 #vim syntax=python 4 5 funi = bld.env.dllname 6 gui = bld.env.guiname+'.exe' 7 csdll = bld.env.dllname+'_cs.dll' 8 9 bld(rule=bld.stpl,source='funi.c.stpl',target='funi.c') 10 bld(rule=bld.stpl,source='funi.h.stpl',target='funi.h') 11 bld(rule=bld.stpl,source='funi_cs.cs.stpl',target='funi_cs.cs') 12 bld(rule=bld.stpl,source='funi.py.stpl',target='funi.py') 13 bld(rule=bld.stpl,source='test_funi.py.stpl',target='test_funi.py') 14 bld(rule=bld.stpl,source='test_funi.cpp.stpl',target='test_funi.cpp') 15 16 bld.add_group() 17 18 bld.shlib( 19 source = ['funi.c'], 20 target = funi, 21 defines = ['BUILDING_DLL']) 22 23 bld.program( 24 source = 'test_funi.cpp', 25 includes = ['.'], 26 target = 'test_funi', 27 use = funi) 28 29 bld.add_group() 30 31 bld(features='cs',source='funi_cs.cs',gen=csdll,includes='.', name='csdll') 32