waf/playground/stpl_c_py_cs_satellite_wix/src/api/wscript_build

33 lines
845 B
Plaintext
Raw Normal View History

2016-01-03 06:53:20 +01:00
#! /usr/bin/env python
# encoding: utf-8
2016-01-03 05:06:44 +01:00
#vim syntax=python
funi = bld.env.dllname
gui = bld.env.guiname+'.exe'
csdll = bld.env.dllname+'_cs.dll'
2016-01-03 06:53:20 +01:00
bld(rule=bld.stpl,source='funi.c.stpl',target='funi.c')
bld(rule=bld.stpl,source='funi.h.stpl',target='funi.h')
bld(rule=bld.stpl,source='funi_cs.cs.stpl',target='funi_cs.cs')
bld(rule=bld.stpl,source='funi.py.stpl',target='funi.py')
bld(rule=bld.stpl,source='test_funi.py.stpl',target='test_funi.py')
bld(rule=bld.stpl,source='test_funi.cpp.stpl',target='test_funi.cpp')
2016-01-03 05:06:44 +01:00
bld.add_group()
bld.shlib(
source = ['funi.c'],
target = funi,
defines = ['BUILDING_DLL'])
bld.program(
source = 'test_funi.cpp',
includes = ['.'],
2016-01-03 06:53:20 +01:00
target = 'test_funi',
2016-01-03 05:06:44 +01:00
use = funi)
bld.add_group()
2016-01-03 06:53:20 +01:00
bld(features='cs',source='funi_cs.cs',gen=csdll,includes='.', name='csdll')
2016-01-03 05:06:44 +01:00