forked from bearsh/hid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
c_deps.go
27 lines (23 loc) · 925 Bytes
/
c_deps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// +build dummy
// This file is part of a workaround for `go mod vendor` which won't vendor
// C files if there's no Go file in the same directory.
// This would prevent the bundled c-libs from beeing removed when vendored.
//
// This Go file imports the c directory and subdirectories where there is
// another go (named after the direcory) file which is the second part
// of this workaround.
//
// These files combined make it so `go mod vendor` behaves correctly.
// See this issue for reference: https://github.com/golang/go/issues/26366
package hid
import (
_ "github.com/bearsh/hid/hidapi"
_ "github.com/bearsh/hid/hidapi/hidapi"
_ "github.com/bearsh/hid/hidapi/libusb"
_ "github.com/bearsh/hid/hidapi/linux"
_ "github.com/bearsh/hid/hidapi/mac"
_ "github.com/bearsh/hid/hidapi/windows"
_ "github.com/bearsh/hid/libusb"
_ "github.com/bearsh/hid/libusb/libusb"
_ "github.com/bearsh/hid/libusb/libusb/os"
)