diff options
author | Steven Moreland <smoreland@google.com> | 2017-09-26 12:53:13 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-26 12:53:13 +0000 |
commit | 97228c0b7de085b507b78a1bc16e15725de48e4e (patch) | |
tree | 9cecfb86b72b262236257568909208f7ada4e915 /automotive | |
parent | 43fbf0dcdcce755b05d5ddd2a9a9e0b4f1be1e97 (diff) | |
parent | b94d0c7290d606af36785ea864ec243d63d6ad39 (diff) | |
download | android_hardware_interfaces-97228c0b7de085b507b78a1bc16e15725de48e4e.tar.gz android_hardware_interfaces-97228c0b7de085b507b78a1bc16e15725de48e4e.tar.bz2 android_hardware_interfaces-97228c0b7de085b507b78a1bc16e15725de48e4e.zip |
Update makefiles for hidl adapter. am: 26a0bb2762 am: 73949c1d7e
am: b94d0c7290
Change-Id: If766cffbcc003cc0cc5eb98969b924aa918fff44
Diffstat (limited to 'automotive')
-rw-r--r-- | automotive/evs/1.0/Android.bp | 79 | ||||
-rw-r--r-- | automotive/vehicle/2.0/Android.bp | 75 |
2 files changed, 154 insertions, 0 deletions
diff --git a/automotive/evs/1.0/Android.bp b/automotive/evs/1.0/Android.bp index 7ae2231c3..34aa12f99 100644 --- a/automotive/evs/1.0/Android.bp +++ b/automotive/evs/1.0/Android.bp @@ -85,3 +85,82 @@ cc_library { "libutils", ], } + +genrule { + name: "android.hardware.automotive.evs@1.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.evs@1.0", + srcs: [ + ":android.hardware.automotive.evs@1.0_hal", + ], + out: [ + "android/hardware/automotive/evs/1.0/AEvsCamera.cpp", + "android/hardware/automotive/evs/1.0/AEvsCameraStream.cpp", + "android/hardware/automotive/evs/1.0/AEvsDisplay.cpp", + "android/hardware/automotive/evs/1.0/AEvsEnumerator.cpp", + ], +} + +genrule { + name: "android.hardware.automotive.evs@1.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.evs@1.0", + srcs: [ + ":android.hardware.automotive.evs@1.0_hal", + ], + out: [ + "android/hardware/automotive/evs/1.0/AEvsCamera.h", + "android/hardware/automotive/evs/1.0/AEvsCameraStream.h", + "android/hardware/automotive/evs/1.0/AEvsDisplay.h", + "android/hardware/automotive/evs/1.0/AEvsEnumerator.h", + ], +} + + +cc_library { + name: "android.hardware.automotive.evs@1.0-adapter-helper", + defaults: ["hidl-module-defaults"], + generated_sources: ["android.hardware.automotive.evs@1.0-adapter-helper_genc++"], + generated_headers: ["android.hardware.automotive.evs@1.0-adapter-helper_genc++_headers"], + export_generated_headers: ["android.hardware.automotive.evs@1.0-adapter-helper_genc++_headers"], + vendor_available: true, + shared_libs: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "liblog", + "libutils", + "libcutils", + "libhidladapter", + "android.hardware.automotive.evs@1.0", + "android.hidl.base@1.0-adapter-helper", + ], + export_shared_lib_headers: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "libutils", + "libhidladapter", + "android.hardware.automotive.evs@1.0", + "android.hidl.base@1.0-adapter-helper", + ], +} + +genrule { + name: "android.hardware.automotive.evs@1.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.evs@1.0", + out: ["main.cpp"]} + +cc_test { + name: "android.hardware.automotive.evs@1.0-adapter", + shared_libs: [ + "libhidladapter", + "libhidlbase", + "libhidltransport", + "libutils", + "android.hardware.automotive.evs@1.0", + "android.hardware.automotive.evs@1.0-adapter-helper", + ], + generated_sources: ["android.hardware.automotive.evs@1.0-adapter_genc++"], +} 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++"], +} |