diff options
author | Pete Batard <pbatard> | 2010-03-29 15:41:22 +0100 |
---|---|---|
committer | Pete Batard <pbatard> | 2010-03-29 15:41:22 +0100 |
commit | 99587b5e2d51a5084ac5d42b5da67c6701b80f87 (patch) | |
tree | 270c72b8b0cbee74703fdc2117016db6ccc157cd /ddk_build.cmd | |
parent | db8c3ff754977a44b9d1b46314ad842a0f20ef0d (diff) | |
download | libusb-99587b5e2d51a5084ac5d42b5da67c6701b80f87.tar.gz |
ddk_build improvements (DLL option, static lib default)r230
Diffstat (limited to 'ddk_build.cmd')
-rw-r--r-- | ddk_build.cmd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ddk_build.cmd b/ddk_build.cmd index 2c5dcf8..4ce38bd 100644 --- a/ddk_build.cmd +++ b/ddk_build.cmd @@ -1,9 +1,18 @@ @echo off + +rem default builds static library. Pass argument 'DLL' to build a DLL + if Test%BUILD_ALT_DIR%==Test goto usage set version=1.0 cd libusb\os +rem DLL or static lib selection (must use concatenation) +set TARGET=LIBRARY +if Test%1==TestDLL set TARGET=DYNLINK +echo TARGETTYPE=%TARGET% > target +copy target+libusb_sources sources >NUL 2>&1 +del target @echo on build -cwgZ @echo off @@ -41,8 +50,10 @@ md %dstPath%\examples :md6 @echo on +@if NOT Test%1==TestDLL goto copylib copy %srcPath%\libusb-%version%.dll %dstPath%\dll copy %srcPath%\libusb-%version%.pdb %dstPath%\dll +:copylib copy %srcPath%\libusb-%version%.lib %dstPath%\lib @echo off @@ -108,6 +119,7 @@ goto done :usage echo ddk_build must be run in a WDK build environment +pause goto done :done
\ No newline at end of file |