blob: 4a27eeb4807f72d6dfd83969c80c097889516669 [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 Maltsev0e0a9252016-12-05 11:03:52 -080028 vehicle_hal_manager/VehicleObjectPool.cpp \
29 vehicle_hal_manager/VehicleUtils.cpp \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070030
31LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070032 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080033 libhidlbase \
34 libhidltransport \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070035 libhwbinder \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080036 liblog \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070037 libutils \
Pavel Maltseve2603e32016-10-25 16:03:23 -070038 $(module_prefix) \
Pavel Maltseva2f426a2016-10-04 10:17:05 -070039
Pavel Maltseve2603e32016-10-25 16:03:23 -070040include $(BUILD_STATIC_LIBRARY)
Pavel Maltseva2f426a2016-10-04 10:17:05 -070041
Pavel Maltseve2603e32016-10-25 16:03:23 -070042###############################################################################
43# Vehicle default VehicleHAL implementation
44###############################################################################
Pavel Maltseva2f426a2016-10-04 10:17:05 -070045include $(CLEAR_VARS)
Pavel Maltseve2603e32016-10-25 16:03:23 -070046
47LOCAL_MODULE:= $(module_prefix)-default-impl-lib
48LOCAL_SRC_FILES:= \
49 impl/DefaultVehicleHal.cpp \
50
51LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070052 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080053 libhidlbase \
54 libhidltransport \
Pavel Maltseve2603e32016-10-25 16:03:23 -070055 libhwbinder \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080056 liblog \
Pavel Maltseve2603e32016-10-25 16:03:23 -070057 libutils \
58 $(module_prefix) \
59
60include $(BUILD_STATIC_LIBRARY)
61
62
63###############################################################################
64# Vehicle reference implementation unit tests
65###############################################################################
66include $(CLEAR_VARS)
67
68LOCAL_MODULE:= $(module_prefix)-manager-unit-tests
69
70LOCAL_WHOLE_STATIC_LIBRARIES := $(module_prefix)-manager-lib
71
72LOCAL_SRC_FILES:= \
Pavel Maltsev7cb0bf32016-12-02 16:52:39 -080073 tests/AccessControlConfigParser_test.cpp \
Pavel Maltseve2603e32016-10-25 16:03:23 -070074 tests/SubscriptionManager_test.cpp \
75 tests/VehicleHalManager_test.cpp \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080076 tests/VehicleObjectPool_test.cpp \
77 tests/VehiclePropConfigIndex_test.cpp \
Pavel Maltseve2603e32016-10-25 16:03:23 -070078
79LOCAL_SHARED_LIBRARIES := \
Pavel Maltseve2603e32016-10-25 16:03:23 -070080 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -080081 libhidlbase \
82 libhidltransport \
Pavel Maltseve2603e32016-10-25 16:03:23 -070083 libhwbinder \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -080084 liblog \
Pavel Maltseve2603e32016-10-25 16:03:23 -070085 libutils \
86 $(module_prefix) \
87
88LOCAL_CFLAGS += -Wall -Wextra
89LOCAL_MODULE_TAGS := tests
90
91include $(BUILD_NATIVE_TEST)
92
93
94###############################################################################
95# Vehicle HAL service
96###############################################################################
97include $(CLEAR_VARS)
98LOCAL_MODULE := $(module_prefix)-service
Pavel Maltsevaab54212016-11-08 11:16:39 -080099LOCAL_INIT_RC := $(module_prefix)-service.rc
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700100LOCAL_MODULE_RELATIVE_PATH := hw
Pavel Maltseve2603e32016-10-25 16:03:23 -0700101
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700102LOCAL_SRC_FILES := \
103 VehicleService.cpp
104
Pavel Maltseve2603e32016-10-25 16:03:23 -0700105LOCAL_WHOLE_STATIC_LIBRARIES := \
106 $(module_prefix)-manager-lib \
107 $(module_prefix)-default-impl-lib \
108
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700109LOCAL_SHARED_LIBRARIES := \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700110 libbinder \
Yifan Hong6b920e42016-11-16 14:17:58 -0800111 libhidlbase \
112 libhidltransport \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700113 libhwbinder \
Pavel Maltsev0e0a9252016-12-05 11:03:52 -0800114 liblog \
Pavel Maltseva2f426a2016-10-04 10:17:05 -0700115 libutils \
116 android.hardware.vehicle@2.0
117
118include $(BUILD_EXECUTABLE)