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 \ |
| 27 | vehicle_hal_manager/VehicleCallback.cpp \ |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 28 | |
| 29 | LOCAL_SHARED_LIBRARIES := \ |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 30 | liblog \ |
| 31 | libbinder \ |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 32 | libhidl \ |
| 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 \ |
| 51 | libhidl \ |
| 52 | libhwbinder \ |
| 53 | libutils \ |
| 54 | $(module_prefix) \ |
| 55 | |
| 56 | include $(BUILD_STATIC_LIBRARY) |
| 57 | |
| 58 | |
| 59 | ############################################################################### |
| 60 | # Vehicle reference implementation unit tests |
| 61 | ############################################################################### |
| 62 | include $(CLEAR_VARS) |
| 63 | |
| 64 | LOCAL_MODULE:= $(module_prefix)-manager-unit-tests |
| 65 | |
| 66 | LOCAL_WHOLE_STATIC_LIBRARIES := $(module_prefix)-manager-lib |
| 67 | |
| 68 | LOCAL_SRC_FILES:= \ |
| 69 | tests/VehicleObjectPool_test.cpp \ |
| 70 | tests/VehiclePropConfigIndex_test.cpp \ |
| 71 | tests/SubscriptionManager_test.cpp \ |
| 72 | tests/VehicleHalManager_test.cpp \ |
| 73 | |
| 74 | LOCAL_SHARED_LIBRARIES := \ |
| 75 | liblog \ |
| 76 | libbinder \ |
| 77 | libhidl \ |
| 78 | libhwbinder \ |
| 79 | libutils \ |
| 80 | $(module_prefix) \ |
| 81 | |
| 82 | LOCAL_CFLAGS += -Wall -Wextra |
| 83 | LOCAL_MODULE_TAGS := tests |
| 84 | |
| 85 | include $(BUILD_NATIVE_TEST) |
| 86 | |
| 87 | |
| 88 | ############################################################################### |
| 89 | # Vehicle HAL service |
| 90 | ############################################################################### |
| 91 | include $(CLEAR_VARS) |
| 92 | LOCAL_MODULE := $(module_prefix)-service |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 93 | LOCAL_MODULE_RELATIVE_PATH := hw |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 94 | # TODO(pavelm): add LOCAL_INIT_RC |
| 95 | |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 96 | LOCAL_SRC_FILES := \ |
| 97 | VehicleService.cpp |
| 98 | |
Pavel Maltsev | e2603e3 | 2016-10-25 16:03:23 -0700 | [diff] [blame] | 99 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 100 | $(module_prefix)-manager-lib \ |
| 101 | $(module_prefix)-default-impl-lib \ |
| 102 | |
Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -0700 | [diff] [blame] | 103 | LOCAL_SHARED_LIBRARIES := \ |
| 104 | liblog \ |
| 105 | libbinder \ |
| 106 | libhidl \ |
| 107 | libhwbinder \ |
| 108 | libutils \ |
| 109 | android.hardware.vehicle@2.0 |
| 110 | |
| 111 | include $(BUILD_EXECUTABLE) |