]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-hardware-interfaces.git/blob - automotive/vehicle/2.1/default/Android.mk
libhwminijail from hardware/interfaces to libhidl.
[android/platform-hardware-interfaces.git] / automotive / vehicle / 2.1 / default / Android.mk
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.
15 LOCAL_PATH := $(call my-dir)
17 vhal_v2_0 = android.hardware.automotive.vehicle@2.0
18 vhal_v2_1 = android.hardware.automotive.vehicle@2.1
20 ###############################################################################
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
28 LOCAL_C_INCLUDES := \
29     $(LOCAL_PATH)/common/include/vhal_v2_1 \
30     $(LOCAL_PATH)/../../2.0/default/common/include/vhal_v2_0 \
32 LOCAL_EXPORT_C_INCLUDE_DIRS := \
33     $(LOCAL_PATH)/common/include
35 LOCAL_SHARED_LIBRARIES := \
36     libhidlbase \
37     libhidltransport \
38     libhwbinder \
39     liblog \
40     libutils \
41     $(vhal_v2_1) \
43 include $(BUILD_STATIC_LIBRARY)
45 ###############################################################################
46 # Vehicle default VehicleHAL implementation
47 ###############################################################################
48 include $(CLEAR_VARS)
50 LOCAL_MODULE:= $(vhal_v2_1)-default-impl-lib
51 LOCAL_SRC_FILES:= \
52     impl/vhal_v2_1/EmulatedVehicleHal.cpp \
54 LOCAL_C_INCLUDES := \
55     $(LOCAL_PATH)/impl/vhal_v2_1 \
56     $(LOCAL_PATH)/common/include
58 LOCAL_EXPORT_C_INCLUDE_DIRS := \
59     $(LOCAL_PATH)/impl \
60     $(LOCAL_PATH)/common/include
63 # LOCAL_WHOLE_STATIC_LIBRARIES := \
65 LOCAL_STATIC_LIBRARIES := \
66     $(vhal_v2_0)-default-impl-lib \
67     $(vhal_v2_0)-manager-lib \
68     libqemu_pipe \
69     $(vhal_v2_1)-manager-lib \
70     $(vhal_v2_0)-libproto-native
72 LOCAL_SHARED_LIBRARIES := \
73     libbase \
74     libhidlbase \
75     libhidltransport \
76     libhwbinder \
77     liblog \
78     libutils \
79     libprotobuf-cpp-lite \
80     $(vhal_v2_0) \
81     $(vhal_v2_1) \
83 LOCAL_CFLAGS += -Wall -Wextra -Werror
85 include $(BUILD_STATIC_LIBRARY)
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
94 LOCAL_PROPRIETARY_MODULE := true
95 LOCAL_SRC_FILES := \
96     service.cpp
98 LOCAL_WHOLE_STATIC_LIBRARIES := \
99     $(vhal_v2_0)-libproto-native \
101 LOCAL_STATIC_LIBRARIES := \
102     $(vhal_v2_0)-manager-lib \
103     $(vhal_v2_0)-default-impl-lib \
104     $(vhal_v2_1)-default-impl-lib \
105     libqemu_pipe \
106     $(vhal_v2_1)-manager-lib \
108 LOCAL_SHARED_LIBRARIES := \
109     libbase \
110     libhidlbase \
111     libhidltransport \
112     libhwbinder \
113     liblog \
114     libutils \
115     libprotobuf-cpp-lite \
116     $(vhal_v2_0) \
117     $(vhal_v2_1) \
119 LOCAL_CFLAGS += -Wall -Wextra -Werror
121 include $(BUILD_EXECUTABLE)