Subject: Re: [Boost-build] execute javac/javah before building c++-lib
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-07-10 02:25:44
On Friday 10 July 2009 Andrej van der Zee wrote:
> I need to execute 2 commands to generate stub-files before my target library is build. How can I specify this in a Jamfile? This is what I have:
> lib mva
> : [ glob *.cpp ]
> But before building libmva.so, it should execute "javac *.java" and "javah mva_jni". How can I enforce this?
Use <dependency> feature to set dependency from mva to whatever other target that generates whatever you want.
However, note that glob works at parsing time -- it will not see any header or source files javah might generate.
I don't know if that's problem or not.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk