On Monday 25 June 2007 08:12, Frieder Ferlemann wrote:
> Hi Alex,
> Alexander Neundorf schrieb:
> > I'd like to add support for sdcc to CMake (http://www.cmake.org), so that
> > cmake will be able to generate Makefiles or project files for sdcc.
> > The only problem I found is the following: the documentation for the
> > sdcclib says that you can only add one file at a time to a library. Did I
> > miss something ?
> No - there is a feature request asking for this very feature:
>id=599 but it is not there.
> (If you have a sourceforge account you can "monitor" that request,
> so you get email on changes)
> > CMake requires that it is possible to create a library with one command,
> > e.g. sdcclib -a mystuff.lib file1.rel file2.rel file3.rel ....
> > [..] can sdcclib be extended so that it supports this mode ?
> If all else fails the source for sdcclib would live there:
I had a look and it has already been implemented yesterday :-)
> Revision 4859 - (view) (download) (annotate) - [select for diffs]
> Modified Mon Jun 25 17:12:45 2007 UTC (22 hours, 10 minutes ago) by jesusc
> File length: 15855 byte(s)
> Diff to previous 4394
> Added feature Requests  Multiple infiles for sdcclib.
Thanks a lot :-)
Will this go into sdcc 2.7.1 ?
CMake current cvs HEAD now supports sdcc, but I did only a very basic test,
you can see it in the attached file.
To try it, unpack it, create a build-directory (if you want to build
out-of-source), run cmake and build:
$ cd src/
$ tar -zxvf sdcc1.tar.gz
$ cd sdcc1
$ mkdir build
$ cd build
$ cmake -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_C_COMPILER=sdcc ..
If you want to try this, you need cmake cvs:
While compiling sdcc I noticed that you have at least three build systems:
autotools, makefiles for bcc, MSVC project files.
Did you consider switching to CMake for building sdcc ?
It supports all these platforms and more. This means you get from one set of
cmake files your makefiles on UNIX or for bcc and Visual Studio files on