diff options
author | Steven Moreland | 2017-09-22 16:10:47 -0500 |
---|---|---|
committer | Steven Moreland | 2017-09-25 13:35:56 -0500 |
commit | 26a0bb27627c43b599a7807ecf5ec594a525660a (patch) | |
tree | de18c34fd98b50e3172080fe7a40e52282d8da4c /ir | |
parent | 7728f0ce5c7f7da067a446531b80d199bcd5c849 (diff) | |
download | platform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.tar.gz platform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.tar.xz platform-hardware-interfaces-26a0bb27627c43b599a7807ecf5ec594a525660a.zip |
Update makefiles for hidl adapter.
Bug: 37518178
Test: manual
Change-Id: I50e999907d3c64d2b039272b823971998da64d1b
Diffstat (limited to 'ir')
-rw-r--r-- | ir/1.0/Android.bp | 73 |
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 | |||
68 | genrule { | ||
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 | |||
80 | genrule { | ||
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 | |||
93 | cc_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 | |||
122 | genrule { | ||
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 | |||
128 | cc_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 | } | ||