[10134] MaNGOS 0.16 release.
[getmangos.git] / src / shared / SystemConfig.h.in
blob45d1a0bdd961c1bf7cfbb1af74d4e95afac63084
1 /*
2 * Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef MANGOS_SYSTEMCONFIG_H
20 #define MANGOS_SYSTEMCONFIG_H
22 #ifndef _PACKAGENAME
23 #define _PACKAGENAME "MaNGOS"
24 #endif
26 #include "Platform/Define.h"
28 #ifndef _VERSION
29 #if PLATFORM == PLATFORM_WINDOWS
30 # define _VERSION(REVD,REVT,REVN,REVH) "0.16.1" " (" REVD " " REVT " Revision " REVN " - " REVH ")"
31 #else
32 # define _VERSION(REVD,REVT,REVN,REVH) "@VERSION@" " (" REVD " " REVT " Revision " REVN " - " REVH ")"
33 #endif
34 #endif
36 // Format is YYYYMMDDRR where RR is the change in the conf file
37 // for that day.
38 #ifndef _MANGOSDCONFVERSION
39 # define _MANGOSDCONFVERSION 2010062001
40 #endif
41 #ifndef _REALMDCONFVERSION
42 # define _REALMDCONFVERSION 2010062001
43 #endif
45 #if MANGOS_ENDIAN == MANGOS_BIGENDIAN
46 # define _ENDIAN_STRING "big-endian"
47 #else
48 # define _ENDIAN_STRING "little-endian"
49 #endif
51 #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86)
52 # define ARCHITECTURE "x32"
53 #elif defined(__amd64) || defined(__amd64__) || defined(__x86_64) || defined(_M_X64)
54 # define ARCHITECTURE "x64"
55 #elif defined(__ia64) || defined(__IA64__) || defined(_M_IA64)
56 # define ARCHITECTURE "IA64"
57 #else
58 # define ARCHITECTURE "x32"
59 #endif
61 // The path to config files
62 #ifndef SYSCONFDIR
63 # define SYSCONFDIR ""
64 #endif
66 #if PLATFORM == PLATFORM_WINDOWS
67 # ifdef _WIN64
68 # define _ENDIAN_PLATFORM "Win64 (" _ENDIAN_STRING ")"
69 # else
70 # define _ENDIAN_PLATFORM "Win32 (" _ENDIAN_STRING ")"
71 # endif
72 # define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
73 # define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
74 #else
75 # if defined (__FreeBSD__)
76 # define _ENDIAN_PLATFORM "FreeBSD_"ARCHITECTURE" (" _ENDIAN_STRING ")"
77 # elif defined(__NetBSD__)
78 # define _ENDIAN_PLATFORM "NetBSD_"ARCHITECTURE" (" _ENDIAN_STRING ")"
79 # elif defined(__OpenBSD__)
80 # define _ENDIAN_PLATFORM "OpenBSD_"ARCHITECTURE" (" _ENDIAN_STRING ")"
81 # elif defined(__DragonFly__)
82 # define _ENDIAN_PLATFORM "DragonFlyBSD_"ARCHITECTURE" (" _ENDIAN_STRING ")"
83 # elif defined(__APPLE__)
84 # define _ENDIAN_PLATFORM "MacOSX_"ARCHITECTURE" (" _ENDIAN_STRING ")"
85 # elif defined(__linux) || defined(__linux__)
86 # define _ENDIAN_PLATFORM "Linux_"ARCHITECTURE" (" _ENDIAN_STRING ")"
87 # else
88 # define _ENDIAN_PLATFORM "Unix_"ARCHITECTURE" (" _ENDIAN_STRING ")"
89 # endif
90 # define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
91 # define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
92 #endif
94 #define _FULLVERSION(REVD,REVT,REVN,REVH) _PACKAGENAME "/" _VERSION(REVD,REVT,REVN,REVH) " for " _ENDIAN_PLATFORM
96 #define DEFAULT_PLAYER_LIMIT 100
97 #define DEFAULT_WORLDSERVER_PORT 8085 //8129
98 #define DEFAULT_REALMSERVER_PORT 3724
99 #define DEFAULT_SOCKET_SELECT_TIME 10000
100 #endif