summaryrefslogtreecommitdiffstats
path: root/ir
diff options
context:
space:
mode:
authorSteven Moreland2017-09-25 18:14:44 -0500
committerandroid-build-merger2017-09-25 18:14:44 -0500
commit73949c1d7ed74d1b18fc341b3306b62fa5791dd6 (patch)
treea236e03c11408e726e98bd8db6e2c0fcc96519a4 /ir
parent11aefd9e74c9b8887e8a63cca77f43754d8819e1 (diff)
parent26a0bb27627c43b599a7807ecf5ec594a525660a (diff)
downloadplatform-hardware-interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.tar.gz
platform-hardware-interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.tar.xz
platform-hardware-interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.zip
Update makefiles for hidl adapter.
am: 26a0bb2762 Change-Id: I3a811f5cd49bd4e81e8fcd5c8e88922115812539
Diffstat (limited to 'ir')
-rw-r--r--ir/1.0/Android.bp73
1 files changed, 73 insertions, 0 deletions
diff --git a/ir/1.0/Android.bp b/ir/1.0/Android.bp
index 489f61fa..d3230da4 100644
--- a/ir/1.0/Android.bp
+++ b/ir/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.ir@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
72 srcs: [
73 ":android.hardware.ir@1.0_hal",
74 ],
75 out: [
76 "android/hardware/ir/1.0/AConsumerIr.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.ir@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
84 srcs: [
85 ":android.hardware.ir@1.0_hal",
86 ],
87 out: [
88 "android/hardware/ir/1.0/AConsumerIr.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.ir@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.ir@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.ir@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.ir@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.ir@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.ir@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.ir@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.ir@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.ir@1.0",
136 "android.hardware.ir@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.ir@1.0-adapter_genc++"],
139}