blob: 9cdf84c81cf48d12e56d026eb1fd14571812a564 [file] [log] [blame]
Roshan Pius3c4e8a32016-10-03 14:53:58 -07001# 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.
14LOCAL_PATH := $(call my-dir)
15
Roshan Pius200a17d2017-11-01 13:03:35 -070016###
17### android.hardware.wifi static library
18###
Roshan Pius3c4e8a32016-10-03 14:53:58 -070019include $(CLEAR_VARS)
Roshan Pius200a17d2017-11-01 13:03:35 -070020LOCAL_MODULE := android.hardware.wifi@1.0-service-lib
Bob Badourb224b362021-02-12 20:13:01 -080021LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
22LOCAL_LICENSE_CONDITIONS := notice
23LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE
Roshan Pius3c4e8a32016-10-03 14:53:58 -070024LOCAL_MODULE_RELATIVE_PATH := hw
Steven Moreland46c0b942017-01-12 13:33:16 -080025LOCAL_PROPRIETARY_MODULE := true
Roshan Pius32fc12e2017-01-25 17:44:42 -080026LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Tomasz Wasilczykb424da72018-11-15 11:52:57 -080027ifdef WIFI_HAL_INTERFACE_COMBINATIONS
28LOCAL_CPPFLAGS += -DWIFI_HAL_INTERFACE_COMBINATIONS="$(WIFI_HAL_INTERFACE_COMBINATIONS)"
29endif
Etan Cohenc5700402017-03-08 16:43:38 -080030ifdef WIFI_HIDL_FEATURE_AWARE
31LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE
32endif
Roshan Piuscc338202017-11-02 13:54:09 -070033ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE
34LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE
35endif
Nickc52e8082018-05-02 13:54:28 -070036ifdef WIFI_HIDL_FEATURE_DISABLE_AP
37LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP
38endif
Roshan Pius3b6705f2019-02-14 09:43:43 -080039ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
40LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
41endif
Ahmed ElArabawy3ee519b2020-04-20 16:28:49 +080042ifdef WIFI_AVOID_IFACE_RESET_MAC_CHANGE
43LOCAL_CPPFLAGS += -DWIFI_AVOID_IFACE_RESET_MAC_CHANGE
44endif
Chih-Hung Hsiehfb83d772018-10-22 12:04:10 -070045# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
46LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
Roshan Pius3c4e8a32016-10-03 14:53:58 -070047LOCAL_SRC_FILES := \
Roshan Piuse65edb12016-11-22 13:02:01 -080048 hidl_struct_util.cpp \
Roshan Pius091e1c12017-01-30 16:40:50 -080049 hidl_sync_util.cpp \
xshu5899e8e2018-01-09 15:36:03 -080050 ringbuffer.cpp \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070051 wifi.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070052 wifi_ap_iface.cpp \
53 wifi_chip.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -070054 wifi_feature_flags.cpp \
Roshan Pius99dab382019-02-14 07:57:10 -080055 wifi_iface_util.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070056 wifi_legacy_hal.cpp \
Roshan Piuse73a5062016-12-12 08:53:34 -080057 wifi_legacy_hal_stubs.cpp \
Roshan Piusa26a6e02016-11-17 14:55:58 -080058 wifi_mode_controller.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070059 wifi_nan_iface.cpp \
60 wifi_p2p_iface.cpp \
Roshan Pius59268282016-10-06 20:23:47 -070061 wifi_rtt_controller.cpp \
Roshan Pius19224822016-10-11 08:21:46 -070062 wifi_sta_iface.cpp \
63 wifi_status_util.cpp
Roshan Pius3c4e8a32016-10-03 14:53:58 -070064LOCAL_SHARED_LIBRARIES := \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070065 libbase \
66 libcutils \
Yifan Hong63544ea2016-11-16 14:17:58 -080067 libhidlbase \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070068 liblog \
69 libnl \
Roshan Pius908a69a2016-10-03 13:33:23 -070070 libutils \
Roshan Piusa26a6e02016-11-17 14:55:58 -080071 libwifi-hal \
Martijn Coenenb6fa3ae2017-11-13 16:56:42 +010072 libwifi-system-iface \
73 android.hardware.wifi@1.0 \
74 android.hardware.wifi@1.1 \
Jong Wook Kimda830c92018-07-23 15:29:38 -070075 android.hardware.wifi@1.2 \
Ahmed ElArabawyf501a982019-07-23 15:02:22 -070076 android.hardware.wifi@1.3 \
77 android.hardware.wifi@1.4
Roshan Pius200a17d2017-11-01 13:03:35 -070078LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
79include $(BUILD_STATIC_LIBRARY)
80
81###
82### android.hardware.wifi daemon
83###
84include $(CLEAR_VARS)
85LOCAL_MODULE := android.hardware.wifi@1.0-service
Bob Badourb224b362021-02-12 20:13:01 -080086LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
87LOCAL_LICENSE_CONDITIONS := notice
88LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE
Ahmed ElArabawye2f447a2019-09-24 15:33:43 +000089LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
Roshan Pius200a17d2017-11-01 13:03:35 -070090LOCAL_MODULE_RELATIVE_PATH := hw
91LOCAL_PROPRIETARY_MODULE := true
92LOCAL_CPPFLAGS := -Wall -Werror -Wextra
93LOCAL_SRC_FILES := \
94 service.cpp
95LOCAL_SHARED_LIBRARIES := \
96 libbase \
97 libcutils \
98 libhidlbase \
Roshan Pius200a17d2017-11-01 13:03:35 -070099 liblog \
100 libnl \
101 libutils \
102 libwifi-hal \
103 libwifi-system-iface \
104 android.hardware.wifi@1.0 \
105 android.hardware.wifi@1.1 \
Jong Wook Kimda830c92018-07-23 15:29:38 -0700106 android.hardware.wifi@1.2 \
Ahmed ElArabawyf501a982019-07-23 15:02:22 -0700107 android.hardware.wifi@1.3 \
108 android.hardware.wifi@1.4
Roshan Pius200a17d2017-11-01 13:03:35 -0700109LOCAL_STATIC_LIBRARIES := \
110 android.hardware.wifi@1.0-service-lib
Roshan Pius3c4e8a32016-10-03 14:53:58 -0700111LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
112include $(BUILD_EXECUTABLE)
Roshan Pius200a17d2017-11-01 13:03:35 -0700113
114###
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800115### android.hardware.wifi daemon
116###
117include $(CLEAR_VARS)
118LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy
Bob Badourb224b362021-02-12 20:13:01 -0800119LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
120LOCAL_LICENSE_CONDITIONS := notice
121LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE
Ahmed ElArabawye2f447a2019-09-24 15:33:43 +0000122LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800123LOCAL_OVERRIDES_MODULES := android.hardware.wifi@1.0-service
124LOCAL_CFLAGS := -DLAZY_SERVICE
125LOCAL_MODULE_RELATIVE_PATH := hw
126LOCAL_PROPRIETARY_MODULE := true
127LOCAL_CPPFLAGS := -Wall -Werror -Wextra
128LOCAL_SRC_FILES := \
129 service.cpp
130LOCAL_SHARED_LIBRARIES := \
131 libbase \
132 libcutils \
133 libhidlbase \
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800134 liblog \
135 libnl \
136 libutils \
137 libwifi-hal \
138 libwifi-system-iface \
139 android.hardware.wifi@1.0 \
140 android.hardware.wifi@1.1 \
141 android.hardware.wifi@1.2 \
Ahmed ElArabawyf501a982019-07-23 15:02:22 -0700142 android.hardware.wifi@1.3 \
143 android.hardware.wifi@1.4
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800144LOCAL_STATIC_LIBRARIES := \
145 android.hardware.wifi@1.0-service-lib
146LOCAL_INIT_RC := android.hardware.wifi@1.0-service-lazy.rc
147include $(BUILD_EXECUTABLE)
148
149###
Roshan Pius200a17d2017-11-01 13:03:35 -0700150### android.hardware.wifi unit tests.
151###
152include $(CLEAR_VARS)
153LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
Bob Badourb224b362021-02-12 20:13:01 -0800154LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
155LOCAL_LICENSE_CONDITIONS := notice
156LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE
Roshan Pius33128012017-11-02 10:58:27 -0700157LOCAL_PROPRIETARY_MODULE := true
Tomasz Wasilczykb424da72018-11-15 11:52:57 -0800158LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Roshan Pius200a17d2017-11-01 13:03:35 -0700159LOCAL_SRC_FILES := \
Roshan Pius1a7b1db2018-01-22 17:57:20 -0800160 tests/hidl_struct_util_unit_tests.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700161 tests/main.cpp \
Roshan Piusc885df02019-05-21 14:49:05 -0700162 tests/mock_interface_tool.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700163 tests/mock_wifi_feature_flags.cpp \
Roshan Pius99dab382019-02-14 07:57:10 -0800164 tests/mock_wifi_iface_util.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700165 tests/mock_wifi_legacy_hal.cpp \
166 tests/mock_wifi_mode_controller.cpp \
xshu5899e8e2018-01-09 15:36:03 -0800167 tests/ringbuffer_unit_tests.cpp \
Roshan Piusc885df02019-05-21 14:49:05 -0700168 tests/wifi_nan_iface_unit_tests.cpp \
Roshan Piusc4446792019-02-14 13:20:39 -0800169 tests/wifi_chip_unit_tests.cpp \
170 tests/wifi_iface_util_unit_tests.cpp
Roshan Pius200a17d2017-11-01 13:03:35 -0700171LOCAL_STATIC_LIBRARIES := \
172 libgmock \
173 libgtest \
Roshan Pius5ba0a902020-04-14 11:55:42 -0700174 android.hardware.wifi@1.0 \
175 android.hardware.wifi@1.1 \
176 android.hardware.wifi@1.2 \
177 android.hardware.wifi@1.3 \
178 android.hardware.wifi@1.4 \
Roshan Pius200a17d2017-11-01 13:03:35 -0700179 android.hardware.wifi@1.0-service-lib
180LOCAL_SHARED_LIBRARIES := \
181 libbase \
182 libcutils \
Steven Moreland085a82e2019-06-10 13:44:19 -0700183 libhidlbase \
Roshan Pius200a17d2017-11-01 13:03:35 -0700184 liblog \
185 libnl \
186 libutils \
187 libwifi-hal \
Roshan Pius5ba0a902020-04-14 11:55:42 -0700188 libwifi-system-iface
Roshan Pius200a17d2017-11-01 13:03:35 -0700189include $(BUILD_NATIVE_TEST)