blob: a346507d0af6975af7c8cbec244bc12fe854b284 [file] [log] [blame]
Pavel Maltseva2f426a2016-10-04 10:17:05 -07001# 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
Pavel Maltsev2579fb72017-02-02 12:39:36 -080017module_prefix = android.hardware.automotive.vehicle@2.0
Pavel Maltseve2603e32016-10-25 16:03:23 -070018
19###############################################################################
20# Vehicle reference implementation lib
21###############################################################################
Pavel Maltseva2f426a2016-10-04 10:17:05 -070022include $(CLEAR_VARS)
Pavel Maltseve2603e32016-10-25 16:03:23 -070023LOCAL_MODULE := $(module_prefix)-manager-lib
Pavel Maltseva2f426a2016-10-04 10:17:05 -070024LOCAL_SRC_FILES := \
Pavel Maltsev7cb0bf32016-12-02 16:52:39 -080025 vehicle_hal_manager/AccessControlConfigParser.cpp \
Enrico Granataadcb7c72017-01-25 12:07:15 -080026 vehicle_hal_manager/Obd2SensorStore.cpp \
Pavel Maltseve2603e32016-10-25 16:03:23 -070027 vehicle_hal_manager/SubscriptionManager.cpp \
28 vehicle_hal_manager/VehicleHalManager.cpp \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080029 vehicle_hal_manager/VehicleObjectPool.cpp \
30 vehicle_hal_manager/VehicleUtils.cpp \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070031
32LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070033 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080034 libhidlbase \
35 libhidltransport \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070036 libhwbinder \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080037 liblog \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070038 libutils \
Pavel Maltseve2603e32016-10-25 16:03:23 -070039 $(module_prefix) \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070040
Pavel Maltseve2603e32016-10-25 16:03:23 -070041include $(BUILD_STATIC_LIBRARY)
Pavel Maltseva2f426a2016-10-04 10:17:05 -070042
Pavel Maltseve2603e32016-10-25 16:03:23 -070043###############################################################################
44# Vehicle default VehicleHAL implementation
45###############################################################################
Pavel Maltseva2f426a2016-10-04 10:17:05 -070046include $(CLEAR_VARS)
Pavel Maltseve2603e32016-10-25 16:03:23 -070047
48LOCAL_MODULE:= $(module_prefix)-default-impl-lib
49LOCAL_SRC_FILES:= \
50 impl/DefaultVehicleHal.cpp \
51
52LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070053 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080054 libhidlbase \
55 libhidltransport \
Pavel Maltseve2603e32016-10-25 16:03:23 -070056 libhwbinder \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080057 liblog \
Pavel Maltseve2603e32016-10-25 16:03:23 -070058 libutils \
59 $(module_prefix) \
60
61include $(BUILD_STATIC_LIBRARY)
62
63
64###############################################################################
65# Vehicle reference implementation unit tests
66###############################################################################
67include $(CLEAR_VARS)
68
69LOCAL_MODULE:= $(module_prefix)-manager-unit-tests
70
71LOCAL_WHOLE_STATIC_LIBRARIES := $(module_prefix)-manager-lib
72
73LOCAL_SRC_FILES:= \
Pavel Maltsev7cb0bf32016-12-02 16:52:39 -080074 tests/AccessControlConfigParser_test.cpp \
Enrico Granataadcb7c72017-01-25 12:07:15 -080075 tests/Obd2SensorStore_test.cpp \
Pavel Maltseve2603e32016-10-25 16:03:23 -070076 tests/SubscriptionManager_test.cpp \
77 tests/VehicleHalManager_test.cpp \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080078 tests/VehicleObjectPool_test.cpp \
79 tests/VehiclePropConfigIndex_test.cpp \
Pavel Maltseve2603e32016-10-25 16:03:23 -070080
81LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070082 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080083 libhidlbase \
84 libhidltransport \
Pavel Maltseve2603e32016-10-25 16:03:23 -070085 libhwbinder \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080086 liblog \
Pavel Maltseve2603e32016-10-25 16:03:23 -070087 libutils \
88 $(module_prefix) \
89
90LOCAL_CFLAGS += -Wall -Wextra
91LOCAL_MODULE_TAGS := tests
92
93include $(BUILD_NATIVE_TEST)
94
95
96###############################################################################
97# Vehicle HAL service
98###############################################################################
99include $(CLEAR_VARS)
100LOCAL_MODULE := $(module_prefix)-service
Pavel Maltsevaab54212016-11-08 11:16:39 -0800101LOCAL_INIT_RC := $(module_prefix)-service.rc
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700102LOCAL_MODULE_RELATIVE_PATH := hw
Pavel Maltseve2603e32016-10-25 16:03:23 -0700103
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700104LOCAL_SRC_FILES := \
105 VehicleService.cpp
106
Pavel Maltseve2603e32016-10-25 16:03:23 -0700107LOCAL_WHOLE_STATIC_LIBRARIES := \
108 $(module_prefix)-manager-lib \
109 $(module_prefix)-default-impl-lib \
110
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700111LOCAL_SHARED_LIBRARIES := \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700112 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -0800113 libhidlbase \
114 libhidltransport \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700115 libhwbinder \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -0800116 liblog \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700117 libutils \
Pavel Maltsev2579fb72017-02-02 12:39:36 -0800118 $(module_prefix) \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700119
120include $(BUILD_EXECUTABLE)