Hi,
The equivalent is Jamfile. Take a look at mert/Jamfile; the basics are
fairly easy. Some Jamfiles use a glob e.g. moses/src/Jamfile:
lib moses :
#All cpp files except those listed
[ glob *.cpp DynSAInclude/*.cpp : ThreadPool.cpp
SyntacticLanguageModel.cpp ]
synlm ThreadPool CYKPlusParser//CYKPlusParser LM//LM
RuleTable//RuleTable Scope3Parser//Scope3Parser headers ../..//z
../../OnDiskPt//OnDiskPt ;
Since it seems you made a new directory, you can either add to the glob
like DynSAInclude/*.cpp or create a Jamfile for your directory and
reference it as a library like CYKPlusParser does.
Kenneth
On 03/19/2012 04:42 PM, Nick Ruiz wrote:
> Hi everyone,
>
> I have a question about adding new feature functions using bjam. I
> created a new .h and .cpp file and incorporated the feature in
> StaticData.h/.cpp; however, running bjam causes the friendly "undefined
> reference" error when I try to call my new feature's constructor. The
> problem is that the feature's source files aren't included in the build
> process.
>
> How do I add the new files in the build process with Boost? I assumed
> that the subdirectories would automatically be scanned, since I didn't
> immediately see something like a Makefile to work from. Or maybe I just
> missed it. :)
>
> Thanks,
> Nick
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support