blob: ccf18b6f6801670f5bac75a4f97102b35854cf10 [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 \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070027
28LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070029 liblog \
30 libbinder \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070031 libhidl \
32 libhwbinder \
33 libutils \
Pavel Maltseve2603e32016-10-25 16:03:23 -070034 $(module_prefix) \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070035
Pavel Maltseve2603e32016-10-25 16:03:23 -070036include $(BUILD_STATIC_LIBRARY)
Pavel Maltseva2f426a2016-10-04 10:17:05 -070037
Pavel Maltseve2603e32016-10-25 16:03:23 -070038###############################################################################
39# Vehicle default VehicleHAL implementation
40###############################################################################
Pavel Maltseva2f426a2016-10-04 10:17:05 -070041include $(CLEAR_VARS)
Pavel Maltseve2603e32016-10-25 16:03:23 -070042
43LOCAL_MODULE:= $(module_prefix)-default-impl-lib
44LOCAL_SRC_FILES:= \
45 impl/DefaultVehicleHal.cpp \
46
47LOCAL_SHARED_LIBRARIES := \
48 liblog \
49 libbinder \
50 libhidl \
51 libhwbinder \
52 libutils \
53 $(module_prefix) \
54
55include $(BUILD_STATIC_LIBRARY)
56
57
58###############################################################################
59# Vehicle reference implementation unit tests
60###############################################################################
61include $(CLEAR_VARS)
62
63LOCAL_MODULE:= $(module_prefix)-manager-unit-tests
64
65LOCAL_WHOLE_STATIC_LIBRARIES := $(module_prefix)-manager-lib
66
67LOCAL_SRC_FILES:= \
68 tests/VehicleObjectPool_test.cpp \
69 tests/VehiclePropConfigIndex_test.cpp \
70 tests/SubscriptionManager_test.cpp \
71 tests/VehicleHalManager_test.cpp \
72
73LOCAL_SHARED_LIBRARIES := \
74 liblog \
75 libbinder \
76 libhidl \
77 libhwbinder \
78 libutils \
79 $(module_prefix) \
80
81LOCAL_CFLAGS += -Wall -Wextra
82LOCAL_MODULE_TAGS := tests
83
84include $(BUILD_NATIVE_TEST)
85
86
87###############################################################################
88# Vehicle HAL service
89###############################################################################
90include $(CLEAR_VARS)
91LOCAL_MODULE := $(module_prefix)-service
Pavel Maltsevaab54212016-11-08 11:16:39 -080092LOCAL_INIT_RC := $(module_prefix)-service.rc
Pavel Maltseva2f426a2016-10-04 10:17:05 -070093LOCAL_MODULE_RELATIVE_PATH := hw
Pavel Maltseve2603e32016-10-25 16:03:23 -070094
Pavel Maltseva2f426a2016-10-04 10:17:05 -070095LOCAL_SRC_FILES := \
96 VehicleService.cpp
97
Pavel Maltseve2603e32016-10-25 16:03:23 -070098LOCAL_WHOLE_STATIC_LIBRARIES := \
99 $(module_prefix)-manager-lib \
100 $(module_prefix)-default-impl-lib \
101
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700102LOCAL_SHARED_LIBRARIES := \
103 liblog \
104 libbinder \
105 libhidl \
106 libhwbinder \
107 libutils \
108 android.hardware.vehicle@2.0
109
110include $(BUILD_EXECUTABLE)