Bookmark :WDK/DDK with Visual Studio

http://www.hollistech.com/Resources/ddkbuild/ddkbuild.htm

ddkbuild 可以將 DDK 的開發 透過Visual Studio 的IDE環境來管理專案

用習慣SlickEdit/Source Insight 的人應該也可以用.(用SlickEdit 確認過了, 可用)

依安裝的DDK/WDF版本要設定一個環境變數, 個人現在測試WDK 6001版,安裝於C:\WinDDK6001.18001下, 所以要有下面的環境變數

set WLHBASE=C:\WinDDK6001.18001

用SlickEdit的話, 可以用Workspace 的Properties 加進去, 不過要重開SlickEdit 2008 才行, 不是像它自己說重開Workspace就行了, 不知道是不是Bug 之一


DDKBUILD VERSION 3.14 FREEWARE FROM HOLLIS TECHNOLOGY SOLUTIONS

Comments? Suggestions? info@hollistech.com

usage: ddkbuild [-debug|-quiet|-verbose] "TARGET" "checked | free" "directory" [flags]

-debug
turns on script echoing for debug purposes

-quiet
supresses almost all output from ddkbuild itself.

-verbose
ddkbuild annotes most of what it does

TARGET
can be any of the following combinations of DDK version and platform OS:

-WLH
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build Vista or W2K8 x86 binaries (optional.)

-WLH64
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build IA64 W2K8 binaries (optional Untested.)

-WLHA64
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build AMD64 (X64) Vista or W2K8 binaries (optional.)

-WLHNET
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build W2K3SP1 binaries (optional.)

-WLHNET64
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build IA64 W2K3SP1 binaries (optional.)

-WLHNETA64
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build AMD64 (X64) W2K3SP1 binaries (optional.)

-WLHXP
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build X86 XP binaries (optional.)

-WLHXP64
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build IA64 XP binaries (optional.)

-WLHW2K
indicates development system uses the WHLBASE environment variable to locate WDK versions 6000 or 6001 and build X86 W2K binaries (optional.)

-WNET
indicates development system uses WNETBASE environment variable to locate the .Net ddk and builds .net binaries (optional.)

-WNETW2K
indicates development system uses the WNETBASE environment variable to locate the .Net ddk and builds W2K binaries (optional.)

-WNETXP
indicates development system uses WNETBASE environment variable to locate the .Net (W2K3SP1) ddk and builds xp binaries (optional.)

-WNET64
indicates development system uses WNETBASE environment variable to locate the .Net (W2K3SP1) ddk and builds 64bit binaries (optional.)

WNETA64
indicates development system uses WNETBASE environment variable to locate the .Net (W2K3SP1) ddk and builds AMD 64bit binaries (optional.)

-prefast
run prefast rather than a normal build

checked
indicates a checked build.

free
indicates a free build (must choose one or the other of free or checked.)

directory
path to driver source directory. Try . (cwd).

flags
any random flags or arguments you think should be passed to build (note that the visual studio /a for clean build is translated to the equivalent build flag.)
Note also that multiple arguments can be specified by using quotes to contain the set of arguments, as in "-Z foo blortz w2k xp"

example: ddkbuild -WLHXP checked .

NOTE: avoid spaces and other odd characters in pathnames.

廣告

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: