diff options
author | Steven Moreland <smoreland@google.com> | 2017-09-22 14:10:47 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-09-25 18:35:56 +0000 |
commit | 26a0bb27627c43b599a7807ecf5ec594a525660a (patch) | |
tree | de18c34fd98b50e3172080fe7a40e52282d8da4c /radio/1.1/Android.bp | |
parent | 7728f0ce5c7f7da067a446531b80d199bcd5c849 (diff) | |
download | platform_hardware_interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.tar.gz platform_hardware_interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.tar.bz2 platform_hardware_interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.zip |
Update makefiles for hidl adapter.
Bug: 37518178
Test: manual
Change-Id: I50e999907d3c64d2b039272b823971998da64d1b
Diffstat (limited to 'radio/1.1/Android.bp')
-rw-r--r-- | radio/1.1/Android.bp | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/radio/1.1/Android.bp b/radio/1.1/Android.bp index 156cf996d3..fc03b53d8b 100644 --- a/radio/1.1/Android.bp +++ b/radio/1.1/Android.bp @@ -87,3 +87,87 @@ cc_library { "android.hardware.radio@1.0", ], } + +genrule { + name: "android.hardware.radio@1.1-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.radio@1.1", + srcs: [ + ":android.hardware.radio@1.1_hal", + ], + out: [ + "android/hardware/radio/1.1/ARadio.cpp", + "android/hardware/radio/1.1/ARadioIndication.cpp", + "android/hardware/radio/1.1/ARadioResponse.cpp", + "android/hardware/radio/1.1/ASap.cpp", + ], +} + +genrule { + name: "android.hardware.radio@1.1-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.radio@1.1", + srcs: [ + ":android.hardware.radio@1.1_hal", + ], + out: [ + "android/hardware/radio/1.1/ARadio.h", + "android/hardware/radio/1.1/ARadioIndication.h", + "android/hardware/radio/1.1/ARadioResponse.h", + "android/hardware/radio/1.1/ASap.h", + ], +} + + +cc_library { + name: "android.hardware.radio@1.1-adapter-helper", + defaults: ["hidl-module-defaults"], + generated_sources: ["android.hardware.radio@1.1-adapter-helper_genc++"], + generated_headers: ["android.hardware.radio@1.1-adapter-helper_genc++_headers"], + export_generated_headers: ["android.hardware.radio@1.1-adapter-helper_genc++_headers"], + vendor_available: true, + shared_libs: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "liblog", + "libutils", + "libcutils", + "libhidladapter", + "android.hardware.radio@1.0", + "android.hardware.radio@1.1", + "android.hardware.radio@1.0-adapter-helper", + "android.hidl.base@1.0-adapter-helper", + ], + export_shared_lib_headers: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "libutils", + "libhidladapter", + "android.hardware.radio@1.0", + "android.hardware.radio@1.1", + "android.hardware.radio@1.0-adapter-helper", + "android.hidl.base@1.0-adapter-helper", + ], +} + +genrule { + name: "android.hardware.radio@1.1-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.radio@1.1", + out: ["main.cpp"]} + +cc_test { + name: "android.hardware.radio@1.1-adapter", + shared_libs: [ + "libhidladapter", + "libhidlbase", + "libhidltransport", + "libutils", + "android.hardware.radio@1.0", + "android.hardware.radio@1.1", + "android.hardware.radio@1.1-adapter-helper", + ], + generated_sources: ["android.hardware.radio@1.1-adapter_genc++"], +} |