diff options
Diffstat (limited to 'neuralnetworks/1.0/Android.bp')
-rw-r--r-- | neuralnetworks/1.0/Android.bp | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/neuralnetworks/1.0/Android.bp b/neuralnetworks/1.0/Android.bp new file mode 100644 index 0000000000..1356d33d1c --- /dev/null +++ b/neuralnetworks/1.0/Android.bp @@ -0,0 +1,70 @@ +// This file is autogenerated by hidl-gen. Do not edit manually. + +filegroup { + name: "android.hardware.neuralnetworks@1.0_hal", + srcs: [ + "types.hal", + "IDevice.hal", + "IPreparedModel.hal", + ], +} + +genrule { + name: "android.hardware.neuralnetworks@1.0_genc++", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.neuralnetworks@1.0", + srcs: [ + ":android.hardware.neuralnetworks@1.0_hal", + ], + out: [ + "android/hardware/neuralnetworks/1.0/types.cpp", + "android/hardware/neuralnetworks/1.0/DeviceAll.cpp", + "android/hardware/neuralnetworks/1.0/PreparedModelAll.cpp", + ], +} + +genrule { + name: "android.hardware.neuralnetworks@1.0_genc++_headers", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.neuralnetworks@1.0", + srcs: [ + ":android.hardware.neuralnetworks@1.0_hal", + ], + out: [ + "android/hardware/neuralnetworks/1.0/types.h", + "android/hardware/neuralnetworks/1.0/hwtypes.h", + "android/hardware/neuralnetworks/1.0/IDevice.h", + "android/hardware/neuralnetworks/1.0/IHwDevice.h", + "android/hardware/neuralnetworks/1.0/BnHwDevice.h", + "android/hardware/neuralnetworks/1.0/BpHwDevice.h", + "android/hardware/neuralnetworks/1.0/BsDevice.h", + "android/hardware/neuralnetworks/1.0/IPreparedModel.h", + "android/hardware/neuralnetworks/1.0/IHwPreparedModel.h", + "android/hardware/neuralnetworks/1.0/BnHwPreparedModel.h", + "android/hardware/neuralnetworks/1.0/BpHwPreparedModel.h", + "android/hardware/neuralnetworks/1.0/BsPreparedModel.h", + ], +} + +cc_library_shared { + name: "android.hardware.neuralnetworks@1.0", + defaults: ["hidl-module-defaults"], + generated_sources: ["android.hardware.neuralnetworks@1.0_genc++"], + generated_headers: ["android.hardware.neuralnetworks@1.0_genc++_headers"], + export_generated_headers: ["android.hardware.neuralnetworks@1.0_genc++_headers"], + vendor_available: true, + shared_libs: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "liblog", + "libutils", + "libcutils", + ], + export_shared_lib_headers: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "libutils", + ], +} |