blob: e14cb19114ecec689b6cb3e495e57efb6b41574c [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 Maltseve2603e32016-10-25 16:03:23 -070025 vehicle_hal_manager/SubscriptionManager.cpp \
26 vehicle_hal_manager/VehicleHalManager.cpp \
27 vehicle_hal_manager/VehicleCallback.cpp \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070028
29LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070030 liblog \
31 libbinder \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070032 libhidl \
33 libhwbinder \
34 libutils \
Pavel Maltseve2603e32016-10-25 16:03:23 -070035 $(module_prefix) \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070036
Pavel Maltseve2603e32016-10-25 16:03:23 -070037include $(BUILD_STATIC_LIBRARY)
Pavel Maltseva2f426a2016-10-04 10:17:05 -070038
Pavel Maltseve2603e32016-10-25 16:03:23 -070039###############################################################################
40# Vehicle default VehicleHAL implementation
41###############################################################################
Pavel Maltseva2f426a2016-10-04 10:17:05 -070042include $(CLEAR_VARS)
Pavel Maltseve2603e32016-10-25 16:03:23 -070043
44LOCAL_MODULE:= $(module_prefix)-default-impl-lib
45LOCAL_SRC_FILES:= \
46 impl/DefaultVehicleHal.cpp \
47
48LOCAL_SHARED_LIBRARIES := \
49 liblog \
50 libbinder \
51 libhidl \
52 libhwbinder \
53 libutils \
54 $(module_prefix) \
55
56include $(BUILD_STATIC_LIBRARY)
57
58
59###############################################################################
60# Vehicle reference implementation unit tests
61###############################################################################
62include $(CLEAR_VARS)
63
64LOCAL_MODULE:= $(module_prefix)-manager-unit-tests
65
66LOCAL_WHOLE_STATIC_LIBRARIES := $(module_prefix)-manager-lib
67
68LOCAL_SRC_FILES:= \
69 tests/VehicleObjectPool_test.cpp \
70 tests/VehiclePropConfigIndex_test.cpp \
71 tests/SubscriptionManager_test.cpp \
72 tests/VehicleHalManager_test.cpp \
73
74LOCAL_SHARED_LIBRARIES := \
75 liblog \
76 libbinder \
77 libhidl \
78 libhwbinder \
79 libutils \
80 $(module_prefix) \
81
82LOCAL_CFLAGS += -Wall -Wextra
83LOCAL_MODULE_TAGS := tests
84
85include $(BUILD_NATIVE_TEST)
86
87
88###############################################################################
89# Vehicle HAL service
90###############################################################################
91include $(CLEAR_VARS)
92LOCAL_MODULE := $(module_prefix)-service
Pavel Maltseva2f426a2016-10-04 10:17:05 -070093LOCAL_MODULE_RELATIVE_PATH := hw
Pavel Maltseve2603e32016-10-25 16:03:23 -070094# TODO(pavelm): add LOCAL_INIT_RC
95
Pavel Maltseva2f426a2016-10-04 10:17:05 -070096LOCAL_SRC_FILES := \
97 VehicleService.cpp
98
Pavel Maltseve2603e32016-10-25 16:03:23 -070099LOCAL_WHOLE_STATIC_LIBRARIES := \
100 $(module_prefix)-manager-lib \
101 $(module_prefix)-default-impl-lib \
102
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700103LOCAL_SHARED_LIBRARIES := \
104 liblog \
105 libbinder \
106 libhidl \
107 libhwbinder \
108 libutils \
109 android.hardware.vehicle@2.0
110
111include $(BUILD_EXECUTABLE)