Tri Vo | fc87140 | 2017-07-10 17:13:23 -0700 | [diff] [blame] | 1 | // Copyright (C) 2017 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | cc_defaults { |
| 16 | name: "vhal_v2_1_defaults", |
| 17 | defaults: ["vhal_v2_0_defaults"], |
| 18 | shared_libs: [ |
| 19 | "libhwbinder", |
| 20 | "android.hardware.automotive.vehicle@2.1", |
| 21 | ], |
| 22 | } |
| 23 | |
| 24 | // Vehicle reference implementation lib |
| 25 | cc_library_static { |
| 26 | name: "android.hardware.automotive.vehicle@2.1-manager-lib", |
Tri Vo | 22b2d68 | 2017-07-11 12:53:12 -0700 | [diff] [blame] | 27 | vendor: true, |
Tri Vo | fc87140 | 2017-07-10 17:13:23 -0700 | [diff] [blame] | 28 | defaults: ["vhal_v2_1_defaults"], |
| 29 | srcs: [ |
| 30 | "common/src/Obd2SensorStore.cpp", |
| 31 | ], |
| 32 | local_include_dirs: ["common/include/vhal_v2_1"], |
| 33 | header_libs: ["vhal_v2_0_common_headers"], |
| 34 | export_include_dirs: ["common/include"], |
| 35 | } |
| 36 | |
| 37 | // Vehicle default VehicleHAL implementation |
| 38 | cc_library_static { |
| 39 | name: "android.hardware.automotive.vehicle@2.1-default-impl-lib", |
Tri Vo | 22b2d68 | 2017-07-11 12:53:12 -0700 | [diff] [blame] | 40 | vendor: true, |
Tri Vo | fc87140 | 2017-07-10 17:13:23 -0700 | [diff] [blame] | 41 | defaults: ["vhal_v2_1_defaults"], |
| 42 | srcs: [ |
| 43 | "impl/vhal_v2_1/EmulatedVehicleHal.cpp", |
| 44 | ], |
| 45 | local_include_dirs: [ |
| 46 | "impl/vhal_v2_1", |
| 47 | "common/include", |
| 48 | ], |
| 49 | export_include_dirs: [ |
| 50 | "impl", |
| 51 | "common/include", |
| 52 | ], |
| 53 | static_libs: [ |
| 54 | "android.hardware.automotive.vehicle@2.0-default-impl-lib", |
| 55 | "android.hardware.automotive.vehicle@2.0-libproto-native", |
| 56 | "android.hardware.automotive.vehicle@2.0-manager-lib", |
| 57 | "android.hardware.automotive.vehicle@2.1-manager-lib", |
| 58 | "libqemu_pipe", |
| 59 | ], |
| 60 | shared_libs: [ |
| 61 | "libbase", |
| 62 | "libprotobuf-cpp-lite", |
| 63 | ], |
| 64 | } |
| 65 | |
| 66 | cc_binary { |
| 67 | name: "android.hardware.automotive.vehicle@2.1-service", |
| 68 | defaults: ["vhal_v2_1_defaults"], |
| 69 | init_rc: ["android.hardware.automotive.vehicle@2.1-service.rc"], |
Tri Vo | 22b2d68 | 2017-07-11 12:53:12 -0700 | [diff] [blame] | 70 | vendor: true, |
Tri Vo | fc87140 | 2017-07-10 17:13:23 -0700 | [diff] [blame] | 71 | relative_install_path: "hw", |
| 72 | srcs: ["service.cpp"], |
| 73 | whole_static_libs: ["android.hardware.automotive.vehicle@2.0-libproto-native"], |
| 74 | static_libs: [ |
| 75 | "android.hardware.automotive.vehicle@2.0-default-impl-lib", |
| 76 | "android.hardware.automotive.vehicle@2.0-manager-lib", |
| 77 | "android.hardware.automotive.vehicle@2.1-default-impl-lib", |
| 78 | "android.hardware.automotive.vehicle@2.1-manager-lib", |
| 79 | "libqemu_pipe", |
| 80 | ], |
| 81 | shared_libs: [ |
| 82 | "libbase", |
| 83 | "libhwbinder", |
| 84 | "libprotobuf-cpp-lite", |
| 85 | ], |
| 86 | } |