Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 1 | # Copyright (C) 2016 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 | LOCAL_PATH := $(call my-dir) |
| 16 | |
| 17 | vhal_v2_0 = android.hardware.automotive.vehicle@2.0 |
| 18 | vhal_v2_1 = android.hardware.automotive.vehicle@2.1 |
| 19 | |
| 20 | ############################################################################### |
Enrico Granata | 7debe91 | 2017-02-21 14:28:27 -0800 | [diff] [blame] | 21 | # Vehicle reference implementation lib |
| 22 | ############################################################################### |
| 23 | include $(CLEAR_VARS) |
| 24 | LOCAL_MODULE := $(vhal_v2_1)-manager-lib |
| 25 | LOCAL_SRC_FILES := \ |
| 26 | common/src/Obd2SensorStore.cpp |
| 27 | |
| 28 | LOCAL_C_INCLUDES := \ |
| 29 | $(LOCAL_PATH)/common/include/vhal_v2_1 \ |
| 30 | $(LOCAL_PATH)/../../2.0/default/common/include/vhal_v2_0 \ |
| 31 | |
| 32 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 33 | $(LOCAL_PATH)/common/include |
| 34 | |
| 35 | LOCAL_SHARED_LIBRARIES := \ |
| 36 | libbinder \ |
| 37 | libhidlbase \ |
| 38 | libhidltransport \ |
| 39 | libhwbinder \ |
| 40 | liblog \ |
| 41 | libutils \ |
| 42 | $(vhal_v2_1) \ |
| 43 | |
| 44 | include $(BUILD_STATIC_LIBRARY) |
| 45 | |
| 46 | ############################################################################### |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 47 | # Vehicle default VehicleHAL implementation |
| 48 | ############################################################################### |
| 49 | include $(CLEAR_VARS) |
| 50 | |
| 51 | LOCAL_MODULE:= $(vhal_v2_1)-default-impl-lib |
Enrico Granata | 7debe91 | 2017-02-21 14:28:27 -0800 | [diff] [blame] | 52 | LOCAL_SRC_FILES:= \ |
| 53 | impl/vhal_v2_1/DefaultVehicleHal.cpp \ |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 54 | |
| 55 | LOCAL_C_INCLUDES := \ |
Enrico Granata | 7debe91 | 2017-02-21 14:28:27 -0800 | [diff] [blame] | 56 | $(LOCAL_PATH)/impl/vhal_v2_1 \ |
| 57 | $(LOCAL_PATH)/common/include |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 58 | |
| 59 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
Enrico Granata | 7debe91 | 2017-02-21 14:28:27 -0800 | [diff] [blame] | 60 | $(LOCAL_PATH)/impl \ |
| 61 | $(LOCAL_PATH)/common/include |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 62 | |
| 63 | |
| 64 | # LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 65 | |
| 66 | LOCAL_STATIC_LIBRARIES := \ |
| 67 | $(vhal_v2_0)-default-impl-lib \ |
| 68 | $(vhal_v2_0)-manager-lib \ |
bohu | 48e4002 | 2017-03-29 12:21:27 -0700 | [diff] [blame^] | 69 | libqemu_pipe \ |
Enrico Granata | 7debe91 | 2017-02-21 14:28:27 -0800 | [diff] [blame] | 70 | $(vhal_v2_1)-manager-lib \ |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 71 | $(vhal_v2_0)-libproto-native |
| 72 | |
| 73 | LOCAL_SHARED_LIBRARIES := \ |
Steve Paik | a59644a | 2017-02-08 13:51:55 -0800 | [diff] [blame] | 74 | libbase \ |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 75 | libbinder \ |
| 76 | libhidlbase \ |
| 77 | libhidltransport \ |
| 78 | libhwbinder \ |
| 79 | liblog \ |
| 80 | libutils \ |
| 81 | libprotobuf-cpp-lite \ |
| 82 | $(vhal_v2_0) \ |
| 83 | $(vhal_v2_1) \ |
| 84 | |
Steve Paik | a59644a | 2017-02-08 13:51:55 -0800 | [diff] [blame] | 85 | LOCAL_CFLAGS += -Wall -Wextra -Werror |
| 86 | |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 87 | include $(BUILD_STATIC_LIBRARY) |
| 88 | |
| 89 | ############################################################################### |
| 90 | # Vehicle HAL service |
| 91 | ############################################################################### |
| 92 | include $(CLEAR_VARS) |
| 93 | LOCAL_MODULE := $(vhal_v2_1)-service |
| 94 | LOCAL_INIT_RC := $(vhal_v2_1)-service.rc |
| 95 | LOCAL_MODULE_RELATIVE_PATH := hw |
Pavel Maltsev | 59f79d0 | 2017-02-21 12:57:41 -0800 | [diff] [blame] | 96 | LOCAL_PROPRIETARY_MODULE := true |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 97 | LOCAL_SRC_FILES := \ |
| 98 | service.cpp |
| 99 | |
| 100 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 101 | $(vhal_v2_0)-libproto-native \ |
| 102 | |
| 103 | LOCAL_STATIC_LIBRARIES := \ |
| 104 | $(vhal_v2_0)-manager-lib \ |
| 105 | $(vhal_v2_0)-default-impl-lib \ |
| 106 | $(vhal_v2_1)-default-impl-lib \ |
bohu | 48e4002 | 2017-03-29 12:21:27 -0700 | [diff] [blame^] | 107 | libqemu_pipe \ |
Enrico Granata | 7debe91 | 2017-02-21 14:28:27 -0800 | [diff] [blame] | 108 | $(vhal_v2_1)-manager-lib \ |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 109 | |
| 110 | LOCAL_SHARED_LIBRARIES := \ |
Steve Paik | a59644a | 2017-02-08 13:51:55 -0800 | [diff] [blame] | 111 | libbase \ |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 112 | libbinder \ |
| 113 | libhidlbase \ |
| 114 | libhidltransport \ |
| 115 | libhwbinder \ |
| 116 | liblog \ |
| 117 | libutils \ |
| 118 | libprotobuf-cpp-lite \ |
| 119 | $(vhal_v2_0) \ |
| 120 | $(vhal_v2_1) \ |
| 121 | |
Steve Paik | a59644a | 2017-02-08 13:51:55 -0800 | [diff] [blame] | 122 | LOCAL_CFLAGS += -Wall -Wextra -Werror |
| 123 | |
Pavel Maltsev | c5344ac | 2017-02-08 12:33:46 -0800 | [diff] [blame] | 124 | include $(BUILD_EXECUTABLE) |