Hidlized version of IMemory.
- Add hidl_memory type.
- Add android.hidl.memory@1.0 package
- IMapper
- IAllocator
- IMemory
- Add libhidlmemory
- Add default implementation of android.hidl.memory@1.0
- Ashmem
- Ion (TODO, probably in another CL)
Test: compiles (WIP)
Change-Id: I4632eeb6a0051551b54ce04d919aaf551dfc5f28
diff --git a/transport/memory/1.0/Android.bp b/transport/memory/1.0/Android.bp
new file mode 100644
index 0000000..5839197
--- /dev/null
+++ b/transport/memory/1.0/Android.bp
@@ -0,0 +1,66 @@
+// This file is autogenerated by hidl-gen. Do not edit manually.
+
+genrule {
+ name: "android.hidl.memory@1.0_genc++",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hidl:system/libhidl/transport android.hidl.memory@1.0",
+ srcs: [
+ "IAllocator.hal",
+ "IMapper.hal",
+ "IMemory.hal",
+ ],
+ out: [
+ "android/hidl/memory/1.0/AllocatorAll.cpp",
+ "android/hidl/memory/1.0/MapperAll.cpp",
+ "android/hidl/memory/1.0/MemoryAll.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hidl.memory@1.0_genc++_headers",
+ tools: ["hidl-gen"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hidl:system/libhidl/transport android.hidl.memory@1.0",
+ srcs: [
+ "IAllocator.hal",
+ "IMapper.hal",
+ "IMemory.hal",
+ ],
+ out: [
+ "android/hidl/memory/1.0/IAllocator.h",
+ "android/hidl/memory/1.0/IHwAllocator.h",
+ "android/hidl/memory/1.0/BnAllocator.h",
+ "android/hidl/memory/1.0/BpAllocator.h",
+ "android/hidl/memory/1.0/BsAllocator.h",
+ "android/hidl/memory/1.0/IMapper.h",
+ "android/hidl/memory/1.0/IHwMapper.h",
+ "android/hidl/memory/1.0/BnMapper.h",
+ "android/hidl/memory/1.0/BpMapper.h",
+ "android/hidl/memory/1.0/BsMapper.h",
+ "android/hidl/memory/1.0/IMemory.h",
+ "android/hidl/memory/1.0/IHwMemory.h",
+ "android/hidl/memory/1.0/BnMemory.h",
+ "android/hidl/memory/1.0/BpMemory.h",
+ "android/hidl/memory/1.0/BsMemory.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hidl.memory@1.0",
+ generated_sources: ["android.hidl.memory@1.0_genc++"],
+ generated_headers: ["android.hidl.memory@1.0_genc++_headers"],
+ export_generated_headers: ["android.hidl.memory@1.0_genc++_headers"],
+ shared_libs: [
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libutils",
+ "libcutils",
+ ],
+ export_shared_lib_headers: [
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "libutils",
+ ],
+}