Commit graph

10 commits

Author SHA1 Message Date
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