blob: 02da3382cbd134de273f242ded736b81d94e1403 [file] [log] [blame]
Haoxiang Li35d2a702020-04-10 01:19:32 +00001//
2// Copyright 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Tanmay Patil9aa69062020-05-29 17:54:22 -070017cc_library {
18 name : "libobj_reader",
19 vendor : true,
20 srcs: [
21 "MtlReader.cpp",
22 "ObjReader.cpp",
23 ],
24 shared_libs : [
25 "libbase",
26 ]
27}
28
29cc_test{
30 name : "obj_reader_tests",
31 test_suites : ["device-tests"],
32 vendor : true,
33 srcs : ["ObjReaderTests.cpp"],
34 shared_libs : [
35 "libobj_reader",
36 "libcutils",
37 "libbase",
38 "libutils",
39 ],
40 required: [
41 "VolvoXC40_low.obj",
42 "VolvoXC40_low.mtl",
43 ],
44}
45
Tanmay Patil31796c92020-05-18 14:02:48 -070046cc_library{
Xiangfei Qian35d4bd42020-05-29 16:35:09 -070047 name : "libanimation_module",
48 vendor : true,
49 srcs : [
50 "AnimationModule.cpp",
51 ],
52 shared_libs : [
53 "android.hardware.automotive.vehicle@2.0",
54 "libbase",
55 "libhidlbase",
56 "libutils",
57 ],
58}
59
60cc_test{
61 name : "animation_module_tests",
62 test_suites : ["device-tests"],
63 vendor : true,
64 srcs : ["AnimationModuleTests.cpp"],
65 shared_libs : [
66 "android.hardware.automotive.vehicle@2.0",
67 "libanimation_module",
68 "libcutils",
69 "libbase",
70 "libhidlbase",
71 "libhardware",
72 "libutils",
73 ],
74}
75
76cc_library{
Tanmay Patil31796c92020-05-18 14:02:48 -070077 name : "libvhal_handler",
78 vendor : true,
79 srcs : [
80 "VhalHandler.cpp",
81 ],
82 shared_libs : [
83 "android.hardware.automotive.vehicle@2.0",
84 "android.hidl.memory@1.0",
85 "libcutils",
86 "libbase",
87 "libbinder",
88 "libhidlbase",
89 "libhardware",
90 "libhidlmemory",
91 "libui",
92 "libutils",
93 ],
94}
95
96cc_test{
97 name : "vhal_handler_tests",
98 test_suites : ["device-tests"],
99 vendor : true,
100 srcs : ["VhalHandlerTests.cpp"],
101 shared_libs : [
102 "android.hardware.automotive.vehicle@2.0",
103 "libvhal_handler",
104 "libcutils",
105 "libbase",
106 "libbinder",
107 "libhidlbase",
108 "libhardware",
109 "libhidlmemory",
110 "libui",
111 "libutils",
112 ],
113}
114
115cc_binary{
116 name : "android.automotive.sv.service@1.0-impl",
117 vendor : true,
118 srcs : [
Haoxiang Li35d2a702020-04-10 01:19:32 +0000119 "CoreLibSetupHelper.cpp",
120 "SurroundViewService.cpp",
121 "SurroundView2dSession.cpp",
122 "SurroundView3dSession.cpp",
Haoxiang Lif488c7e2020-05-27 09:12:13 -0700123 "VhalHandler.cpp",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000124 "service.cpp",
125 ],
Tanmay Patil31796c92020-05-18 14:02:48 -0700126 init_rc : ["android.automotive.sv.service@1.0-impl.rc"],
127 shared_libs : [
Haoxiang Li070f17d2020-05-28 14:06:25 -0700128 "android.hardware.automotive.evs@1.1",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000129 "android.hardware.automotive.sv@1.0",
Tanmay Patil31796c92020-05-18 14:02:48 -0700130 "android.hardware.automotive.vehicle@2.0",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000131 "android.hidl.memory@1.0",
132 "libbase",
133 "libbinder",
Haoxiang Li070f17d2020-05-28 14:06:25 -0700134 "libcamera_metadata",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000135 "libcore_lib_shared",
136 "libcutils",
137 "libhardware",
138 "libhidlbase",
139 "libhidlmemory",
140 "libui",
141 "libutils",
142 ],
Tanmay Patil31796c92020-05-18 14:02:48 -0700143 required : [
Haoxiang Li35d2a702020-04-10 01:19:32 +0000144 "cam0.png",
145 "cam1.png",
146 "cam2.png",
147 "cam3.png",
148 ],
149 // Disable builds except for arm64 and emulator devices
Tanmay Patil31796c92020-05-18 14:02:48 -0700150 enabled : false,
151 arch : {
152 arm64 : {
153 enabled : true,
Haoxiang Li35d2a702020-04-10 01:19:32 +0000154 },
Tanmay Patil31796c92020-05-18 14:02:48 -0700155 x86 : {
156 enabled : true,
Haoxiang Li35d2a702020-04-10 01:19:32 +0000157 },
Tanmay Patil31796c92020-05-18 14:02:48 -0700158 x86_64 : {
159 enabled : true,
Haoxiang Li35d2a702020-04-10 01:19:32 +0000160 },
161 },
Tanmay Patil31796c92020-05-18 14:02:48 -0700162 vintf_fragments : [
Haoxiang Li35d2a702020-04-10 01:19:32 +0000163 "manifest_android.hardware.automotive.sv@1.0.xml",
164 ],
165}
166
Tanmay Patil31796c92020-05-18 14:02:48 -0700167cc_prebuilt_library_shared{
168 name : "libcore_lib_shared",
169 proprietary : true,
170 arch : {
171 arm64 : {srcs : ["lib/arm64/libcore_lib_shared.so"]},
172 x86 : {srcs : ["lib/x86/libcore_lib_shared.so"]},
173 x86_64 : {srcs : ["lib/x86-64/libcore_lib_shared.so"]},
Haoxiang Li35d2a702020-04-10 01:19:32 +0000174 },
Tanmay Patil31796c92020-05-18 14:02:48 -0700175 shared_libs : [
176 "libutils",
177 "libcutils",
178 "libbase",
179 "libEGL",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000180 "libGLESv2",
181 "libGLESv3",
182 "libc",
183 "libm",
184 "libdl",
185 "libz",
186 "liblog",
187 ],
188}
189
Tanmay Patil31796c92020-05-18 14:02:48 -0700190prebuilt_etc{
191 name : "cam0.png",
192 src : "test_data/0.png",
193 sub_dir : "automotive/sv",
194}
195
196prebuilt_etc{
197 name : "cam1.png",
198 src : "test_data/1.png",
199 sub_dir : "automotive/sv",
200}
201
202prebuilt_etc{
203 name : "cam2.png",
204 src : "test_data/2.png",
205 sub_dir : "automotive/sv",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000206}
207
208prebuilt_etc {
Tanmay Patil31796c92020-05-18 14:02:48 -0700209name:
210 "cam3.png", src : "test_data/3.png", sub_dir : "automotive/sv",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000211}
Tanmay Patil9aa69062020-05-29 17:54:22 -0700212
213prebuilt_etc {
214 name: "cube.obj",
215 src: "test_data/cube.obj",
216 sub_dir: "automotive/sv",
217}
218
219prebuilt_etc {
220 name: "cube.mtl",
221 src: "test_data/cube.mtl",
222 sub_dir: "automotive/sv",
223}