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