blob: 582650b0449b6f5aafc114656fa6e721fc8a4084 [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 Lid564aaf2020-06-10 22:26:37 -0700119 "AnimationModule.cpp",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000120 "CoreLibSetupHelper.cpp",
121 "SurroundViewService.cpp",
122 "SurroundView2dSession.cpp",
123 "SurroundView3dSession.cpp",
Haoxiang Lif488c7e2020-05-27 09:12:13 -0700124 "VhalHandler.cpp",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000125 "service.cpp",
126 ],
Tanmay Patil31796c92020-05-18 14:02:48 -0700127 init_rc : ["android.automotive.sv.service@1.0-impl.rc"],
128 shared_libs : [
Haoxiang Li070f17d2020-05-28 14:06:25 -0700129 "android.hardware.automotive.evs@1.1",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000130 "android.hardware.automotive.sv@1.0",
Tanmay Patil31796c92020-05-18 14:02:48 -0700131 "android.hardware.automotive.vehicle@2.0",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000132 "android.hidl.memory@1.0",
133 "libbase",
134 "libbinder",
Haoxiang Li070f17d2020-05-28 14:06:25 -0700135 "libcamera_metadata",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000136 "libcore_lib_shared",
137 "libcutils",
138 "libhardware",
139 "libhidlbase",
140 "libhidlmemory",
141 "libui",
142 "libutils",
143 ],
Tanmay Patil31796c92020-05-18 14:02:48 -0700144 required : [
Haoxiang Li35d2a702020-04-10 01:19:32 +0000145 "cam0.png",
146 "cam1.png",
147 "cam2.png",
148 "cam3.png",
149 ],
150 // Disable builds except for arm64 and emulator devices
Tanmay Patil31796c92020-05-18 14:02:48 -0700151 enabled : false,
152 arch : {
153 arm64 : {
154 enabled : true,
Haoxiang Li35d2a702020-04-10 01:19:32 +0000155 },
Tanmay Patil31796c92020-05-18 14:02:48 -0700156 x86 : {
157 enabled : true,
Haoxiang Li35d2a702020-04-10 01:19:32 +0000158 },
Tanmay Patil31796c92020-05-18 14:02:48 -0700159 x86_64 : {
160 enabled : true,
Haoxiang Li35d2a702020-04-10 01:19:32 +0000161 },
162 },
Tanmay Patil31796c92020-05-18 14:02:48 -0700163 vintf_fragments : [
Haoxiang Li35d2a702020-04-10 01:19:32 +0000164 "manifest_android.hardware.automotive.sv@1.0.xml",
165 ],
166}
167
Tanmay Patil31796c92020-05-18 14:02:48 -0700168cc_prebuilt_library_shared{
169 name : "libcore_lib_shared",
170 proprietary : true,
171 arch : {
172 arm64 : {srcs : ["lib/arm64/libcore_lib_shared.so"]},
173 x86 : {srcs : ["lib/x86/libcore_lib_shared.so"]},
174 x86_64 : {srcs : ["lib/x86-64/libcore_lib_shared.so"]},
Haoxiang Li35d2a702020-04-10 01:19:32 +0000175 },
Tanmay Patil31796c92020-05-18 14:02:48 -0700176 shared_libs : [
177 "libutils",
178 "libcutils",
179 "libbase",
180 "libEGL",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000181 "libGLESv2",
182 "libGLESv3",
183 "libc",
184 "libm",
185 "libdl",
186 "libz",
187 "liblog",
188 ],
189}
190
Tanmay Patil31796c92020-05-18 14:02:48 -0700191prebuilt_etc{
192 name : "cam0.png",
193 src : "test_data/0.png",
194 sub_dir : "automotive/sv",
195}
196
197prebuilt_etc{
198 name : "cam1.png",
199 src : "test_data/1.png",
200 sub_dir : "automotive/sv",
201}
202
203prebuilt_etc{
204 name : "cam2.png",
205 src : "test_data/2.png",
206 sub_dir : "automotive/sv",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000207}
208
209prebuilt_etc {
Tanmay Patil31796c92020-05-18 14:02:48 -0700210name:
211 "cam3.png", src : "test_data/3.png", sub_dir : "automotive/sv",
Haoxiang Li35d2a702020-04-10 01:19:32 +0000212}
Tanmay Patil9aa69062020-05-29 17:54:22 -0700213
214prebuilt_etc {
215 name: "cube.obj",
216 src: "test_data/cube.obj",
217 sub_dir: "automotive/sv",
218}
219
220prebuilt_etc {
221 name: "cube.mtl",
222 src: "test_data/cube.mtl",
223 sub_dir: "automotive/sv",
224}