Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 1 | # 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 17 | module_prefix = android.hardware.vehicle@2.0 |
| 18 | |
| 19 | ############################################################################### |
| 20 | # Vehicle reference implementation lib |
| 21 | ############################################################################### |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 22 | include $(CLEAR_VARS) |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 23 | LOCAL_MODULE := $(module_prefix)-manager-lib |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 24 | LOCAL_SRC_FILES := \ |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 25 | vehicle_hal_manager/SubscriptionManager.cpp \ |
| 26 | vehicle_hal_manager/VehicleHalManager.cpp \ |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 27 | |
| 28 | LOCAL_SHARED_LIBRARIES := \ |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 29 | liblog \ |
| 30 | libbinder \ |
Yifan Hong | 6b920e4 | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 31 | libhidlbase \ |
| 32 | libhidltransport \ |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 33 | libhwbinder \ |
| 34 | libutils \ |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 35 | $(module_prefix) \ |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 36 | |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 37 | include $(BUILD_STATIC_LIBRARY) |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 38 | |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 39 | ############################################################################### |
| 40 | # Vehicle default VehicleHAL implementation |
| 41 | ############################################################################### |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 42 | include $(CLEAR_VARS) |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 43 | |
| 44 | LOCAL_MODULE:= $(module_prefix)-default-impl-lib |
| 45 | LOCAL_SRC_FILES:= \ |
| 46 | impl/DefaultVehicleHal.cpp \ |
| 47 | |
| 48 | LOCAL_SHARED_LIBRARIES := \ |
| 49 | liblog \ |
| 50 | libbinder \ |
Yifan Hong | 6b920e4 | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 51 | libhidlbase \ |
| 52 | libhidltransport \ |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 53 | libhwbinder \ |
| 54 | libutils \ |
| 55 | $(module_prefix) \ |
| 56 | |
| 57 | include $(BUILD_STATIC_LIBRARY) |
| 58 | |
| 59 | |
| 60 | ############################################################################### |
| 61 | # Vehicle reference implementation unit tests |
| 62 | ############################################################################### |
| 63 | include $(CLEAR_VARS) |
| 64 | |
| 65 | LOCAL_MODULE:= $(module_prefix)-manager-unit-tests |
| 66 | |
| 67 | LOCAL_WHOLE_STATIC_LIBRARIES := $(module_prefix)-manager-lib |
| 68 | |
| 69 | LOCAL_SRC_FILES:= \ |
| 70 | tests/VehicleObjectPool_test.cpp \ |
| 71 | tests/VehiclePropConfigIndex_test.cpp \ |
| 72 | tests/SubscriptionManager_test.cpp \ |
| 73 | tests/VehicleHalManager_test.cpp \ |
| 74 | |
| 75 | LOCAL_SHARED_LIBRARIES := \ |
| 76 | liblog \ |
| 77 | libbinder \ |
Yifan Hong | 6b920e4 | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 78 | libhidlbase \ |
| 79 | libhidltransport \ |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 80 | libhwbinder \ |
| 81 | libutils \ |
| 82 | $(module_prefix) \ |
| 83 | |
| 84 | LOCAL_CFLAGS += -Wall -Wextra |
| 85 | LOCAL_MODULE_TAGS := tests |
| 86 | |
| 87 | include $(BUILD_NATIVE_TEST) |
| 88 | |
| 89 | |
| 90 | ############################################################################### |
| 91 | # Vehicle HAL service |
| 92 | ############################################################################### |
| 93 | include $(CLEAR_VARS) |
| 94 | LOCAL_MODULE := $(module_prefix)-service |
Pavel Maltsev | aab5421 | 2016-11-08 11:16:39 -0800 | [diff] [blame] | 95 | LOCAL_INIT_RC := $(module_prefix)-service.rc |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 96 | LOCAL_MODULE_RELATIVE_PATH := hw |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 97 | |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 98 | LOCAL_SRC_FILES := \ |
| 99 | VehicleService.cpp |
| 100 | |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 101 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 102 | $(module_prefix)-manager-lib \ |
| 103 | $(module_prefix)-default-impl-lib \ |
| 104 | |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 105 | LOCAL_SHARED_LIBRARIES := \ |
| 106 | liblog \ |
| 107 | libbinder \ |
Yifan Hong | 6b920e4 | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 108 | libhidlbase \ |
| 109 | libhidltransport \ |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 110 | libhwbinder \ |
| 111 | libutils \ |
| 112 | android.hardware.vehicle@2.0 |
| 113 | |
| 114 | include $(BUILD_EXECUTABLE) |