[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-pkg-config
Subject:    package-uninstalled.pc
From:       lists () brachttal ! net (Andreas Volz)
Date:       2006-03-05 9:20:11
Message-ID: 20060305181221.559ca560 () frodo ! mittelerde
[Download RAW message or body]

Hi,

I'm developing a library and an application for it. So I like to use
the -uninstalled feature of pkg-config. I looked at many examples how
to use it and I think I understood it. But my library is structured
like this:

/
/include -> all headers (*.h; to be installed)
/src     -> all sources (*.cpp)

In my application I use the installed headers with:

#include <mylib/myheader.h>
...

So the problem is now, that if not installed the library headers aren't
found in the "mylib" subdirectory. Renaming the "include" dir in the
library is a bad idea, because it's yet in a public CVS. Moving is
possible if there's _really_ no other solution.

So my ideas are these:

- use #include <myheader.h> only and change the .pc file.
  -> I don't like this because of header name collision

- create a symlink in "include" dir to "../mylib"
  -> works, but not very nice for the win32 target

- changing the "include" dir to "mylib".
  -> seems to be the best solution :-(

- creating a "mylib" dir below "include" in the lib
  -> same problems in CVS :-(

What do you think? I thought the "src" and "include" directories are
very common for libraries and I didn't expect any problems. Please
advice me.

regards
Andreas

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic