3 ms·
You're basically describing WAF. Even your sketched up syntax is very similar to what it does. Here is how you run candle.exe which is a part of WiX using a one
by bjourne 13y ago
You're basically describing WAF. Even your sketched up syntax is very similar to what it does. Here is how you run candle.exe which is a part of WiX using a one-off rule:
return ctx(
rule = 'candle.exe -nologo -out ${TGT} ${SRC} -dMySource="%s"' % dirpath,
source = ['%s.wxs' % group],
target = ['%s.wxsobj' % group]
)
It has canned dependency node generators in libraries for most popular languages:
ctx.objects(source = glob.glob('src/*.cpp'), target = 'OBJS')
Here you don't specify the names of the target object files directly and instead let WAF's c++ tool figure them out. On Windows, they will be .obj, on Linux .o and maybe something else on Mac.