blob: 46733e5d68500597def296d281d1a0c505ff4cac [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 \
Yifan Hong6b920e42016-11-16 14:17:58 -080031 libhidlbase \
32 libhidltransport \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070033 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 \
Yifan Hong6b920e42016-11-16 14:17:58 -080051 libhidlbase \
52 libhidltransport \
Pavel Maltseve2603e32016-10-25 16:03:23 -070053 libhwbinder \
54 libutils \
55 $(module_prefix) \
56
57include $(BUILD_STATIC_LIBRARY)
58
59
60###############################################################################
61# Vehicle reference implementation unit tests
62###############################################################################
63include $(CLEAR_VARS)
64
65LOCAL_MODULE:= $(module_prefix)-manager-unit-tests
66
67LOCAL_WHOLE_STATIC_LIBRARIES := $(module_prefix)-manager-lib
68
69LOCAL_SRC_FILES:= \
70 tests/VehicleObjectPool_test.cpp \
71 tests/VehiclePropConfigIndex_test.cpp \
72 tests/SubscriptionManager_test.cpp \
73 tests/VehicleHalManager_test.cpp \
74
75LOCAL_SHARED_LIBRARIES := \
76 liblog \
77 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080078 libhidlbase \
79 libhidltransport \
Pavel Maltseve2603e32016-10-25 16:03:23 -070080 libhwbinder \
81 libutils \
82 $(module_prefix) \
83
84LOCAL_CFLAGS += -Wall -Wextra
85LOCAL_MODULE_TAGS := tests
86
87include $(BUILD_NATIVE_TEST)
88
89
90###############################################################################
91# Vehicle HAL service
92###############################################################################
93include $(CLEAR_VARS)
94LOCAL_MODULE := $(module_prefix)-service
Pavel Maltsevaab54212016-11-08 11:16:39 -080095LOCAL_INIT_RC := $(module_prefix)-service.rc
Pavel Maltseva2f426a2016-10-04 10:17:05 -070096LOCAL_MODULE_RELATIVE_PATH := hw
Pavel Maltseve2603e32016-10-25 16:03:23 -070097
Pavel Maltseva2f426a2016-10-04 10:17:05 -070098LOCAL_SRC_FILES := \
99 VehicleService.cpp
100
Pavel Maltseve2603e32016-10-25 16:03:23 -0700101LOCAL_WHOLE_STATIC_LIBRARIES := \
102 $(module_prefix)-manager-lib \
103 $(module_prefix)-default-impl-lib \
104
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700105LOCAL_SHARED_LIBRARIES := \
106 liblog \
107 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -0800108 libhidlbase \
109 libhidltransport \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700110 libhwbinder \
111 libutils \
112 android.hardware.vehicle@2.0
113
114include $(BUILD_EXECUTABLE)