summaryrefslogtreecommitdiffstats
path: root/automotive/vehicle
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-09-25 23:14:44 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-09-25 23:14:44 +0000
commit73949c1d7ed74d1b18fc341b3306b62fa5791dd6 (patch)
treea236e03c11408e726e98bd8db6e2c0fcc96519a4 /automotive/vehicle
parent11aefd9e74c9b8887e8a63cca77f43754d8819e1 (diff)
parent26a0bb27627c43b599a7807ecf5ec594a525660a (diff)
downloadandroid_hardware_interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.tar.gz
android_hardware_interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.tar.bz2
android_hardware_interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.zip
Update makefiles for hidl adapter.
am: 26a0bb2762 Change-Id: I3a811f5cd49bd4e81e8fcd5c8e88922115812539
Diffstat (limited to 'automotive/vehicle')
-rw-r--r--automotive/vehicle/2.0/Android.bp75
1 files changed, 75 insertions, 0 deletions
diff --git a/automotive/vehicle/2.0/Android.bp b/automotive/vehicle/2.0/Android.bp
index 879fe0d99..6ccaac76f 100644
--- a/automotive/vehicle/2.0/Android.bp
+++ b/automotive/vehicle/2.0/Android.bp
@@ -71,3 +71,78 @@ cc_library {
"libutils",
],
}
+
+genrule {
+ name: "android.hardware.automotive.vehicle@2.0-adapter-helper_genc++",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0",
+ srcs: [
+ ":android.hardware.automotive.vehicle@2.0_hal",
+ ],
+ out: [
+ "android/hardware/automotive/vehicle/2.0/AVehicle.cpp",
+ "android/hardware/automotive/vehicle/2.0/AVehicleCallback.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.automotive.vehicle@2.0-adapter-helper_genc++_headers",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0",
+ srcs: [
+ ":android.hardware.automotive.vehicle@2.0_hal",
+ ],
+ out: [
+ "android/hardware/automotive/vehicle/2.0/AVehicle.h",
+ "android/hardware/automotive/vehicle/2.0/AVehicleCallback.h",
+ ],
+}
+
+
+cc_library {
+ name: "android.hardware.automotive.vehicle@2.0-adapter-helper",
+ defaults: ["hidl-module-defaults"],
+ generated_sources: ["android.hardware.automotive.vehicle@2.0-adapter-helper_genc++"],
+ generated_headers: ["android.hardware.automotive.vehicle@2.0-adapter-helper_genc++_headers"],
+ export_generated_headers: ["android.hardware.automotive.vehicle@2.0-adapter-helper_genc++_headers"],
+ vendor_available: true,
+ shared_libs: [
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libhidladapter",
+ "android.hardware.automotive.vehicle@2.0",
+ "android.hidl.base@1.0-adapter-helper",
+ ],
+ export_shared_lib_headers: [
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "libutils",
+ "libhidladapter",
+ "android.hardware.automotive.vehicle@2.0",
+ "android.hidl.base@1.0-adapter-helper",
+ ],
+}
+
+genrule {
+ name: "android.hardware.automotive.vehicle@2.0-adapter_genc++",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0",
+ out: ["main.cpp"]}
+
+cc_test {
+ name: "android.hardware.automotive.vehicle@2.0-adapter",
+ shared_libs: [
+ "libhidladapter",
+ "libhidlbase",
+ "libhidltransport",
+ "libutils",
+ "android.hardware.automotive.vehicle@2.0",
+ "android.hardware.automotive.vehicle@2.0-adapter-helper",
+ ],
+ generated_sources: ["android.hardware.automotive.vehicle@2.0-adapter_genc++"],
+}