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