Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -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 | LOCAL_PATH := $(call my-dir) |
| 15 | |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 16 | ### |
| 17 | ### android.hardware.wifi static library |
| 18 | ### |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 20 | LOCAL_MODULE := android.hardware.wifi@1.0-service-lib |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 21 | LOCAL_MODULE_RELATIVE_PATH := hw |
Steven Moreland | 46c0b94 | 2017-01-12 13:33:16 -0800 | [diff] [blame] | 22 | LOCAL_PROPRIETARY_MODULE := true |
Roshan Pius | 32fc12e | 2017-01-25 17:44:42 -0800 | [diff] [blame] | 23 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
Tomasz Wasilczyk | b424da7 | 2018-11-15 11:52:57 -0800 | [diff] [blame] | 24 | ifdef WIFI_HAL_INTERFACE_COMBINATIONS |
| 25 | LOCAL_CPPFLAGS += -DWIFI_HAL_INTERFACE_COMBINATIONS="$(WIFI_HAL_INTERFACE_COMBINATIONS)" |
| 26 | endif |
Etan Cohen | c570040 | 2017-03-08 16:43:38 -0800 | [diff] [blame] | 27 | ifdef WIFI_HIDL_FEATURE_AWARE |
| 28 | LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE |
| 29 | endif |
Roshan Pius | cc33820 | 2017-11-02 13:54:09 -0700 | [diff] [blame] | 30 | ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE |
| 31 | LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE |
| 32 | endif |
Nick | c52e808 | 2018-05-02 13:54:28 -0700 | [diff] [blame] | 33 | ifdef WIFI_HIDL_FEATURE_DISABLE_AP |
| 34 | LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP |
| 35 | endif |
Chih-Hung Hsieh | fb83d77 | 2018-10-22 12:04:10 -0700 | [diff] [blame] | 36 | # Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed. |
| 37 | LOCAL_CFLAGS += -Wno-error=implicit-fallthrough |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 38 | LOCAL_SRC_FILES := \ |
Roshan Pius | e65edb1 | 2016-11-22 13:02:01 -0800 | [diff] [blame] | 39 | hidl_struct_util.cpp \ |
Roshan Pius | 091e1c1 | 2017-01-30 16:40:50 -0800 | [diff] [blame] | 40 | hidl_sync_util.cpp \ |
xshu | 5899e8e | 2018-01-09 15:36:03 -0800 | [diff] [blame] | 41 | ringbuffer.cpp \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 42 | wifi.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 43 | wifi_ap_iface.cpp \ |
| 44 | wifi_chip.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 45 | wifi_feature_flags.cpp \ |
Roshan Pius | 99dab38 | 2019-02-14 07:57:10 -0800 | [diff] [blame^] | 46 | wifi_iface_util.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 47 | wifi_legacy_hal.cpp \ |
Roshan Pius | e73a506 | 2016-12-12 08:53:34 -0800 | [diff] [blame] | 48 | wifi_legacy_hal_stubs.cpp \ |
Roshan Pius | a26a6e0 | 2016-11-17 14:55:58 -0800 | [diff] [blame] | 49 | wifi_mode_controller.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 50 | wifi_nan_iface.cpp \ |
| 51 | wifi_p2p_iface.cpp \ |
Roshan Pius | 5926828 | 2016-10-06 20:23:47 -0700 | [diff] [blame] | 52 | wifi_rtt_controller.cpp \ |
Roshan Pius | 1922482 | 2016-10-11 08:21:46 -0700 | [diff] [blame] | 53 | wifi_sta_iface.cpp \ |
| 54 | wifi_status_util.cpp |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 55 | LOCAL_SHARED_LIBRARIES := \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 56 | libbase \ |
| 57 | libcutils \ |
Yifan Hong | 63544ea | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 58 | libhidlbase \ |
| 59 | libhidltransport \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 60 | liblog \ |
| 61 | libnl \ |
Roshan Pius | 908a69a | 2016-10-03 13:33:23 -0700 | [diff] [blame] | 62 | libutils \ |
Roshan Pius | a26a6e0 | 2016-11-17 14:55:58 -0800 | [diff] [blame] | 63 | libwifi-hal \ |
Martijn Coenen | b6fa3ae | 2017-11-13 16:56:42 +0100 | [diff] [blame] | 64 | libwifi-system-iface \ |
| 65 | android.hardware.wifi@1.0 \ |
| 66 | android.hardware.wifi@1.1 \ |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 67 | android.hardware.wifi@1.2 \ |
| 68 | android.hardware.wifi@1.3 |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 69 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 70 | include $(BUILD_STATIC_LIBRARY) |
| 71 | |
| 72 | ### |
| 73 | ### android.hardware.wifi daemon |
| 74 | ### |
| 75 | include $(CLEAR_VARS) |
| 76 | LOCAL_MODULE := android.hardware.wifi@1.0-service |
| 77 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 78 | LOCAL_PROPRIETARY_MODULE := true |
| 79 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
| 80 | LOCAL_SRC_FILES := \ |
| 81 | service.cpp |
| 82 | LOCAL_SHARED_LIBRARIES := \ |
| 83 | libbase \ |
| 84 | libcutils \ |
| 85 | libhidlbase \ |
| 86 | libhidltransport \ |
| 87 | liblog \ |
| 88 | libnl \ |
| 89 | libutils \ |
| 90 | libwifi-hal \ |
| 91 | libwifi-system-iface \ |
| 92 | android.hardware.wifi@1.0 \ |
| 93 | android.hardware.wifi@1.1 \ |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 94 | android.hardware.wifi@1.2 \ |
| 95 | android.hardware.wifi@1.3 |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 96 | LOCAL_STATIC_LIBRARIES := \ |
| 97 | android.hardware.wifi@1.0-service-lib |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 98 | LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc |
| 99 | include $(BUILD_EXECUTABLE) |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 100 | |
| 101 | ### |
Peter Kalauskas | 1f6e6e3 | 2019-01-14 17:11:31 -0800 | [diff] [blame] | 102 | ### android.hardware.wifi daemon |
| 103 | ### |
| 104 | include $(CLEAR_VARS) |
| 105 | LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy |
| 106 | LOCAL_OVERRIDES_MODULES := android.hardware.wifi@1.0-service |
| 107 | LOCAL_CFLAGS := -DLAZY_SERVICE |
| 108 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 109 | LOCAL_PROPRIETARY_MODULE := true |
| 110 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
| 111 | LOCAL_SRC_FILES := \ |
| 112 | service.cpp |
| 113 | LOCAL_SHARED_LIBRARIES := \ |
| 114 | libbase \ |
| 115 | libcutils \ |
| 116 | libhidlbase \ |
| 117 | libhidltransport \ |
| 118 | liblog \ |
| 119 | libnl \ |
| 120 | libutils \ |
| 121 | libwifi-hal \ |
| 122 | libwifi-system-iface \ |
| 123 | android.hardware.wifi@1.0 \ |
| 124 | android.hardware.wifi@1.1 \ |
| 125 | android.hardware.wifi@1.2 \ |
| 126 | android.hardware.wifi@1.3 |
| 127 | LOCAL_STATIC_LIBRARIES := \ |
| 128 | android.hardware.wifi@1.0-service-lib |
| 129 | LOCAL_INIT_RC := android.hardware.wifi@1.0-service-lazy.rc |
| 130 | include $(BUILD_EXECUTABLE) |
| 131 | |
| 132 | ### |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 133 | ### android.hardware.wifi unit tests. |
| 134 | ### |
| 135 | include $(CLEAR_VARS) |
| 136 | LOCAL_MODULE := android.hardware.wifi@1.0-service-tests |
Roshan Pius | 3312801 | 2017-11-02 10:58:27 -0700 | [diff] [blame] | 137 | LOCAL_PROPRIETARY_MODULE := true |
Tomasz Wasilczyk | b424da7 | 2018-11-15 11:52:57 -0800 | [diff] [blame] | 138 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 139 | LOCAL_SRC_FILES := \ |
Roshan Pius | 1a7b1db | 2018-01-22 17:57:20 -0800 | [diff] [blame] | 140 | tests/hidl_struct_util_unit_tests.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 141 | tests/main.cpp \ |
| 142 | tests/mock_wifi_feature_flags.cpp \ |
Roshan Pius | 99dab38 | 2019-02-14 07:57:10 -0800 | [diff] [blame^] | 143 | tests/mock_wifi_iface_util.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 144 | tests/mock_wifi_legacy_hal.cpp \ |
| 145 | tests/mock_wifi_mode_controller.cpp \ |
xshu | 5899e8e | 2018-01-09 15:36:03 -0800 | [diff] [blame] | 146 | tests/ringbuffer_unit_tests.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 147 | tests/wifi_chip_unit_tests.cpp |
| 148 | LOCAL_STATIC_LIBRARIES := \ |
| 149 | libgmock \ |
| 150 | libgtest \ |
Roshan Pius | ddedf72 | 2018-05-04 13:30:43 -0700 | [diff] [blame] | 151 | libhidlbase \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 152 | android.hardware.wifi@1.0-service-lib |
| 153 | LOCAL_SHARED_LIBRARIES := \ |
| 154 | libbase \ |
| 155 | libcutils \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 156 | libhidltransport \ |
| 157 | liblog \ |
| 158 | libnl \ |
| 159 | libutils \ |
| 160 | libwifi-hal \ |
| 161 | libwifi-system-iface \ |
| 162 | android.hardware.wifi@1.0 \ |
| 163 | android.hardware.wifi@1.1 \ |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 164 | android.hardware.wifi@1.2 \ |
| 165 | android.hardware.wifi@1.3 |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 166 | include $(BUILD_NATIVE_TEST) |