diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-12-22 16:55:39 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-12-22 16:55:39 +0100 |
commit | 461f7a6b597b27348c2ca1084d51ad4c95c65dd3 (patch) | |
tree | be07b1bc2a349d560c14c5d9e65606f500f9300d /hidapi/windows/ddk_build | |
parent | 8284c928e8fa2df8fbc6a1508e8411c6bfd48533 (diff) | |
parent | c41cb82ea7499c132546c1ab6f798deda6a9d7af (diff) | |
download | libnitrokey-461f7a6b597b27348c2ca1084d51ad4c95c65dd3.tar.gz libnitrokey-461f7a6b597b27348c2ca1084d51ad4c95c65dd3.tar.bz2 |
Merge commit 'c41cb82ea7499c132546c1ab6f798deda6a9d7af' as 'hidapi'
Diffstat (limited to 'hidapi/windows/ddk_build')
-rw-r--r-- | hidapi/windows/ddk_build/.gitignore | 2 | ||||
-rw-r--r-- | hidapi/windows/ddk_build/hidapi.def | 17 | ||||
-rw-r--r-- | hidapi/windows/ddk_build/makefile | 49 | ||||
-rw-r--r-- | hidapi/windows/ddk_build/sources | 23 |
4 files changed, 91 insertions, 0 deletions
diff --git a/hidapi/windows/ddk_build/.gitignore b/hidapi/windows/ddk_build/.gitignore new file mode 100644 index 0000000..823ff0b --- /dev/null +++ b/hidapi/windows/ddk_build/.gitignore @@ -0,0 +1,2 @@ +*.log +obj*_*_*
\ No newline at end of file diff --git a/hidapi/windows/ddk_build/hidapi.def b/hidapi/windows/ddk_build/hidapi.def new file mode 100644 index 0000000..05e35af --- /dev/null +++ b/hidapi/windows/ddk_build/hidapi.def @@ -0,0 +1,17 @@ +LIBRARY hidapi +EXPORTS + hid_open @1 + hid_write @2 + hid_read @3 + hid_close @4 + hid_get_product_string @5 + hid_get_manufacturer_string @6 + hid_get_serial_number_string @7 + hid_get_indexed_string @8 + hid_error @9 + hid_set_nonblocking @10 + hid_enumerate @11 + hid_open_path @12 + hid_send_feature_report @13 + hid_get_feature_report @14 +
\ No newline at end of file diff --git a/hidapi/windows/ddk_build/makefile b/hidapi/windows/ddk_build/makefile new file mode 100644 index 0000000..637f712 --- /dev/null +++ b/hidapi/windows/ddk_build/makefile @@ -0,0 +1,49 @@ +############################################################################# +# +# Copyright (C) Microsoft Corporation 1995, 1996 +# All Rights Reserved. +# +# MAKEFILE for HID directory +# +############################################################################# + +!IFDEF WIN95_BUILD + +ROOT=..\..\..\.. + +VERSIONLIST = debug retail +IS_32 = TRUE +IS_SDK = TRUE +IS_PRIVATE = TRUE +IS_SDK = TRUE +IS_DDK = TRUE +WIN32 = TRUE +COMMONMKFILE = hidapi.mk + +!include $(ROOT)\dev\master.mk + + +!ELSE + +# +# DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source +# file to this component. This file merely indirects to the real make file +# that is shared by all the driver components of the Windows NT DDK +# + +!IF DEFINED(_NT_TARGET_VERSION) +! IF $(_NT_TARGET_VERSION)>=0x501 +! INCLUDE $(NTMAKEENV)\makefile.def +! ELSE +# Only warn once per directory +! INCLUDE $(NTMAKEENV)\makefile.plt +! IF "$(BUILD_PASS)"=="PASS1" +! message BUILDMSG: Warning : The sample "$(MAKEDIR)" is not valid for the current OS target. +! ENDIF +! ENDIF +!ELSE +! INCLUDE $(NTMAKEENV)\makefile.def +!ENDIF + +!ENDIF + diff --git a/hidapi/windows/ddk_build/sources b/hidapi/windows/ddk_build/sources new file mode 100644 index 0000000..7f06a09 --- /dev/null +++ b/hidapi/windows/ddk_build/sources @@ -0,0 +1,23 @@ +TARGETNAME=hidapi +TARGETTYPE=DYNLINK +UMTYPE=console +UMENTRY=main + +MSC_WARNING_LEVEL=/W3 /WX + +TARGETLIBS=$(SDK_LIB_PATH)\hid.lib \ + $(SDK_LIB_PATH)\setupapi.lib \ + $(SDK_LIB_PATH)\kernel32.lib \ + $(SDK_LIB_PATH)\comdlg32.lib + +USE_MSVCRT=1 + +INCLUDES= ..\..\hidapi +SOURCES= ..\hid.c \ + + +TARGET_DESTINATION=retail + +MUI=0 +MUI_COMMENT="HID Interface DLL" + |