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 |
Roshan Pius | 3b6705f | 2019-02-14 09:43:43 -0800 | [diff] [blame] | 36 | ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION |
| 37 | LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION |
| 38 | endif |
Ahmed ElArabawy | 3ee519b | 2020-04-20 16:28:49 +0800 | [diff] [blame] | 39 | ifdef WIFI_AVOID_IFACE_RESET_MAC_CHANGE |
| 40 | LOCAL_CPPFLAGS += -DWIFI_AVOID_IFACE_RESET_MAC_CHANGE |
| 41 | endif |
Chih-Hung Hsieh | fb83d77 | 2018-10-22 12:04:10 -0700 | [diff] [blame] | 42 | # Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed. |
| 43 | LOCAL_CFLAGS += -Wno-error=implicit-fallthrough |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 44 | LOCAL_SRC_FILES := \ |
Roshan Pius | e65edb1 | 2016-11-22 13:02:01 -0800 | [diff] [blame] | 45 | hidl_struct_util.cpp \ |
Roshan Pius | 091e1c1 | 2017-01-30 16:40:50 -0800 | [diff] [blame] | 46 | hidl_sync_util.cpp \ |
xshu | 5899e8e | 2018-01-09 15:36:03 -0800 | [diff] [blame] | 47 | ringbuffer.cpp \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 48 | wifi.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 49 | wifi_ap_iface.cpp \ |
| 50 | wifi_chip.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 51 | wifi_feature_flags.cpp \ |
Roshan Pius | 99dab38 | 2019-02-14 07:57:10 -0800 | [diff] [blame] | 52 | wifi_iface_util.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 53 | wifi_legacy_hal.cpp \ |
Jimmy Chen | 2dddd79 | 2019-12-23 17:50:39 +0200 | [diff] [blame] | 54 | wifi_legacy_hal_factory.cpp \ |
Roshan Pius | e73a506 | 2016-12-12 08:53:34 -0800 | [diff] [blame] | 55 | wifi_legacy_hal_stubs.cpp \ |
Roshan Pius | a26a6e0 | 2016-11-17 14:55:58 -0800 | [diff] [blame] | 56 | wifi_mode_controller.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 57 | wifi_nan_iface.cpp \ |
| 58 | wifi_p2p_iface.cpp \ |
Roshan Pius | 5926828 | 2016-10-06 20:23:47 -0700 | [diff] [blame] | 59 | wifi_rtt_controller.cpp \ |
Roshan Pius | 1922482 | 2016-10-11 08:21:46 -0700 | [diff] [blame] | 60 | wifi_sta_iface.cpp \ |
| 61 | wifi_status_util.cpp |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 62 | LOCAL_SHARED_LIBRARIES := \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 63 | libbase \ |
| 64 | libcutils \ |
Yifan Hong | 63544ea | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 65 | libhidlbase \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 66 | liblog \ |
| 67 | libnl \ |
Roshan Pius | 908a69a | 2016-10-03 13:33:23 -0700 | [diff] [blame] | 68 | libutils \ |
Roshan Pius | a26a6e0 | 2016-11-17 14:55:58 -0800 | [diff] [blame] | 69 | libwifi-hal \ |
Martijn Coenen | b6fa3ae | 2017-11-13 16:56:42 +0100 | [diff] [blame] | 70 | libwifi-system-iface \ |
Jimmy Chen | 2dddd79 | 2019-12-23 17:50:39 +0200 | [diff] [blame] | 71 | libxml2 \ |
Martijn Coenen | b6fa3ae | 2017-11-13 16:56:42 +0100 | [diff] [blame] | 72 | android.hardware.wifi@1.0 \ |
| 73 | android.hardware.wifi@1.1 \ |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 74 | android.hardware.wifi@1.2 \ |
Ahmed ElArabawy | f501a98 | 2019-07-23 15:02:22 -0700 | [diff] [blame] | 75 | android.hardware.wifi@1.3 \ |
Jimmy Chen | d460df3 | 2019-11-29 17:31:22 +0200 | [diff] [blame] | 76 | android.hardware.wifi@1.4 \ |
| 77 | android.hardware.wifi@1.5 |
Jimmy Chen | 2dddd79 | 2019-12-23 17:50:39 +0200 | [diff] [blame] | 78 | LOCAL_C_INCLUDES += $(TOP)/external/libxml2/include |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 79 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 80 | include $(BUILD_STATIC_LIBRARY) |
| 81 | |
| 82 | ### |
| 83 | ### android.hardware.wifi daemon |
| 84 | ### |
| 85 | include $(CLEAR_VARS) |
| 86 | LOCAL_MODULE := android.hardware.wifi@1.0-service |
Ahmed ElArabawy | e2f447a | 2019-09-24 15:33:43 +0000 | [diff] [blame] | 87 | LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 88 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 89 | LOCAL_PROPRIETARY_MODULE := true |
| 90 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
| 91 | LOCAL_SRC_FILES := \ |
| 92 | service.cpp |
| 93 | LOCAL_SHARED_LIBRARIES := \ |
| 94 | libbase \ |
| 95 | libcutils \ |
| 96 | libhidlbase \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 97 | liblog \ |
| 98 | libnl \ |
| 99 | libutils \ |
| 100 | libwifi-hal \ |
| 101 | libwifi-system-iface \ |
Jimmy Chen | 2dddd79 | 2019-12-23 17:50:39 +0200 | [diff] [blame] | 102 | libxml2 \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 103 | android.hardware.wifi@1.0 \ |
| 104 | android.hardware.wifi@1.1 \ |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 105 | android.hardware.wifi@1.2 \ |
Ahmed ElArabawy | f501a98 | 2019-07-23 15:02:22 -0700 | [diff] [blame] | 106 | android.hardware.wifi@1.3 \ |
Jimmy Chen | d460df3 | 2019-11-29 17:31:22 +0200 | [diff] [blame] | 107 | android.hardware.wifi@1.4 \ |
| 108 | android.hardware.wifi@1.5 |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 109 | LOCAL_STATIC_LIBRARIES := \ |
| 110 | android.hardware.wifi@1.0-service-lib |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 111 | LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc |
| 112 | include $(BUILD_EXECUTABLE) |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 113 | |
| 114 | ### |
Peter Kalauskas | 1f6e6e3 | 2019-01-14 17:11:31 -0800 | [diff] [blame] | 115 | ### android.hardware.wifi daemon |
| 116 | ### |
| 117 | include $(CLEAR_VARS) |
| 118 | LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy |
Ahmed ElArabawy | e2f447a | 2019-09-24 15:33:43 +0000 | [diff] [blame] | 119 | LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml |
Peter Kalauskas | 1f6e6e3 | 2019-01-14 17:11:31 -0800 | [diff] [blame] | 120 | LOCAL_OVERRIDES_MODULES := android.hardware.wifi@1.0-service |
| 121 | LOCAL_CFLAGS := -DLAZY_SERVICE |
| 122 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 123 | LOCAL_PROPRIETARY_MODULE := true |
| 124 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
| 125 | LOCAL_SRC_FILES := \ |
| 126 | service.cpp |
| 127 | LOCAL_SHARED_LIBRARIES := \ |
| 128 | libbase \ |
| 129 | libcutils \ |
| 130 | libhidlbase \ |
Peter Kalauskas | 1f6e6e3 | 2019-01-14 17:11:31 -0800 | [diff] [blame] | 131 | liblog \ |
| 132 | libnl \ |
| 133 | libutils \ |
| 134 | libwifi-hal \ |
| 135 | libwifi-system-iface \ |
Jimmy Chen | 2dddd79 | 2019-12-23 17:50:39 +0200 | [diff] [blame] | 136 | libxml2 \ |
Peter Kalauskas | 1f6e6e3 | 2019-01-14 17:11:31 -0800 | [diff] [blame] | 137 | android.hardware.wifi@1.0 \ |
| 138 | android.hardware.wifi@1.1 \ |
| 139 | android.hardware.wifi@1.2 \ |
Ahmed ElArabawy | f501a98 | 2019-07-23 15:02:22 -0700 | [diff] [blame] | 140 | android.hardware.wifi@1.3 \ |
Jimmy Chen | d460df3 | 2019-11-29 17:31:22 +0200 | [diff] [blame] | 141 | android.hardware.wifi@1.4 \ |
| 142 | android.hardware.wifi@1.5 |
Peter Kalauskas | 1f6e6e3 | 2019-01-14 17:11:31 -0800 | [diff] [blame] | 143 | LOCAL_STATIC_LIBRARIES := \ |
| 144 | android.hardware.wifi@1.0-service-lib |
| 145 | LOCAL_INIT_RC := android.hardware.wifi@1.0-service-lazy.rc |
| 146 | include $(BUILD_EXECUTABLE) |
| 147 | |
| 148 | ### |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 149 | ### android.hardware.wifi unit tests. |
| 150 | ### |
| 151 | include $(CLEAR_VARS) |
| 152 | LOCAL_MODULE := android.hardware.wifi@1.0-service-tests |
Roshan Pius | 3312801 | 2017-11-02 10:58:27 -0700 | [diff] [blame] | 153 | LOCAL_PROPRIETARY_MODULE := true |
Tomasz Wasilczyk | b424da7 | 2018-11-15 11:52:57 -0800 | [diff] [blame] | 154 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 155 | LOCAL_SRC_FILES := \ |
Roshan Pius | 1a7b1db | 2018-01-22 17:57:20 -0800 | [diff] [blame] | 156 | tests/hidl_struct_util_unit_tests.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 157 | tests/main.cpp \ |
Roshan Pius | c885df0 | 2019-05-21 14:49:05 -0700 | [diff] [blame] | 158 | tests/mock_interface_tool.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 159 | tests/mock_wifi_feature_flags.cpp \ |
Roshan Pius | 99dab38 | 2019-02-14 07:57:10 -0800 | [diff] [blame] | 160 | tests/mock_wifi_iface_util.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 161 | tests/mock_wifi_legacy_hal.cpp \ |
| 162 | tests/mock_wifi_mode_controller.cpp \ |
xshu | 5899e8e | 2018-01-09 15:36:03 -0800 | [diff] [blame] | 163 | tests/ringbuffer_unit_tests.cpp \ |
Roshan Pius | c885df0 | 2019-05-21 14:49:05 -0700 | [diff] [blame] | 164 | tests/wifi_nan_iface_unit_tests.cpp \ |
Roshan Pius | c444679 | 2019-02-14 13:20:39 -0800 | [diff] [blame] | 165 | tests/wifi_chip_unit_tests.cpp \ |
| 166 | tests/wifi_iface_util_unit_tests.cpp |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 167 | LOCAL_STATIC_LIBRARIES := \ |
| 168 | libgmock \ |
| 169 | libgtest \ |
Roshan Pius | 5ba0a90 | 2020-04-14 11:55:42 -0700 | [diff] [blame] | 170 | android.hardware.wifi@1.0 \ |
| 171 | android.hardware.wifi@1.1 \ |
| 172 | android.hardware.wifi@1.2 \ |
| 173 | android.hardware.wifi@1.3 \ |
| 174 | android.hardware.wifi@1.4 \ |
Jimmy Chen | d460df3 | 2019-11-29 17:31:22 +0200 | [diff] [blame] | 175 | android.hardware.wifi@1.5 \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 176 | android.hardware.wifi@1.0-service-lib |
| 177 | LOCAL_SHARED_LIBRARIES := \ |
| 178 | libbase \ |
| 179 | libcutils \ |
Steven Moreland | 085a82e | 2019-06-10 13:44:19 -0700 | [diff] [blame] | 180 | libhidlbase \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 181 | liblog \ |
| 182 | libnl \ |
| 183 | libutils \ |
| 184 | libwifi-hal \ |
Roshan Pius | 5ba0a90 | 2020-04-14 11:55:42 -0700 | [diff] [blame] | 185 | libwifi-system-iface |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 186 | include $(BUILD_NATIVE_TEST) |