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