|
Packit |
9fa00c |
Building neon on Windows uses a single Nmake neon.mak file. By
|
|
Packit |
9fa00c |
placing various parameters on nmake's command line, you can specify
|
|
Packit |
9fa00c |
exactly the features and behavior of the Neon libraries. The
|
|
Packit |
9fa00c |
parameters are additive, so to add more features, add the command line
|
|
Packit |
9fa00c |
options specified in the particular section below.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
All the builds described below should work with Microsoft VC++ 5 and
|
|
Packit |
9fa00c |
6.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Build neon
|
|
Packit |
9fa00c |
__________
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
This is the most basic version of the Neon library you can build. It
|
|
Packit |
9fa00c |
does not require any third party libraries, but you do not get the
|
|
Packit |
9fa00c |
full capabilities of Neon.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Compile Neon with no parameters
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
nmake /f neon.mak
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
After compiling the library, the directory contains libneon.lib,
|
|
Packit |
9fa00c |
against which you can link your program.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Build neon with WebDAV support
|
|
Packit |
9fa00c |
______________________________
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
To compile Neon with WebDAV support, Neon must compile and link
|
|
Packit |
9fa00c |
against a third-party XML parser, either expat, expat-lite, libxml or
|
|
Packit |
9fa00c |
libxml2. This Windows neon.mak file is designed to compile and link
|
|
Packit |
9fa00c |
against the pre-built Expat Windows libraries version 1.95.X or newer.
|
|
Packit |
9fa00c |
This library is available for download from
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
http://sourceforge.net/projects/expat/
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Download the latest expat_win32bin package named
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
expat_win32bin_X_YY_Z.exe
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
and install it on your system. It wants to install itself into
|
|
Packit |
9fa00c |
Q:\some\dir\Expat-X.Y.ZZ. Choose your installation location for expat
|
|
Packit |
9fa00c |
and then compile Neon with
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
nmake /f neon.mak EXPAT_SRC=\path\to\Expat-X.YY.Z
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
NOTE: When you run your program make sure the LIBEXPAT.DLL from expat
|
|
Packit |
9fa00c |
is accessible, i.e. is in your PATH.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
This should work with Microsoft VC++ 5 and 6.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Build neon with dynamically linked SSL support
|
|
Packit |
9fa00c |
______________________________________________
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
To build neon on Windows with SSL support you need OpenSSL already
|
|
Packit |
9fa00c |
installed on your system (I used OpenSSL 0.9.7g). It can be
|
|
Packit |
9fa00c |
downloaded from
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
http://www.openssl.org/source/openssl-0.9.7g.tar.gz
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
After compiling OpenSSL, now simply point make to the OpenSSL sources:
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
nmake /f neon.mak OPENSSL_SRC=\path\to\openssl
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
NOTE: The include files for OpenSSL reside in inc32/ directory
|
|
Packit |
9fa00c |
("../openssl-0.9.7g/inc32").
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
NOTE: Make sure that your program is linked against libeay32.lib and
|
|
Packit |
9fa00c |
ssleay32.lib (normally in "../openssl-0.9.7g/out32dll") and that
|
|
Packit |
9fa00c |
libeay32.dll and ssleay32.dll is accessible, i.e. is in your PATH.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Build neon with statically linked OpenSSL support
|
|
Packit |
9fa00c |
_________________________________________________
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
If you want to statically link against OpenSSL, then add the
|
|
Packit |
9fa00c |
OPENSSL_STATIC parameter.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
nmake /f neon.mak OPENSSL_SRC=\path\to\openssl OPENSSL_STATIC=yes
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Build neon with statically linked Zlib support
|
|
Packit |
9fa00c |
______________________________________________
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
If you want to build Neon with the capability to decompress compressed
|
|
Packit |
9fa00c |
content, then you need to compile against the Zlib library.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Neon's neon.mak file will compile and link the Zlib sources. You need
|
|
Packit |
9fa00c |
Zlib 1.2.1 or later, as previous versions do not include build scripts
|
|
Packit |
9fa00c |
for Win32.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Here's how to compile in Zlib support.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
1) Get one of the Zlib source file packages in Zip format from
|
|
Packit |
9fa00c |
http://www.gzip.org/zlib/; for example,
|
|
Packit |
9fa00c |
http://www.gzip.org/zlib/zlib121.zip
|
|
Packit |
9fa00c |
2) Unzip it.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Now add the ZLIB_SRC parameter to Neon's neon.mak pointing to your
|
|
Packit |
9fa00c |
newly compiled zlib.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
nmake /f neon.mak ZLIB_SRC=\path\to\zlib
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Build neon with dynamically linked Zlib support
|
|
Packit |
9fa00c |
_______________________________________________
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
To build Neon with dynamically linked Zlib support, use the
|
|
Packit |
9fa00c |
instructions for the statically linked Zlib support above and add the
|
|
Packit |
9fa00c |
ZLIB_DLL parameter
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
nmake /f neon.mak ZLIB_SRC=\path\to\zlib ZLIB_DLL=yes
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Build neon with IPv6 support
|
|
Packit |
9fa00c |
____________________________
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
To build neon with support for IPv6, use parameter ENABLE_IPV6.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
nmake /f neon.mak ENABLE_IPV6=yes
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
This requires a copy of the Platform SDK which contains the IPv6
|
|
Packit |
9fa00c |
headers and libraries.
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Build neon with debugging support
|
|
Packit |
9fa00c |
_________________________________
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
Set the DEBUG_BUILD parameter
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
nmake /f neon.mak DEBUG_BUILD=yes
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
It does not matter what value DEBUG_BUILD is set to, as long as it is
|
|
Packit |
9fa00c |
not set to "".
|
|
Packit |
9fa00c |
|
|
Packit |
9fa00c |
After compiling the library, the directory contains libneonD.lib,
|
|
Packit |
9fa00c |
against which you can link your program.
|