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