summaryrefslogtreecommitdiffstats
path: root/usb
diff options
context:
space:
mode:
authorSteven Moreland2017-09-22 16:10:47 -0500
committerSteven Moreland2017-09-25 13:35:56 -0500
commit26a0bb27627c43b599a7807ecf5ec594a525660a (patch)
treede18c34fd98b50e3172080fe7a40e52282d8da4c /usb
parent7728f0ce5c7f7da067a446531b80d199bcd5c849 (diff)
downloadplatform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.tar.gz
platform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.tar.xz
platform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.zip
Update makefiles for hidl adapter.
Bug: 37518178 Test: manual Change-Id: I50e999907d3c64d2b039272b823971998da64d1b
Diffstat (limited to 'usb')
-rw-r--r--usb/1.0/Android.bp75
1 files changed, 75 insertions, 0 deletions
diff --git a/usb/1.0/Android.bp b/usb/1.0/Android.bp
index afe19317..676d8ce3 100644
--- a/usb/1.0/Android.bp
+++ b/usb/1.0/Android.bp
@@ -71,3 +71,78 @@ cc_library {
71 "libutils", 71 "libutils",
72 ], 72 ],
73} 73}
74
75genrule {
76 name: "android.hardware.usb@1.0-adapter-helper_genc++",
77 tools: ["hidl-gen"],
78 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0",
79 srcs: [
80 ":android.hardware.usb@1.0_hal",
81 ],
82 out: [
83 "android/hardware/usb/1.0/AUsb.cpp",
84 "android/hardware/usb/1.0/AUsbCallback.cpp",
85 ],
86}
87
88genrule {
89 name: "android.hardware.usb@1.0-adapter-helper_genc++_headers",
90 tools: ["hidl-gen"],
91 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0",
92 srcs: [
93 ":android.hardware.usb@1.0_hal",
94 ],
95 out: [
96 "android/hardware/usb/1.0/AUsb.h",
97 "android/hardware/usb/1.0/AUsbCallback.h",
98 ],
99}
100
101
102cc_library {
103 name: "android.hardware.usb@1.0-adapter-helper",
104 defaults: ["hidl-module-defaults"],
105 generated_sources: ["android.hardware.usb@1.0-adapter-helper_genc++"],
106 generated_headers: ["android.hardware.usb@1.0-adapter-helper_genc++_headers"],
107 export_generated_headers: ["android.hardware.usb@1.0-adapter-helper_genc++_headers"],
108 vendor_available: true,
109 shared_libs: [
110 "libhidlbase",
111 "libhidltransport",
112 "libhwbinder",
113 "liblog",
114 "libutils",
115 "libcutils",
116 "libhidladapter",
117 "android.hardware.usb@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120 export_shared_lib_headers: [
121 "libhidlbase",
122 "libhidltransport",
123 "libhwbinder",
124 "libutils",
125 "libhidladapter",
126 "android.hardware.usb@1.0",
127 "android.hidl.base@1.0-adapter-helper",
128 ],
129}
130
131genrule {
132 name: "android.hardware.usb@1.0-adapter_genc++",
133 tools: ["hidl-gen"],
134 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0",
135 out: ["main.cpp"]}
136
137cc_test {
138 name: "android.hardware.usb@1.0-adapter",
139 shared_libs: [
140 "libhidladapter",
141 "libhidlbase",
142 "libhidltransport",
143 "libutils",
144 "android.hardware.usb@1.0",
145 "android.hardware.usb@1.0-adapter-helper",
146 ],
147 generated_sources: ["android.hardware.usb@1.0-adapter_genc++"],
148}