sm-zombiereloaded-3/compiling.txt

31 lines
933 B
Plaintext
Raw Normal View History

This plugin has a command for dumping detailed version info (zr_version) based
on info from a automatically generated file (hgversion.h.inc).
There's a script that generate this file and must be executed every time before
compiling:
2009-12-23 18:22:16 +01:00
Linux: updateversion.sh
Windows: updateversion.bat (Executes updateversion.sh using Cygwin)
2009-12-23 18:22:16 +01:00
Mercurial (or TortoiseHG) must be installed for this script to work. If you
don't have Mercurial, there's an option to disable version info. In
zombiereloaded.sp there's a line like this:
2009-12-23 18:22:16 +01:00
#define ADD_VERSION_INFO
2009-12-23 18:22:16 +01:00
To disable it, comment that line like this:
2009-12-23 18:22:16 +01:00
//#define ADD_VERSION_INFO
2009-12-23 18:22:16 +01:00
Then you should be able to compile without hgversion.h.inc.
2009-12-23 18:22:16 +01:00
On linux use the makefile to compile since that one will do most of the work.
Make sure you clean any existing builds before compiling:
2009-12-23 18:22:16 +01:00
make clean
make
2009-12-23 18:22:16 +01:00
For compiling on windows, run:
2009-12-23 18:22:16 +01:00
compile.bat