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