Library and header file organisation

Discussion of ideas for features and new projects based on POCO.
simonpriceuk
Posts: 1
Joined: 10 Dec 2010, 21:56

Library and header file organisation

Postby simonpriceuk » 10 Dec 2010, 22:03

Hi,

I find the organisation of the libraries and headers in 1.3x cause me great problems, it would be great to
have all the files that are needed to compile and link against in a simple directory structure.


\inc // contains all include files
\lib // contains all library files

This would make separating these directories easier for distribution in source control .

Simon Price

guenter
Posts: 1190
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Library and header file organisation

Postby guenter » 10 Dec 2010, 22:13

If you do a make install on Linux/Unix, you'll get exactly that. This will copy all headers into a common base directory:

Code: Select all

include-base/
    Poco/
        XML/
        Util/
        Net/
        ...



Right now, the distribution package matches our internal project organization in our source code repository, where we prefer to keep the headers of the different libs separate. However, writing a small script that places all headers in a single include directory shouldn't be too much work if you need it that way. Just make sure you keep the subdirectories (Poco, Poco/XML, Poco/Util, etc.).


Return to “Wishlist”

Who is online

Users browsing this forum: No registered users and 1 guest

cron