diff options
author | Steven Moreland <smoreland@google.com> | 2017-09-26 13:36:09 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-26 13:36:09 +0000 |
commit | 7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00 (patch) | |
tree | d3eabaf3246368d9703b4fac65efba04590f33ff /gatekeeper/1.0 | |
parent | 1573c2e8fd9ad6222f77d9089929a8598ac25d68 (diff) | |
parent | 97228c0b7de085b507b78a1bc16e15725de48e4e (diff) | |
download | platform_hardware_interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.tar.gz platform_hardware_interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.tar.bz2 platform_hardware_interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.zip |
Update makefiles for hidl adapter. am: 26a0bb2762 am: 73949c1d7e am: b94d0c7290
am: 97228c0b7d
Change-Id: Ic4b459b7c1a4325453945b0b00db8f44e4e77c26
Diffstat (limited to 'gatekeeper/1.0')
-rw-r--r-- | gatekeeper/1.0/Android.bp | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/gatekeeper/1.0/Android.bp b/gatekeeper/1.0/Android.bp index f12f38fd9d..13cb79503e 100644 --- a/gatekeeper/1.0/Android.bp +++ b/gatekeeper/1.0/Android.bp @@ -64,3 +64,76 @@ cc_library { "libutils", ], } + +genrule { + name: "android.hardware.gatekeeper@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.gatekeeper@1.0", + srcs: [ + ":android.hardware.gatekeeper@1.0_hal", + ], + out: [ + "android/hardware/gatekeeper/1.0/AGatekeeper.cpp", + ], +} + +genrule { + name: "android.hardware.gatekeeper@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.gatekeeper@1.0", + srcs: [ + ":android.hardware.gatekeeper@1.0_hal", + ], + out: [ + "android/hardware/gatekeeper/1.0/AGatekeeper.h", + ], +} + + +cc_library { + name: "android.hardware.gatekeeper@1.0-adapter-helper", + defaults: ["hidl-module-defaults"], + generated_sources: ["android.hardware.gatekeeper@1.0-adapter-helper_genc++"], + generated_headers: ["android.hardware.gatekeeper@1.0-adapter-helper_genc++_headers"], + export_generated_headers: ["android.hardware.gatekeeper@1.0-adapter-helper_genc++_headers"], + vendor_available: true, + shared_libs: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "liblog", + "libutils", + "libcutils", + "libhidladapter", + "android.hardware.gatekeeper@1.0", + "android.hidl.base@1.0-adapter-helper", + ], + export_shared_lib_headers: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "libutils", + "libhidladapter", + "android.hardware.gatekeeper@1.0", + "android.hidl.base@1.0-adapter-helper", + ], +} + +genrule { + name: "android.hardware.gatekeeper@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.gatekeeper@1.0", + out: ["main.cpp"]} + +cc_test { + name: "android.hardware.gatekeeper@1.0-adapter", + shared_libs: [ + "libhidladapter", + "libhidlbase", + "libhidltransport", + "libutils", + "android.hardware.gatekeeper@1.0", + "android.hardware.gatekeeper@1.0-adapter-helper", + ], + generated_sources: ["android.hardware.gatekeeper@1.0-adapter_genc++"], +} |