summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhuoyao Zhang2017-02-02 18:55:00 -0600
committerZhuoyao Zhang2017-02-03 12:03:01 -0600
commite9b43bbe2d58dd1ae652eeff339771b01cec7d29 (patch)
treeb7d939ee82b0b80370b0399f5d961a82882d18c2 /media/1.0/Android.bp
parented6138f749879c868b1f1d8ae21b1bb87dcb2162 (diff)
downloadplatform-hardware-interfaces-e9b43bbe2d58dd1ae652eeff339771b01cec7d29.tar.gz
platform-hardware-interfaces-e9b43bbe2d58dd1ae652eeff339771b01cec7d29.tar.xz
platform-hardware-interfaces-e9b43bbe2d58dd1ae652eeff339771b01cec7d29.zip
Update Andriod.bp for hals.
* Add driver/profiler build rule for all hals. Test: mma Change-Id: I98325f7af14fec7dd1bb64b1668de8c7c20ace92
Diffstat (limited to 'media/1.0/Android.bp')
-rw-r--r--media/1.0/Android.bp95
1 files changed, 95 insertions, 0 deletions
diff --git a/media/1.0/Android.bp b/media/1.0/Android.bp
index d533e5a4..5f81ca09 100644
--- a/media/1.0/Android.bp
+++ b/media/1.0/Android.bp
@@ -46,3 +46,98 @@ cc_library_shared {
46 "android.hardware.graphics.common@1.0", 46 "android.hardware.graphics.common@1.0",
47 ], 47 ],
48} 48}
49
50genrule {
51 name: "android.hardware.media.vts.driver@1.0_genc++",
52 tools: ["hidl-gen", "vtsc"],
53 cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media@1.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/media/1.0/ $(genDir)/android/hardware/media/1.0/",
54 srcs: [
55 "types.hal",
56 ],
57 out: [
58 "android/hardware/media/1.0/types.vts.cpp",
59 ],
60}
61
62genrule {
63 name: "android.hardware.media.vts.driver@1.0_genc++_headers",
64 tools: ["hidl-gen", "vtsc"],
65 cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media@1.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/media/1.0/ $(genDir)/android/hardware/media/1.0/",
66 srcs: [
67 "types.hal",
68 ],
69 out: [
70 "android/hardware/media/1.0/types.vts.h",
71 ],
72}
73
74cc_library_shared {
75 name: "android.hardware.media.vts.driver@1.0",
76 generated_sources: ["android.hardware.media.vts.driver@1.0_genc++"],
77 generated_headers: ["android.hardware.media.vts.driver@1.0_genc++_headers"],
78 export_generated_headers: ["android.hardware.media.vts.driver@1.0_genc++_headers"],
79 shared_libs: [
80 "libhidlbase",
81 "libhidltransport",
82 "libhwbinder",
83 "liblog",
84 "libutils",
85 "libcutils",
86 "libvts_common",
87 "libvts_datatype",
88 "libvts_measurement",
89 "libvts_multidevice_proto",
90 "libcamera_metadata",
91 "libprotobuf-cpp-full",
92 "android.hardware.graphics.common@1.0",
93 "android.hardware.media@1.0",
94 ],
95 export_shared_lib_headers: [
96 "libhidlbase",
97 "libhidltransport",
98 "libhwbinder",
99 "libutils",
100 "android.hardware.graphics.common@1.0",
101 ],
102}
103
104genrule {
105 name: "android.hardware.media@1.0-vts.profiler_genc++",
106 tools: ["hidl-gen", "vtsc"],
107 cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/media/1.0/ $(genDir)/android/hardware/media/1.0/",
108 srcs: [
109 "types.hal",
110 ],
111 out: [
112 "android/hardware/media/1.0/types.vts.cpp",
113 ],
114}
115
116genrule {
117 name: "android.hardware.media@1.0-vts.profiler_genc++_headers",
118 tools: ["hidl-gen", "vtsc"],
119 cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/media/1.0/ $(genDir)/android/hardware/media/1.0/",
120 srcs: [
121 "types.hal",
122 ],
123 out: [
124 "android/hardware/media/1.0/types.vts.h",
125 ],
126}
127
128cc_library_shared {
129 name: "android.hardware.media@1.0-vts.profiler",
130 generated_sources: ["android.hardware.media@1.0-vts.profiler_genc++"],
131 generated_headers: ["android.hardware.media@1.0-vts.profiler_genc++_headers"],
132 export_generated_headers: ["android.hardware.media@1.0-vts.profiler_genc++_headers"],
133 shared_libs: [
134 "libbase",
135 "libhidlbase",
136 "libhidltransport",
137 "libvts_profiling",
138 "libvts_multidevice_proto",
139 "libprotobuf-cpp-full",
140 "android.hardware.graphics.common@1.0",
141 "android.hardware.media@1.0",
142 ],
143}