From 7cb25b8a1e5ec25a1a543d75c46bc9ad207688ec Mon Sep 17 00:00:00 2001
From: basil00
Date: Mon, 26 Mar 2012 22:31:21 +0800
Subject: [PATCH] - Added build-system documentation
---
README | 14 +++++++++++--
doc/divert.html | 55 +++++++++++++++++++++++++++++++++++++++----------
2 files changed, 56 insertions(+), 13 deletions(-)
diff --git a/README b/README
index b810be7..135ae05 100644
--- a/README
+++ b/README
@@ -85,9 +85,19 @@ following then happens
4. Building
-----------
-In a WinDDK build environment, simply run the command:
+(1) In a WinDDK build environment, run the command:
-build -cZg
+ wddk-build.bat
+
+(2) [OPTIONAL Visual Studio 2010 support] In a VS2010 command prompt, run the
+ command:
+
+ msvc-build.bat
+
+(3) [OPTIONAL MinGW support] In Linux with MinGW cross-compiler, run the
+ command:
+
+ sh mingw-build.sh
For more detailed build instructions, see doc\divert.html
diff --git a/doc/divert.html b/doc/divert.html
index 54219ea..1ccb946 100644
--- a/doc/divert.html
+++ b/doc/divert.html
@@ -11,6 +11,8 @@
2. Building
3. Installing
4. Uninstalling
@@ -86,16 +88,16 @@ The source code for WinDivert is available for download at
To build the WinDivert package from source:
-- Download and install the latest Windows Driver
-Kit.
+- Download and install the latest
+Windows Driver Kit.
- Open a Free Build Environment console (or
Checked Build Environment for debugging).
-- In the package root directory, run the command:
+
- In the WinDivert package root directory, run the command:
-build -cZg
+wddk-build.bat
This will build the following files and place them in the
-divert\install subdirectory:
+install\WDDK subdirectory:
- WinDivert.dll: User-mode library.
- WinDivert.sys: Kernel-mode WDF/WFP call-out driver.
@@ -106,12 +108,9 @@ This will build the following files and place them in the
directory.
-
-
-MinGW version of WinDivert.dll may be built in Linux using the
-mingw-build.sh script in the root directory.
-Note that the .dll files from MinGW are incompatible with MSVC,
-and vice versa.
+NOTE: The WinDivert.dll and WinDivert.lib files
+are only compatible with programs compiled with the WDDK compiler.
+See below for Visual Studio 2010 and MinGW support.
2.2 Driver Signing
@@ -129,6 +128,40 @@ See
Test Signing a Driver Package for more information.
+2.3 Visual Studio 2010 Support
+
+To build the WinDivert package for Visual Studio 2010:
+
+- First build the driver by running wddk-build.bat as per the
+instructions above.
+- Open a Visual Studio Command Prompt environment
+- In the WinDivert package root directory, run the command:
+
+msvc-build.bat
+
+This will build Visual Studio 2010 compatible files and place them in the
+install\MSVC subdirectory.
+
+NOTE: Currently only the i386 build is supported.
+
+
+2.4 MinGW Support
+
+To build the WinDivert package for MinGW:
+
+- First build the driver by running wddk-build.bat as per
+the instructions above.
+- In Linux (with the MinGW cross-compilers installed) and in the
+WinDivert package root directory, run the command:
+
+sh mingw-build.sh
+
+This will build MinGW compatible files and place them in the
+install\MINGW subdirectory.
+
+
+
+
3. Installing