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