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:
      -
    1. Download and install the latest Windows Driver -Kit.
    2. +
    3. Download and install the latest +Windows Driver Kit.
    4. Open a Free Build Environment console (or Checked Build Environment for debugging).
    5. -
    6. In the package root directory, run the command: +
    7. 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:
    -

    -

    -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: +

      +
    1. First build the driver by running wddk-build.bat as per the +instructions above.
    2. +
    3. Open a Visual Studio Command Prompt environment
    4. +
    5. 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.
    6. +
    +NOTE: Currently only the i386 build is supported. +

    + +

    2.4 MinGW Support

    +

    +To build the WinDivert package for MinGW: +

      +
    1. First build the driver by running wddk-build.bat as per +the instructions above.
    2. +
    3. 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.
    4. +
    + +

    +

    3. Installing