blob: e61aaa33c5e84d8ba5b742d201423f5aa515928f [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 Maltseve2603e32016-10-25 16:03:23 -070017module_prefix = android.hardware.vehicle@2.0
18
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 \
Pavel Maltseve2603e32016-10-25 16:03:23 -070026 vehicle_hal_manager/SubscriptionManager.cpp \
27 vehicle_hal_manager/VehicleHalManager.cpp \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070028
29LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070030 liblog \
31 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080032 libhidlbase \
33 libhidltransport \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070034 libhwbinder \
35 libutils \
Pavel Maltseve2603e32016-10-25 16:03:23 -070036 $(module_prefix) \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070037
Pavel Maltseve2603e32016-10-25 16:03:23 -070038include $(BUILD_STATIC_LIBRARY)
Pavel Maltseva2f426a2016-10-04 10:17:05 -070039
Pavel Maltseve2603e32016-10-25 16:03:23 -070040###############################################################################
41# Vehicle default VehicleHAL implementation
42###############################################################################
Pavel Maltseva2f426a2016-10-04 10:17:05 -070043include $(CLEAR_VARS)
Pavel Maltseve2603e32016-10-25 16:03:23 -070044
45LOCAL_MODULE:= $(module_prefix)-default-impl-lib
46LOCAL_SRC_FILES:= \
47 impl/DefaultVehicleHal.cpp \
48
49LOCAL_SHARED_LIBRARIES := \
50 liblog \
51 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080052 libhidlbase \
53 libhidltransport \
Pavel Maltseve2603e32016-10-25 16:03:23 -070054 libhwbinder \
55 libutils \
56 $(module_prefix) \
57
58include $(BUILD_STATIC_LIBRARY)
59
60
61###############################################################################
62# Vehicle reference implementation unit tests
63###############################################################################
64include $(CLEAR_VARS)
65
66LOCAL_MODULE:= $(module_prefix)-manager-unit-tests
67
68LOCAL_WHOLE_STATIC_LIBRARIES := $(module_prefix)-manager-lib
69
70LOCAL_SRC_FILES:= \
Pavel Maltsev7cb0bf32016-12-02 16:52:39 -080071 tests/AccessControlConfigParser_test.cpp \
Pavel Maltseve2603e32016-10-25 16:03:23 -070072 tests/VehicleObjectPool_test.cpp \
73 tests/VehiclePropConfigIndex_test.cpp \
74 tests/SubscriptionManager_test.cpp \
75 tests/VehicleHalManager_test.cpp \
76
77LOCAL_SHARED_LIBRARIES := \
78 liblog \
79 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080080 libhidlbase \
81 libhidltransport \
Pavel Maltseve2603e32016-10-25 16:03:23 -070082 libhwbinder \
83 libutils \
84 $(module_prefix) \
85
86LOCAL_CFLAGS += -Wall -Wextra
87LOCAL_MODULE_TAGS := tests
88
89include $(BUILD_NATIVE_TEST)
90
91
92###############################################################################
93# Vehicle HAL service
94###############################################################################
95include $(CLEAR_VARS)
96LOCAL_MODULE := $(module_prefix)-service
Pavel Maltsevaab54212016-11-08 11:16:39 -080097LOCAL_INIT_RC := $(module_prefix)-service.rc
Pavel Maltseva2f426a2016-10-04 10:17:05 -070098LOCAL_MODULE_RELATIVE_PATH := hw
Pavel Maltseve2603e32016-10-25 16:03:23 -070099
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700100LOCAL_SRC_FILES := \
101 VehicleService.cpp
102
Pavel Maltseve2603e32016-10-25 16:03:23 -0700103LOCAL_WHOLE_STATIC_LIBRARIES := \
104 $(module_prefix)-manager-lib \
105 $(module_prefix)-default-impl-lib \
106
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700107LOCAL_SHARED_LIBRARIES := \
108 liblog \
109 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -0800110 libhidlbase \
111 libhidltransport \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700112 libhwbinder \
113 libutils \
114 android.hardware.vehicle@2.0
115
116include $(BUILD_EXECUTABLE)