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 | |
| 17 | cc_binary { |
| 18 | name: "android.automotive.sv.service@1.0-impl", |
| 19 | vendor: true, |
| 20 | srcs: [ |
| 21 | "CoreLibSetupHelper.cpp", |
| 22 | "SurroundViewService.cpp", |
| 23 | "SurroundView2dSession.cpp", |
| 24 | "SurroundView3dSession.cpp", |
| 25 | "service.cpp", |
| 26 | ], |
| 27 | init_rc: ["android.automotive.sv.service@1.0-impl.rc"], |
| 28 | shared_libs: [ |
| 29 | "android.hardware.automotive.sv@1.0", |
| 30 | "android.hidl.memory@1.0", |
| 31 | "libbase", |
| 32 | "libbinder", |
| 33 | "libcore_lib_shared", |
| 34 | "libcutils", |
| 35 | "libhardware", |
| 36 | "libhidlbase", |
| 37 | "libhidlmemory", |
| 38 | "libui", |
| 39 | "libutils", |
| 40 | ], |
| 41 | required: [ |
| 42 | "cam0.png", |
| 43 | "cam1.png", |
| 44 | "cam2.png", |
| 45 | "cam3.png", |
| 46 | ], |
| 47 | // Disable builds except for arm64 and emulator devices |
| 48 | enabled: false, |
| 49 | arch: { |
| 50 | arm64: { |
| 51 | enabled: true, |
| 52 | }, |
| 53 | x86: { |
| 54 | enabled: true, |
| 55 | }, |
| 56 | x86_64: { |
| 57 | enabled: true, |
| 58 | }, |
| 59 | }, |
| 60 | vintf_fragments: [ |
| 61 | "manifest_android.hardware.automotive.sv@1.0.xml", |
| 62 | ], |
| 63 | } |
| 64 | |
| 65 | cc_prebuilt_library_shared { |
| 66 | name: "libcore_lib_shared", |
| 67 | proprietary: true, |
| 68 | arch: { |
| 69 | arm64: { |
| 70 | srcs: ["lib/arm64/libcore_lib_shared.so"] |
| 71 | }, |
| 72 | x86: { |
| 73 | srcs: ["lib/x86/libcore_lib.so"] |
| 74 | }, |
| 75 | x86_64: { |
| 76 | srcs: ["lib/x86-64/libcore_lib.so"] |
| 77 | }, |
| 78 | }, |
| 79 | shared_libs: [ |
| 80 | "libEGL", |
| 81 | "libGLESv2", |
| 82 | "libGLESv3", |
| 83 | "libc", |
| 84 | "libm", |
| 85 | "libdl", |
| 86 | "libz", |
| 87 | "liblog", |
| 88 | ], |
| 89 | } |
| 90 | |
| 91 | prebuilt_etc { |
| 92 | name: "cam0.png", |
| 93 | src: "test_data/0.png", |
| 94 | sub_dir: "automotive/sv", |
| 95 | } |
| 96 | |
| 97 | prebuilt_etc { |
| 98 | name: "cam1.png", |
| 99 | src: "test_data/1.png", |
| 100 | sub_dir: "automotive/sv", |
| 101 | } |
| 102 | |
| 103 | prebuilt_etc { |
| 104 | name: "cam2.png", |
| 105 | src: "test_data/2.png", |
| 106 | sub_dir: "automotive/sv", |
| 107 | } |
| 108 | |
| 109 | prebuilt_etc { |
| 110 | name: "cam3.png", |
| 111 | src: "test_data/3.png", |
| 112 | sub_dir: "automotive/sv", |
| 113 | } |
| 114 | |