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.

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:
lib GuiLib : some_form.cpp : <link>static

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.

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.
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.
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.

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

any feedback appreciated

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at