From c41cb82ea7499c132546c1ab6f798deda6a9d7af Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Fri, 22 Dec 2017 16:55:39 +0100 Subject: Squashed 'hidapi/' content from commit b767b43f git-subtree-dir: hidapi git-subtree-split: b767b43f3e6f9c5b92ea7d738331deb8e03c4baf --- windows/ddk_build/.gitignore | 2 ++ windows/ddk_build/hidapi.def | 17 +++++++++++++++ windows/ddk_build/makefile | 49 ++++++++++++++++++++++++++++++++++++++++++++ windows/ddk_build/sources | 23 +++++++++++++++++++++ 4 files changed, 91 insertions(+) create mode 100644 windows/ddk_build/.gitignore create mode 100644 windows/ddk_build/hidapi.def create mode 100644 windows/ddk_build/makefile create mode 100644 windows/ddk_build/sources (limited to 'windows/ddk_build') diff --git a/windows/ddk_build/.gitignore b/windows/ddk_build/.gitignore new file mode 100644 index 0000000..823ff0b --- /dev/null +++ b/windows/ddk_build/.gitignore @@ -0,0 +1,2 @@ +*.log +obj*_*_* \ No newline at end of file diff --git a/windows/ddk_build/hidapi.def b/windows/ddk_build/hidapi.def new file mode 100644 index 0000000..05e35af --- /dev/null +++ b/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/windows/ddk_build/makefile b/windows/ddk_build/makefile new file mode 100644 index 0000000..637f712 --- /dev/null +++ b/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/windows/ddk_build/sources b/windows/ddk_build/sources new file mode 100644 index 0000000..7f06a09 --- /dev/null +++ b/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" + -- cgit v1.2.1