blob: 1874cb30483a01127b4463a997eb82cf0790f8c5 [file] [log] [blame]
Pavel Maltsevc5344ac2017-02-08 12:33:46 -08001# 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 default VehicleHAL implementation
22###############################################################################
23include $(CLEAR_VARS)
24
25LOCAL_MODULE:= $(vhal_v2_1)-default-impl-lib
26
27LOCAL_C_INCLUDES := \
28 $(LOCAL_PATH)/impl/vhal_v2_1
29
30LOCAL_EXPORT_C_INCLUDE_DIRS := \
31 $(LOCAL_PATH)/impl
32
33
34# LOCAL_WHOLE_STATIC_LIBRARIES := \
35
36LOCAL_STATIC_LIBRARIES := \
37 $(vhal_v2_0)-default-impl-lib \
38 $(vhal_v2_0)-manager-lib \
39 $(vhal_v2_0)-libproto-native
40
41LOCAL_SHARED_LIBRARIES := \
42 libbinder \
43 libhidlbase \
44 libhidltransport \
45 libhwbinder \
46 liblog \
47 libutils \
48 libprotobuf-cpp-lite \
49 $(vhal_v2_0) \
50 $(vhal_v2_1) \
51
52include $(BUILD_STATIC_LIBRARY)
53
54###############################################################################
55# Vehicle HAL service
56###############################################################################
57include $(CLEAR_VARS)
58LOCAL_MODULE := $(vhal_v2_1)-service
59LOCAL_INIT_RC := $(vhal_v2_1)-service.rc
60LOCAL_MODULE_RELATIVE_PATH := hw
61
62LOCAL_SRC_FILES := \
63 service.cpp
64
65LOCAL_WHOLE_STATIC_LIBRARIES := \
66 $(vhal_v2_0)-libproto-native \
67
68LOCAL_STATIC_LIBRARIES := \
69 $(vhal_v2_0)-manager-lib \
70 $(vhal_v2_0)-default-impl-lib \
71 $(vhal_v2_1)-default-impl-lib \
72
73LOCAL_SHARED_LIBRARIES := \
74 libbinder \
75 libhidlbase \
76 libhidltransport \
77 libhwbinder \
78 liblog \
79 libutils \
80 libprotobuf-cpp-lite \
81 $(vhal_v2_0) \
82 $(vhal_v2_1) \
83
84include $(BUILD_EXECUTABLE)