summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drm/1.0/Android.bp')
-rw-r--r--drm/1.0/Android.bp81
1 files changed, 80 insertions, 1 deletions
diff --git a/drm/1.0/Android.bp b/drm/1.0/Android.bp
index 096aa06c..0e091db4 100644
--- a/drm/1.0/Android.bp
+++ b/drm/1.0/Android.bp
@@ -93,4 +93,83 @@ cc_library {
93 ], 93 ],
94} 94}
95 95
96subdirs = ["default"] 96genrule {
97 name: "android.hardware.drm@1.0-adapter-helper_genc++",
98 tools: ["hidl-gen"],
99 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0",
100 srcs: [
101 ":android.hardware.drm@1.0_hal",
102 ],
103 out: [
104 "android/hardware/drm/1.0/ACryptoFactory.cpp",
105 "android/hardware/drm/1.0/ACryptoPlugin.cpp",
106 "android/hardware/drm/1.0/ADrmFactory.cpp",
107 "android/hardware/drm/1.0/ADrmPlugin.cpp",
108 "android/hardware/drm/1.0/ADrmPluginListener.cpp",
109 ],
110}
111
112genrule {
113 name: "android.hardware.drm@1.0-adapter-helper_genc++_headers",
114 tools: ["hidl-gen"],
115 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0",
116 srcs: [
117 ":android.hardware.drm@1.0_hal",
118 ],
119 out: [
120 "android/hardware/drm/1.0/ACryptoFactory.h",
121 "android/hardware/drm/1.0/ACryptoPlugin.h",
122 "android/hardware/drm/1.0/ADrmFactory.h",
123 "android/hardware/drm/1.0/ADrmPlugin.h",
124 "android/hardware/drm/1.0/ADrmPluginListener.h",
125 ],
126}
127
128
129cc_library {
130 name: "android.hardware.drm@1.0-adapter-helper",
131 defaults: ["hidl-module-defaults"],
132 generated_sources: ["android.hardware.drm@1.0-adapter-helper_genc++"],
133 generated_headers: ["android.hardware.drm@1.0-adapter-helper_genc++_headers"],
134 export_generated_headers: ["android.hardware.drm@1.0-adapter-helper_genc++_headers"],
135 vendor_available: true,
136 shared_libs: [
137 "libhidlbase",
138 "libhidltransport",
139 "libhwbinder",
140 "liblog",
141 "libutils",
142 "libcutils",
143 "libhidladapter",
144 "android.hardware.drm@1.0",
145 "android.hidl.base@1.0-adapter-helper",
146 ],
147 export_shared_lib_headers: [
148 "libhidlbase",
149 "libhidltransport",
150 "libhwbinder",
151 "libutils",
152 "libhidladapter",
153 "android.hardware.drm@1.0",
154 "android.hidl.base@1.0-adapter-helper",
155 ],
156}
157
158genrule {
159 name: "android.hardware.drm@1.0-adapter_genc++",
160 tools: ["hidl-gen"],
161 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0",
162 out: ["main.cpp"]}
163
164cc_test {
165 name: "android.hardware.drm@1.0-adapter",
166 shared_libs: [
167 "libhidladapter",
168 "libhidlbase",
169 "libhidltransport",
170 "libutils",
171 "android.hardware.drm@1.0",
172 "android.hardware.drm@1.0-adapter-helper",
173 ],
174 generated_sources: ["android.hardware.drm@1.0-adapter_genc++"],
175}