forked from google/libhoth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
82 lines (72 loc) · 1.44 KB
/
BUILD
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package(default_visibility = ["//visibility:public"])
cc_library(
name = "libhoth",
srcs = ["libhoth.c"],
hdrs = ["libhoth.h"],
)
cc_library(
name = "git_version",
hdrs = [":gen_version_header"],
)
genrule(
name = "gen_version_header",
outs = ["git_version.h"],
cmd = "$(location :print_version_header.sh) > \"$@\"",
tools = [":print_version_header.sh"],
stamp = 1,
)
cc_library(
name = "libhoth_ec",
hdrs = ["libhoth_ec.h"],
)
cc_library(
name = "libhoth_mtd",
srcs = ["libhoth_mtd.c"],
hdrs = ["libhoth_mtd.h"],
deps = [
":libhoth",
":libhoth_ec",
],
)
cc_library(
name = "libhoth_spi",
srcs = ["libhoth_spi.c"],
hdrs = ["libhoth_spi.h"],
deps = [
":libhoth",
":libhoth_ec",
],
)
cc_library(
name = "libhoth_usb",
srcs = ["libhoth_usb.c"],
hdrs = ["libhoth_usb.h"],
deps = [
":libhoth",
":libhoth_usb_device",
"@libusb//:libusb",
],
)
cc_library(
name = "libhoth_dbus",
srcs = ["libhoth_dbus.c"],
hdrs = ["libhoth_dbus.h"],
linkopts = ["-lsystemd"],
defines = ["DBUS_BACKEND"],
deps = [
":libhoth",
],
)
cc_library(
name = "libhoth_usb_device",
srcs = [
"libhoth_usb_fifo.c",
"libhoth_usb_mailbox.c",
],
hdrs = ["libhoth_usb_device.h"],
deps = [
":libhoth",
":libhoth_ec",
"@libusb//:libusb",
],
)