List Info

Thread: new generator or fetaure for gui code in borland - not sure of approach to take




new generator or fetaure for gui code in borland - not sure of approach to take
country flaguser name
Australia
2007-05-27 23: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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )