Remove DDK support files. (#333)

Deleted DDK build scripts, support files and documentation for it,
as it wasn't working of-the-box with recent tool-sets from MS anyway.

Still keeping `HIDAPI_USE_DDK` macro in the code,
as it still _can_ be used if the build configuration is setup properly.

Resolves: #49
This commit is contained in:
Ihor Dutchak 2021-09-22 13:30:23 +03:00 committed by GitHub
parent 77128aac88
commit d4888c5f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 2 additions and 109 deletions

View File

@ -106,19 +106,5 @@ To build HIDAPI using MinGW or Cygwin using Autotools, use a general Autotools
Any windows builds (MSVC or MinGW/Cygwin) are also supported by [CMake](BUILD.cmake.md).
HIDAPI can also be built using the Windows DDK (now also called the Windows
Driver Kit or WDK). This method was originally required for the HIDAPI build
but not anymore. However, some users still prefer this method. It is not as
well supported anymore but should still work. Patches are welcome if it does
not. To build using the DDK:
1. Install the Windows Driver Kit (WDK) from Microsoft.
2. From the Start menu, in the Windows Driver Kits folder, select Build
Environments, then your operating system, then the x86 Free Build
Environment (or one that is appropriate for your system).
3. From the console, change directory to the `windows/ddk_build/` directory,
which is part of the HIDAPI distribution.
4. Type build.
5. You can find the output files (DLL and LIB) in a subdirectory created
by the build system which is appropriate for your environment. On
Windows XP, this directory is `objfre_wxp_x86/i386`.
If you are looking for information regarding DDK build of HIDAPI
- the build has been broken for a while and now the support files are obsolete.

View File

@ -8,7 +8,6 @@ hdrdir = $(includedir)/hidapi
hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h
EXTRA_DIST = \
ddk_build \
hidapi.vcproj \
hidtest.vcproj \
Makefile-manual \

View File

@ -1,2 +0,0 @@
*.log
obj*_*_*

View File

@ -1,18 +0,0 @@
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
hid_get_input_report @15

View File

@ -1,49 +0,0 @@
#############################################################################
#
# 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

View File

@ -1,23 +0,0 @@
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"