Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 1 | // |
| 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 Patil | 9aa6906 | 2020-05-29 17:54:22 -0700 | [diff] [blame] | 17 | cc_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 | |
| 29 | cc_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 Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 46 | cc_library{ |
Xiangfei Qian | 35d4bd4 | 2020-05-29 16:35:09 -0700 | [diff] [blame] | 47 | 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 | |
| 60 | cc_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 | |
| 76 | cc_library{ |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 77 | 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 | |
| 96 | cc_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 | |
| 115 | cc_binary{ |
| 116 | name : "android.automotive.sv.service@1.0-impl", |
| 117 | vendor : true, |
| 118 | srcs : [ |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 119 | "CoreLibSetupHelper.cpp", |
| 120 | "SurroundViewService.cpp", |
| 121 | "SurroundView2dSession.cpp", |
| 122 | "SurroundView3dSession.cpp", |
Haoxiang Li | f488c7e | 2020-05-27 09:12:13 -0700 | [diff] [blame] | 123 | "VhalHandler.cpp", |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 124 | "service.cpp", |
| 125 | ], |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 126 | init_rc : ["android.automotive.sv.service@1.0-impl.rc"], |
| 127 | shared_libs : [ |
Haoxiang Li | 070f17d | 2020-05-28 14:06:25 -0700 | [diff] [blame] | 128 | "android.hardware.automotive.evs@1.1", |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 129 | "android.hardware.automotive.sv@1.0", |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 130 | "android.hardware.automotive.vehicle@2.0", |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 131 | "android.hidl.memory@1.0", |
| 132 | "libbase", |
| 133 | "libbinder", |
Haoxiang Li | 070f17d | 2020-05-28 14:06:25 -0700 | [diff] [blame] | 134 | "libcamera_metadata", |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 135 | "libcore_lib_shared", |
| 136 | "libcutils", |
| 137 | "libhardware", |
| 138 | "libhidlbase", |
| 139 | "libhidlmemory", |
| 140 | "libui", |
| 141 | "libutils", |
| 142 | ], |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 143 | required : [ |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 144 | "cam0.png", |
| 145 | "cam1.png", |
| 146 | "cam2.png", |
| 147 | "cam3.png", |
| 148 | ], |
| 149 | // Disable builds except for arm64 and emulator devices |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 150 | enabled : false, |
| 151 | arch : { |
| 152 | arm64 : { |
| 153 | enabled : true, |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 154 | }, |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 155 | x86 : { |
| 156 | enabled : true, |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 157 | }, |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 158 | x86_64 : { |
| 159 | enabled : true, |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 160 | }, |
| 161 | }, |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 162 | vintf_fragments : [ |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 163 | "manifest_android.hardware.automotive.sv@1.0.xml", |
| 164 | ], |
| 165 | } |
| 166 | |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 167 | cc_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 Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 174 | }, |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 175 | shared_libs : [ |
| 176 | "libutils", |
| 177 | "libcutils", |
| 178 | "libbase", |
| 179 | "libEGL", |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 180 | "libGLESv2", |
| 181 | "libGLESv3", |
| 182 | "libc", |
| 183 | "libm", |
| 184 | "libdl", |
| 185 | "libz", |
| 186 | "liblog", |
| 187 | ], |
| 188 | } |
| 189 | |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 190 | prebuilt_etc{ |
| 191 | name : "cam0.png", |
| 192 | src : "test_data/0.png", |
| 193 | sub_dir : "automotive/sv", |
| 194 | } |
| 195 | |
| 196 | prebuilt_etc{ |
| 197 | name : "cam1.png", |
| 198 | src : "test_data/1.png", |
| 199 | sub_dir : "automotive/sv", |
| 200 | } |
| 201 | |
| 202 | prebuilt_etc{ |
| 203 | name : "cam2.png", |
| 204 | src : "test_data/2.png", |
| 205 | sub_dir : "automotive/sv", |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 206 | } |
| 207 | |
| 208 | prebuilt_etc { |
Tanmay Patil | 31796c9 | 2020-05-18 14:02:48 -0700 | [diff] [blame] | 209 | name: |
| 210 | "cam3.png", src : "test_data/3.png", sub_dir : "automotive/sv", |
Haoxiang Li | 35d2a70 | 2020-04-10 01:19:32 +0000 | [diff] [blame] | 211 | } |
Tanmay Patil | 9aa6906 | 2020-05-29 17:54:22 -0700 | [diff] [blame] | 212 | |
| 213 | prebuilt_etc { |
| 214 | name: "cube.obj", |
| 215 | src: "test_data/cube.obj", |
| 216 | sub_dir: "automotive/sv", |
| 217 | } |
| 218 | |
| 219 | prebuilt_etc { |
| 220 | name: "cube.mtl", |
| 221 | src: "test_data/cube.mtl", |
| 222 | sub_dir: "automotive/sv", |
| 223 | } |