blob: 69b7c551694e99ea1498e8b214b138fe229560f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef PATH_H
#define PATH_H
#include "main.h"
#cmakedefine USE_MAGICK
#ifdef BUILD_PACKAGE
#define PACKAGE_PREFIX "../"
#else /* BUILD_PACKAGE */
#define PACKAGE_PREFIX ""
#endif /* BUILD_PACKAGE */
#define TUXANCI_VERSION "@TUXANCI_VERSION@"
#define PREFIX PACKAGE_PREFIX "@CMAKE_INSTALL_PREFIX@" "/"
#define APPNAME "@APPNAME@"
#ifdef PUBLIC_SERVER
#define SERVER_CONFIG PREFIX "@CMAKE_CONF_PATH@" "/" APPNAME "/server.conf"
#endif /* PUBLIC_SERVER */
#define PATH_DIR PREFIX "@CMAKE_DATA_PATH@" "/" APPNAME "/"
/* windows bug */
#ifndef __WIN32__
#define PATH_MODULES PREFIX "@LIB_INSTALL_DIR@" "/" APPNAME "/"
#else /* __WIN32__ */
#define PATH_MODULES PREFIX
#endif /* __WIN32__ */
#define PATH_IMAGE PATH_DIR "images/"
#define PATH_ARENA PATH_DIR "arena/"
#define PATH_SOUND PATH_DIR "sound/"
#define PATH_MUSIC PATH_DIR "music/"
#define PATH_LOCALE PREFIX "@CMAKE_LOCALE_PATH@" "/"
#define PATH_DOC PREFIX "@CMAKE_DOC_PATH@" "/"
#define PACKAGE "tuxanci"
#endif /* PATH_H */
|