AAP static libraries tools
"F. Schoenahl" <[email protected]> Mon, 5 Apr 2004 13:43:28 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <20040405134328.7b9711d4@dmnu_mn34.hcuge.ch> |
Dear all, thanks for AAP. Great (useful) project! I have been using SCons, but I found the portability issues and configure-like steps not that clear. I have tried to set up aap files (without agide) for compiling on different platforms, however I get problems when trying to compile static libraries on Windows platform. 1) Using the borland compiler :usetool bcc I want to compile a static library :lib mylib: src\mylibX.c then bcc compiles correctly the *.c object(s) however the linking is done with Microsoft LIB.exe. The borland linker is TLIB.EXE (provided with the borland command line tools). I haven't found any place nor variable to fix this to TLIB.EXE without hardcoding it in the python sources, how to? Note : if I use gcc w. dgjpp (:usetool gcc), the linker is LIB.exe as well, and not AR 2) Then if the project tree is the same on linux/unix and windows, it should not be required to rewrite the subdirectory indicator : Linux : :lib mylib: src/mysource.c Windows: :lib mylib: src\mysource.c If I remember well SCons uses '/' even on windows and translates to the right format according to the platform. The only solution I have found is to do an @if statement, because aap complains on windows if I use "/". 3) I have a test directory that uses the recently created lib, but I don't know how to write a reference to this lib in a platform independant manner : I have used LIBS = ../lib/$?LIBPREmylib$?LIBSUF so that if the system produces mylib.lib it will be taken as well as libmylib.a on linux. The problem is that the concatenation of $?LIBPREmylib$?LIBSUF doesnt work and produces "../lib/.lib" on windows How to write it in a correct manner? Thanks for your help, long life to the project (I especially expect a lot from the :conf commands..) Fred ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click