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", |
| 27 | defaults: ["vhal_v2_1_defaults"], |
| 28 | srcs: [ |
| 29 | "common/src/Obd2SensorStore.cpp", |
| 30 | ], |
| 31 | local_include_dirs: ["common/include/vhal_v2_1"], |
| 32 | header_libs: ["vhal_v2_0_common_headers"], |
| 33 | export_include_dirs: ["common/include"], |
| 34 | } |
| 35 | |
| 36 | // Vehicle default VehicleHAL implementation |
| 37 | cc_library_static { |
| 38 | name: "android.hardware.automotive.vehicle@2.1-default-impl-lib", |
| 39 | defaults: ["vhal_v2_1_defaults"], |
| 40 | srcs: [ |
| 41 | "impl/vhal_v2_1/EmulatedVehicleHal.cpp", |
| 42 | ], |
| 43 | local_include_dirs: [ |
| 44 | "impl/vhal_v2_1", |
| 45 | "common/include", |
| 46 | ], |
| 47 | export_include_dirs: [ |
| 48 | "impl", |
| 49 | "common/include", |
| 50 | ], |
| 51 | static_libs: [ |
| 52 | "android.hardware.automotive.vehicle@2.0-default-impl-lib", |
| 53 | "android.hardware.automotive.vehicle@2.0-libproto-native", |
| 54 | "android.hardware.automotive.vehicle@2.0-manager-lib", |
| 55 | "android.hardware.automotive.vehicle@2.1-manager-lib", |
| 56 | "libqemu_pipe", |
| 57 | ], |
| 58 | shared_libs: [ |
| 59 | "libbase", |
| 60 | "libprotobuf-cpp-lite", |
| 61 | ], |
| 62 | } |
| 63 | |
| 64 | cc_binary { |
| 65 | name: "android.hardware.automotive.vehicle@2.1-service", |
| 66 | defaults: ["vhal_v2_1_defaults"], |
| 67 | init_rc: ["android.hardware.automotive.vehicle@2.1-service.rc"], |
| 68 | proprietary: true, |
| 69 | relative_install_path: "hw", |
| 70 | srcs: ["service.cpp"], |
| 71 | whole_static_libs: ["android.hardware.automotive.vehicle@2.0-libproto-native"], |
| 72 | static_libs: [ |
| 73 | "android.hardware.automotive.vehicle@2.0-default-impl-lib", |
| 74 | "android.hardware.automotive.vehicle@2.0-manager-lib", |
| 75 | "android.hardware.automotive.vehicle@2.1-default-impl-lib", |
| 76 | "android.hardware.automotive.vehicle@2.1-manager-lib", |
| 77 | "libqemu_pipe", |
| 78 | ], |
| 79 | shared_libs: [ |
| 80 | "libbase", |
| 81 | "libhwbinder", |
| 82 | "libprotobuf-cpp-lite", |
| 83 | ], |
| 84 | } |