SDL libs include files location?

Hi, i’m working on a small lib for SDL, and now i’m wondering where i
should tell the installer to put the include files ? Should i put my
header (only one file) in the include/SDL dir, or is that only for
official stuff ?

Btw, the lib i’m working on (which is not done btw) is a tiny gui
base library, but kinda without the gui part (eh =) … The idea is to
have a library that provides only the most basic functionality needed
for a gui (like events when pressing a button, etc). That way it will
be small, fast, and can even be used for all portions of a game
(fancy flashy buttons in the menu, simple clicking of items in the
game, etc).–
Trick


Linux User #229006 * http://counter.li.org

“Trick” schrieb im Newsbeitrag news:mailman.1000607285.2730.sdl at libsdl.org

Hi, i’m working on a small lib for SDL, and now i’m wondering where i
should tell the installer to put the include files ? Should i put my
header (only one file) in the include/SDL dir, or is that only for
official stuff ?

I would made it that way:

Create a subdirectory with the name of your lib like tinygui or so.
Create a tinygui-config that works similar like the sdl-config.

CU

Some compilers don’t support #include “path/file.h” syntax by
default
(like Apple’s MPW)
You can do that, but just be aware that you may need to #ifdef the
include in some environments.

I get away with dropping the header in the SDL include directory,
but I can understand why you would want your own directory.

Actually, i would be fine with just dropping the header in the SDL
include directory, specially since it’s only one file, but i don’t
know if i’m allowed to do that (ie. don’t know if that dir is only
for official stuff).

Does this mean that i can just drop it in there and let it live in
happy harmony with all of your official headers ? =)–
Trick


Linux User #229006 * http://counter.li.org