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