Commit graph

18 commits

Author SHA1 Message Date
HarpyWar
34262706ea reorganize files, only pvpgn source here now 2014-02-03 11:02:09 +04:00
HarpyWar
52302c1bf4 (changes from pvpgn magic builder)
- corrected cmake build under Windows
- added cmake module to build with ODBC
- fixed Russian MOTD
- added latest versioncheck.conf
2012-04-29 12:13:10 +04:00
dizzy
b853497d14 Added more paths for PostgreSQL includes (to support debian4), removed
useless separate sqlite3.h check, disable strict ISO C++ conformance 
when compiling with MySQL headers which contain a "long long" reference 
that breaks conformance.
2007-09-04 19:01:17 +00:00
dizzy
8a538ca23c Added PostgreSQL storage support option for cmake for Unices (on Windows
we will need some registry readings or lookup directory within src 
path). Also fixed issues with mysql/sqlite finding scripts that were 
ignoring some attributes (like REQUIRED which makes it error if it 
cannot find it).
2007-08-27 20:02:18 +00:00
dizzy
229f057fd3 Do not enable "-ansi -pedantic" on MSVC too because it seems to accept
it but it will fail later using rc.exe. Also reverted a tempted fix for 
not converting endlines with COPYONLY which was breaking an issue with 
sql_db_layout files.
2007-08-27 18:30:46 +00:00
dizzy
e212deccd7 On MinGW when one uses "-ansi" (or "-std=c++98) the gcc defined
__STRICT_ANSI__ define is used to not declare most of it's POSIX system 
emulation API but declare only ISO library functions. This is of course 
completely braindead as -ansi is used to tell the compiler to make sure 
the code is standard compliant not that the code uses ONLY standard 
library features (the 2 notions are not the same thing). So disable 
strict ANSI mode for MINGW.
2007-08-26 09:19:58 +00:00
dizzy
ee68d8efc7 Updated supportfile.conf with the removed files. Fixed spaces in
bnetd/d2cs/d2dbs paths (quoting the paths). Moved SQL/ZLIB includes to 
bnetd only as it's the only target needing it. Modified FindMySQL cmake 
module to try to locate MySQL header/lib location using registry keys 
(needs testing).
2007-08-23 21:01:05 +00:00
pandaemonium
9e548ea932 After some investigations its seems like I have found a better approach to make getpid() portable - just include the correct header on win32 machines... 2007-08-23 17:59:48 +00:00
dizzy
443309c5db Second try for the hardcoded configs default path, this time putting
them in config.h where having spaces in path shouldnt matter. Removed 
the old solution. Also removed the base source dir from searched 
included paths because it's not needed (we only need base binary dir for 
"config.h") and it was "hiding" the config.h from the out of source 
build because #include saw a config.h (generated from an autotools 
build) in the source dir first.
2007-08-23 07:44:18 +00:00
pandaemonium
c01cda9d1b now finally warnings are reduced down to a usefull subset 2007-08-22 18:26:09 +00:00
dizzy
bdf36b56ec Added _CRT_SECURE_NO_DEPRECATE=1 define for MSVC because it generates
warnings for every function that could possibly be used in buffer 
overflow conditions (just issue a warning for the whole language then if 
you ask me...).
2007-08-22 18:17:47 +00:00
dizzy
a78e7bfaf1 Whoops, fixed a type (ws_32 instead of ws2_32) introduced by some
reorganizations of yesterday. The code still compiled on native win32 
compilers but not with mingw which only offers ws2_32.
2007-08-22 14:41:01 +00:00
dizzy
21301dc641 Added install support for almost everything. Still not sure how to make
cmake create some empty directories not present in the source. Will 
investigate further (needed for the various /var empty directories pvpgn 
needs to make on install).
2007-08-21 19:43:03 +00:00
dizzy
f804373e76 Added minimum version requirement for cmake and setting useful
installation variables that will be used with the various install() 
commands.
2007-08-21 16:39:11 +00:00
dizzy
f90df914be Moved the "ws_32" dependency decision in ConfigureChecks, also added
some other network libraries detection and dependency (as we have in 
configure.ac) and more cleaning.
2007-08-20 17:03:20 +00:00
dizzy
e94c4d52a1 Cleaned up some more cmake stuff. Testing is needed on win32 that this
doesnt break anything and that now you properly get HAVE_SELECT and 
friends and code from src/compat could me modified to not assume a lot 
of stuff when WIN32 is present but just use the general HAVE_<function> 
checks.
2007-08-20 13:50:06 +00:00
pandaemonium
90528060fc first shot at enabling cmake based builds on win32 platform.
currently only tested with visual studio 8 (2005).
the bncdb tool is currently intentionally broken
as it was the only component relying on compat/pgetopt 
(which has been removed due to serious problems building it).
I will fix this problem tomorrow and add a common/conf based
commandline parser similar to the one used in bnetd,d2cs and d2dbs.
2007-08-19 22:50:02 +00:00
dizzy
0d0b10c552 First version of the cmake build system. Seems to be more portable and
easy to work with in non-POSIX enviroments than autotools. Still need to 
add installation support for the targets (so you can use "make install") 
and using sed to generate the config files. 
Usage:
- autogen/configure become: "cmake /path/to/pvpgnsource"; only tested in 
the current directory so far, so "cmake ."; out of source builds should 
work too in theory
- make becomes: make (suprise!)
Will update docs with more instructions if we will use it after all.
2007-08-19 11:51:53 +00:00