diff options
| author | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-16 21:36:40 +0000 |
|---|---|---|
| committer | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-16 21:36:40 +0000 |
| commit | 83660ebd468754d59c75f6ce0f694d4f3ccce9c8 (patch) | |
| tree | 173df140702a6b3f0d7162c9aaaee9b30cba3064 /src/base/path.h.in | |
| parent | c68df329f2483d8fc9b75488c695787cd18c20a4 (diff) | |
- tuxanci pouzivaji automatickej path generator
- uz neni treba config.h (cool ne)
- celkem citelnej path.h (vic cool ne?)
git-svn-id: http://opensvn.csie.org/tuxanci_ng@202 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/path.h.in')
| -rw-r--r-- | src/base/path.h.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/base/path.h.in b/src/base/path.h.in new file mode 100644 index 0000000..93750e6 --- /dev/null +++ b/src/base/path.h.in @@ -0,0 +1,34 @@ + +#ifndef PATH_H + #cmakedefine USE_MAGICK + #define TUXANCI_VERSION "@TUXANCI_VERSION@" + #define PATH_H + #ifndef __WIN32__ + #define PREFIX "@CMAKE_INSTALL_PREFIX@" + #else + #define PREFIX ".." + #endif + #ifdef PUBLIC_SERVER + #define APPNAME "tuxanci-server" + #else + #define APPNAME "tuxanci" + #endif + #define PATH_DIR PREFIX "/share/" APPNAME "/" + #ifndef __WIN32__ + #define PATH_MODULES PREFIX "/lib/" APPNAME + #define SERVER_CONFIG "/etc/tuxanci-server/server.conf" + #else + #define PATH_MODULES PREFIX "/bin/" + #define SERVER_CONFIG PREFIX "/etc/tuxanci-server/server.conf" + #endif + #define PATH_IMAGE PATH_DIR "image/" + #define PATH_FONT PATH_DIR "font/" + #define PATH_ARENA PATH_DIR "arena/" + #define PATH_SOUND PATH_DIR "sound/" + #define PATH_MUSIC PATH_DIR "music/" + #define PATH_CONFIG PATH_DIR "conf/" + #define PATH_LANG PATH_DIR "lang/" + #define PATH_DATA PATH_DIR "doc/" + #define PATH_LOCALE PREFIX "share/locale/" + #include "main.h" +#endif |