Boost logo

Boost-Build :

From: Malcolm Cifuentes (malcolm_cifuentes_at_[hidden])
Date: 2007-05-28 00:24:35


Hi all,
hopefully some one can point me in the right direction.

Problem:
I am trying to compile gui code using the borland compiler. The linker requires
access (-L definition) to the location of 1 or more .dfm file associated with 1
or more libraries.

So for instance if I have the following Jamfiles:
----------------
guilib/Jamfile
lib GuiLib : some_form.cpp : <link>static
     ;

----------------
main/Jamfile
exe somemain :
exe gui_test_runner : gui_test_runner ../guilib//GuiLib : : :
     ;

GuiLib has a dependancy on a .dfm file which the exe target in main/Jamfile has
no way of knowing about, which in turn generates a link error.

Solutions:
1. I would like to add the .dfm file to the library source list so it is picked
up as a dependancy for the library, which could then generate a -L path for the
link stage.
Example:
----------------
guilib/Jamfile
lib GuiLib : some_form.cpp some_form.dfm : <link>static
     ;

2. Define a feature (similar to def-file is msvc toolset) which allows me to
specify something in the Jamfile that can be used to generate a link line.
Example:
----------------
guilib/Jamfile
lib GuiLib : some_form.cpp : <dfm-file>some_form.dfm <link>static
     ;

I have tried approach no 2 and had no success. approach 1 feels more right but I
am not sure where to start.

Questions:
1. which is the best approach?
2. any examples around i can use to help me along?

any feedback appreciated
mal


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