blob: 48fd09b6c6a0477124b3cc923c07eef26c65965e [file] [log] [blame]
Tri Voc7ee8822017-03-21 15:03:17 -07001// This file was auto-generated. Do not edit manually.
2// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
3
4// Generate .vts spec files.
5hal2vts {
6 name: "android.hardware.automotive.vehicle@2.0-vts.spec",
7 srcs: [
8 ":android.hardware.automotive.vehicle@2.0_hal",
9 ],
10 out: [
11 "android/hardware/automotive/vehicle/2.0/Vehicle.vts",
12 "android/hardware/automotive/vehicle/2.0/VehicleCallback.vts",
13 "android/hardware/automotive/vehicle/2.0/types.vts",
14 ],
15}
16
17// Build VTS driver.
18genrule {
Jae Shinefb6bd82017-03-24 16:31:14 +090019 name: "android.hardware.automotive.vehicle@2.0-vts.driver_genc++",
Tri Voc7ee8822017-03-21 15:03:17 -070020 tools: ["hidl-gen", "vtsc"],
21 cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/automotive/vehicle/2.0/ $(genDir)/android/hardware/automotive/vehicle/2.0/",
22 srcs: [
23 ":android.hardware.automotive.vehicle@2.0_hal",
24 ],
25 out: [
26 "android/hardware/automotive/vehicle/2.0/Vehicle.vts.cpp",
27 "android/hardware/automotive/vehicle/2.0/VehicleCallback.vts.cpp",
28 "android/hardware/automotive/vehicle/2.0/types.vts.cpp",
29 ],
30}
31
32genrule {
Jae Shinefb6bd82017-03-24 16:31:14 +090033 name: "android.hardware.automotive.vehicle@2.0-vts.driver_genc++_headers",
Tri Voc7ee8822017-03-21 15:03:17 -070034 tools: ["hidl-gen", "vtsc"],
35 cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/automotive/vehicle/2.0/ $(genDir)/android/hardware/automotive/vehicle/2.0/",
36 srcs: [
37 ":android.hardware.automotive.vehicle@2.0_hal",
38 ],
39 out: [
40 "android/hardware/automotive/vehicle/2.0/Vehicle.vts.h",
41 "android/hardware/automotive/vehicle/2.0/VehicleCallback.vts.h",
42 "android/hardware/automotive/vehicle/2.0/types.vts.h",
43 ],
44}
45
46cc_library_shared {
Jae Shinefb6bd82017-03-24 16:31:14 +090047 name: "android.hardware.automotive.vehicle@2.0-vts.driver",
48 generated_sources: ["android.hardware.automotive.vehicle@2.0-vts.driver_genc++"],
49 generated_headers: ["android.hardware.automotive.vehicle@2.0-vts.driver_genc++_headers"],
50 export_generated_headers: ["android.hardware.automotive.vehicle@2.0-vts.driver_genc++_headers"],
Tri Voc7ee8822017-03-21 15:03:17 -070051 shared_libs: [
Zhuoyao Zhangf1492572017-06-01 11:07:29 -070052 "libcamera_metadata",
53 "libcutils",
54 "libfmq",
Tri Voc7ee8822017-03-21 15:03:17 -070055 "libhidlbase",
56 "libhidltransport",
57 "libhwbinder",
58 "liblog",
Zhuoyao Zhangf1492572017-06-01 11:07:29 -070059 "libprotobuf-cpp-full",
Tri Voc7ee8822017-03-21 15:03:17 -070060 "libutils",
Tri Voc7ee8822017-03-21 15:03:17 -070061 "libvts_common",
62 "libvts_datatype",
63 "libvts_drivercomm",
64 "libvts_measurement",
65 "libvts_multidevice_proto",
Zhuoyao Zhangf1492572017-06-01 11:07:29 -070066 "android.hidl.allocator@1.0",
Tri Voc7ee8822017-03-21 15:03:17 -070067 "android.hardware.automotive.vehicle@2.0",
Colin Crossb074c1a2017-05-05 19:21:41 -070068
Tri Voc7ee8822017-03-21 15:03:17 -070069 ],
70 export_shared_lib_headers: [
Colin Crossb074c1a2017-05-05 19:21:41 -070071
Tri Voc7ee8822017-03-21 15:03:17 -070072 ],
Colin Cross5ee2f3d2017-05-03 23:33:42 -070073 cflags: [
74 "-Wall",
75 "-Werror",
76
77 // These warnings are in code generated with vtsc
78 // b/31362043
79 "-Wno-unused-parameter",
80 "-Wno-unused-variable",
81 "-Wno-unused-private-field",
82 "-Wno-duplicate-decl-specifier",
83 "-Wno-uninitialized",
84 "-Wno-implicitly-unsigned-literal",
85 ],
Tri Voc7ee8822017-03-21 15:03:17 -070086}
87
88// Build VTS profiler.
89genrule {
90 name: "android.hardware.automotive.vehicle@2.0-vts.profiler_genc++",
91 tools: ["hidl-gen", "vtsc"],
92 cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/automotive/vehicle/2.0/ $(genDir)/android/hardware/automotive/vehicle/2.0/",
93 srcs: [
94 ":android.hardware.automotive.vehicle@2.0_hal",
95 ],
96 out: [
97 "android/hardware/automotive/vehicle/2.0/Vehicle.vts.cpp",
98 "android/hardware/automotive/vehicle/2.0/VehicleCallback.vts.cpp",
99 "android/hardware/automotive/vehicle/2.0/types.vts.cpp",
100 ],
101}
102
103genrule {
104 name: "android.hardware.automotive.vehicle@2.0-vts.profiler_genc++_headers",
105 tools: ["hidl-gen", "vtsc"],
106 cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/automotive/vehicle/2.0/ $(genDir)/android/hardware/automotive/vehicle/2.0/",
107 srcs: [
108 ":android.hardware.automotive.vehicle@2.0_hal",
109 ],
110 out: [
111 "android/hardware/automotive/vehicle/2.0/Vehicle.vts.h",
112 "android/hardware/automotive/vehicle/2.0/VehicleCallback.vts.h",
113 "android/hardware/automotive/vehicle/2.0/types.vts.h",
114 ],
115}
116
117cc_library_shared {
118 name: "android.hardware.automotive.vehicle@2.0-vts.profiler",
119 generated_sources: ["android.hardware.automotive.vehicle@2.0-vts.profiler_genc++"],
120 generated_headers: ["android.hardware.automotive.vehicle@2.0-vts.profiler_genc++_headers"],
121 export_generated_headers: ["android.hardware.automotive.vehicle@2.0-vts.profiler_genc++_headers"],
122 shared_libs: [
123 "libbase",
Zhuoyao Zhangaf644fe2017-05-14 17:34:32 -0700124 "libcutils",
125 "libfmq",
Tri Voc7ee8822017-03-21 15:03:17 -0700126 "libhidlbase",
127 "libhidltransport",
Colin Crossdbe30fd2017-05-06 17:31:31 -0700128 "libvts_common",
Tri Voc7ee8822017-03-21 15:03:17 -0700129 "libvts_profiling",
130 "libvts_multidevice_proto",
131 "libprotobuf-cpp-full",
132 "android.hardware.automotive.vehicle@2.0",
Colin Crossb074c1a2017-05-05 19:21:41 -0700133
Tri Voc7ee8822017-03-21 15:03:17 -0700134 ],
Colin Cross5ee2f3d2017-05-03 23:33:42 -0700135 cflags: [
136 "-Wall",
137 "-Werror",
138
139 // These warnings are in code generated with vtsc
140 // b/31362043
141 "-Wno-unused-parameter",
142 "-Wno-unused-variable",
143 "-Wno-unused-private-field",
144 "-Wno-duplicate-decl-specifier",
145 "-Wno-uninitialized",
146 "-Wno-implicitly-unsigned-literal",
147 ],
Tri Voc7ee8822017-03-21 15:03:17 -0700148}
149