diff options
Diffstat (limited to 'memtrack/1.0/Android.bp')
-rw-r--r-- | memtrack/1.0/Android.bp | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/memtrack/1.0/Android.bp b/memtrack/1.0/Android.bp index 4df2c1d89e..ef9f4e38c4 100644 --- a/memtrack/1.0/Android.bp +++ b/memtrack/1.0/Android.bp @@ -64,3 +64,76 @@ cc_library { "libutils", ], } + +genrule { + name: "android.hardware.memtrack@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.memtrack@1.0", + srcs: [ + ":android.hardware.memtrack@1.0_hal", + ], + out: [ + "android/hardware/memtrack/1.0/AMemtrack.cpp", + ], +} + +genrule { + name: "android.hardware.memtrack@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.memtrack@1.0", + srcs: [ + ":android.hardware.memtrack@1.0_hal", + ], + out: [ + "android/hardware/memtrack/1.0/AMemtrack.h", + ], +} + + +cc_library { + name: "android.hardware.memtrack@1.0-adapter-helper", + defaults: ["hidl-module-defaults"], + generated_sources: ["android.hardware.memtrack@1.0-adapter-helper_genc++"], + generated_headers: ["android.hardware.memtrack@1.0-adapter-helper_genc++_headers"], + export_generated_headers: ["android.hardware.memtrack@1.0-adapter-helper_genc++_headers"], + vendor_available: true, + shared_libs: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "liblog", + "libutils", + "libcutils", + "libhidladapter", + "android.hardware.memtrack@1.0", + "android.hidl.base@1.0-adapter-helper", + ], + export_shared_lib_headers: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "libutils", + "libhidladapter", + "android.hardware.memtrack@1.0", + "android.hidl.base@1.0-adapter-helper", + ], +} + +genrule { + name: "android.hardware.memtrack@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.memtrack@1.0", + out: ["main.cpp"]} + +cc_test { + name: "android.hardware.memtrack@1.0-adapter", + shared_libs: [ + "libhidladapter", + "libhidlbase", + "libhidltransport", + "libutils", + "android.hardware.memtrack@1.0", + "android.hardware.memtrack@1.0-adapter-helper", + ], + generated_sources: ["android.hardware.memtrack@1.0-adapter_genc++"], +} |