|
kusano |
fc6ab3 |
This directory contains a .Net wrapper class library for the ZLib1.dll
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
The wrapper includes support for inflating/deflating memory buffers,
|
|
kusano |
fc6ab3 |
.Net streaming wrappers for the gz streams part of zlib, and wrappers
|
|
kusano |
fc6ab3 |
for the checksum parts of zlib. See DotZLib/UnitTests.cs for examples.
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
Directory structure:
|
|
kusano |
fc6ab3 |
--------------------
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
LICENSE_1_0.txt - License file.
|
|
kusano |
fc6ab3 |
readme.txt - This file.
|
|
kusano |
fc6ab3 |
DotZLib.chm - Class library documentation
|
|
kusano |
fc6ab3 |
DotZLib.build - NAnt build file
|
|
kusano |
fc6ab3 |
DotZLib.sln - Microsoft Visual Studio 2003 solution file
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
DotZLib\*.cs - Source files for the class library
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
Unit tests:
|
|
kusano |
fc6ab3 |
-----------
|
|
kusano |
fc6ab3 |
The file DotZLib/UnitTests.cs contains unit tests for use with NUnit 2.1 or higher.
|
|
kusano |
fc6ab3 |
To include unit tests in the build, define nunit before building.
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
Build instructions:
|
|
kusano |
fc6ab3 |
-------------------
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
1. Using Visual Studio.Net 2003:
|
|
kusano |
fc6ab3 |
Open DotZLib.sln in VS.Net and build from there. Output file (DotZLib.dll)
|
|
kusano |
fc6ab3 |
will be found ./DotZLib/bin/release or ./DotZLib/bin/debug, depending on
|
|
kusano |
fc6ab3 |
you are building the release or debug version of the library. Check
|
|
kusano |
fc6ab3 |
DotZLib/UnitTests.cs for instructions on how to include unit tests in the
|
|
kusano |
fc6ab3 |
build.
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
2. Using NAnt:
|
|
kusano |
fc6ab3 |
Open a command prompt with access to the build environment and run nant
|
|
kusano |
fc6ab3 |
in the same directory as the DotZLib.build file.
|
|
kusano |
fc6ab3 |
You can define 2 properties on the nant command-line to control the build:
|
|
kusano |
fc6ab3 |
debug={true|false} to toggle between release/debug builds (default=true).
|
|
kusano |
fc6ab3 |
nunit={true|false} to include or esclude unit tests (default=true).
|
|
kusano |
fc6ab3 |
Also the target clean will remove binaries.
|
|
kusano |
fc6ab3 |
Output file (DotZLib.dll) will be found in either ./DotZLib/bin/release
|
|
kusano |
fc6ab3 |
or ./DotZLib/bin/debug, depending on whether you are building the release
|
|
kusano |
fc6ab3 |
or debug version of the library.
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
Examples:
|
|
kusano |
fc6ab3 |
nant -D:debug=false -D:nunit=false
|
|
kusano |
fc6ab3 |
will build a release mode version of the library without unit tests.
|
|
kusano |
fc6ab3 |
nant
|
|
kusano |
fc6ab3 |
will build a debug version of the library with unit tests
|
|
kusano |
fc6ab3 |
nant clean
|
|
kusano |
fc6ab3 |
will remove all previously built files.
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
---------------------------------
|
|
kusano |
fc6ab3 |
Copyright (c) Henrik Ravn 2004
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
Use, modification and distribution are subject to the Boost Software License, Version 1.0.
|
|
kusano |
fc6ab3 |
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|