blob: 5956743d8138e85da71d9300f40c4cd6214ca4db [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 := \
Steve Paika59644a2017-02-08 13:51:55 -080042 libbase \
Pavel Maltsevc5344ac2017-02-08 12:33:46 -080043 libbinder \
44 libhidlbase \
45 libhidltransport \
46 libhwbinder \
47 liblog \
48 libutils \
49 libprotobuf-cpp-lite \
50 $(vhal_v2_0) \
51 $(vhal_v2_1) \
52
Steve Paika59644a2017-02-08 13:51:55 -080053LOCAL_CFLAGS += -Wall -Wextra -Werror
54
Pavel Maltsevc5344ac2017-02-08 12:33:46 -080055include $(BUILD_STATIC_LIBRARY)
56
57###############################################################################
58# Vehicle HAL service
59###############################################################################
60include $(CLEAR_VARS)
61LOCAL_MODULE := $(vhal_v2_1)-service
62LOCAL_INIT_RC := $(vhal_v2_1)-service.rc
63LOCAL_MODULE_RELATIVE_PATH := hw
Pavel Maltsev59f79d02017-02-21 12:57:41 -080064LOCAL_PROPRIETARY_MODULE := true
Pavel Maltsevc5344ac2017-02-08 12:33:46 -080065LOCAL_SRC_FILES := \
66 service.cpp
67
68LOCAL_WHOLE_STATIC_LIBRARIES := \
69 $(vhal_v2_0)-libproto-native \
70
71LOCAL_STATIC_LIBRARIES := \
72 $(vhal_v2_0)-manager-lib \
73 $(vhal_v2_0)-default-impl-lib \
74 $(vhal_v2_1)-default-impl-lib \
75
76LOCAL_SHARED_LIBRARIES := \
Steve Paika59644a2017-02-08 13:51:55 -080077 libbase \
Pavel Maltsevc5344ac2017-02-08 12:33:46 -080078 libbinder \
79 libhidlbase \
80 libhidltransport \
81 libhwbinder \
82 liblog \
83 libutils \
84 libprotobuf-cpp-lite \
85 $(vhal_v2_0) \
86 $(vhal_v2_1) \
87
Steve Paika59644a2017-02-08 13:51:55 -080088LOCAL_CFLAGS += -Wall -Wextra -Werror
89
Pavel Maltsevc5344ac2017-02-08 12:33:46 -080090include $(BUILD_EXECUTABLE)