summaryrefslogtreecommitdiff
path: root/ddk_build.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'ddk_build.cmd')
-rw-r--r--ddk_build.cmd10
1 files changed, 9 insertions, 1 deletions
diff --git a/ddk_build.cmd b/ddk_build.cmd
index 4ce38bd..23f2711 100644
--- a/ddk_build.cmd
+++ b/ddk_build.cmd
@@ -8,9 +8,17 @@ set version=1.0
cd libusb\os
rem DLL or static lib selection (must use concatenation)
+if Test%1==TestDLL goto libusb_dll
+:libusb_static
set TARGET=LIBRARY
-if Test%1==TestDLL set TARGET=DYNLINK
+set LIBDEF=
+goto libusb_common
+:libusb_dll
+set TARGET=DYNLINK
+set LIBDEF=/DLIBUSB_DLL_BUILD
+:libusb_common
echo TARGETTYPE=%TARGET% > target
+echo LIBUSB_DEFINES=%LIBDEF% >> target
copy target+libusb_sources sources >NUL 2>&1
del target
@echo on