diff options
Diffstat (limited to 'audio/2.0/Android.bp')
-rw-r--r-- | audio/2.0/Android.bp | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/audio/2.0/Android.bp b/audio/2.0/Android.bp index cdaaa156..1de1cb7a 100644 --- a/audio/2.0/Android.bp +++ b/audio/2.0/Android.bp | |||
@@ -108,3 +108,91 @@ cc_library { | |||
108 | "android.hardware.audio.common@2.0", | 108 | "android.hardware.audio.common@2.0", |
109 | ], | 109 | ], |
110 | } | 110 | } |
111 | |||
112 | genrule { | ||
113 | name: "android.hardware.audio@2.0-adapter-helper_genc++", | ||
114 | tools: ["hidl-gen"], | ||
115 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio@2.0", | ||
116 | srcs: [ | ||
117 | ":android.hardware.audio@2.0_hal", | ||
118 | ], | ||
119 | out: [ | ||
120 | "android/hardware/audio/2.0/ADevice.cpp", | ||
121 | "android/hardware/audio/2.0/ADevicesFactory.cpp", | ||
122 | "android/hardware/audio/2.0/APrimaryDevice.cpp", | ||
123 | "android/hardware/audio/2.0/AStream.cpp", | ||
124 | "android/hardware/audio/2.0/AStreamIn.cpp", | ||
125 | "android/hardware/audio/2.0/AStreamOut.cpp", | ||
126 | "android/hardware/audio/2.0/AStreamOutCallback.cpp", | ||
127 | ], | ||
128 | } | ||
129 | |||
130 | genrule { | ||
131 | name: "android.hardware.audio@2.0-adapter-helper_genc++_headers", | ||
132 | tools: ["hidl-gen"], | ||
133 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio@2.0", | ||
134 | srcs: [ | ||
135 | ":android.hardware.audio@2.0_hal", | ||
136 | ], | ||
137 | out: [ | ||
138 | "android/hardware/audio/2.0/ADevice.h", | ||
139 | "android/hardware/audio/2.0/ADevicesFactory.h", | ||
140 | "android/hardware/audio/2.0/APrimaryDevice.h", | ||
141 | "android/hardware/audio/2.0/AStream.h", | ||
142 | "android/hardware/audio/2.0/AStreamIn.h", | ||
143 | "android/hardware/audio/2.0/AStreamOut.h", | ||
144 | "android/hardware/audio/2.0/AStreamOutCallback.h", | ||
145 | ], | ||
146 | } | ||
147 | |||
148 | |||
149 | cc_library { | ||
150 | name: "android.hardware.audio@2.0-adapter-helper", | ||
151 | defaults: ["hidl-module-defaults"], | ||
152 | generated_sources: ["android.hardware.audio@2.0-adapter-helper_genc++"], | ||
153 | generated_headers: ["android.hardware.audio@2.0-adapter-helper_genc++_headers"], | ||
154 | export_generated_headers: ["android.hardware.audio@2.0-adapter-helper_genc++_headers"], | ||
155 | vendor_available: true, | ||
156 | shared_libs: [ | ||
157 | "libhidlbase", | ||
158 | "libhidltransport", | ||
159 | "libhwbinder", | ||
160 | "liblog", | ||
161 | "libutils", | ||
162 | "libcutils", | ||
163 | "libhidladapter", | ||
164 | "android.hardware.audio.common@2.0", | ||
165 | "android.hardware.audio@2.0", | ||
166 | "android.hidl.base@1.0-adapter-helper", | ||
167 | ], | ||
168 | export_shared_lib_headers: [ | ||
169 | "libhidlbase", | ||
170 | "libhidltransport", | ||
171 | "libhwbinder", | ||
172 | "libutils", | ||
173 | "libhidladapter", | ||
174 | "android.hardware.audio.common@2.0", | ||
175 | "android.hardware.audio@2.0", | ||
176 | "android.hidl.base@1.0-adapter-helper", | ||
177 | ], | ||
178 | } | ||
179 | |||
180 | genrule { | ||
181 | name: "android.hardware.audio@2.0-adapter_genc++", | ||
182 | tools: ["hidl-gen"], | ||
183 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio@2.0", | ||
184 | out: ["main.cpp"]} | ||
185 | |||
186 | cc_test { | ||
187 | name: "android.hardware.audio@2.0-adapter", | ||
188 | shared_libs: [ | ||
189 | "libhidladapter", | ||
190 | "libhidlbase", | ||
191 | "libhidltransport", | ||
192 | "libutils", | ||
193 | "android.hardware.audio.common@2.0", | ||
194 | "android.hardware.audio@2.0", | ||
195 | "android.hardware.audio@2.0-adapter-helper", | ||
196 | ], | ||
197 | generated_sources: ["android.hardware.audio@2.0-adapter_genc++"], | ||
198 | } | ||