blob: 6be7dad59e84c572b3cbda07fe9da07d71790ed4 [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
Roshan Pius3c4e8a32016-10-03 14:53:58 -070021LOCAL_MODULE_RELATIVE_PATH := hw
Steven Moreland46c0b942017-01-12 13:33:16 -080022LOCAL_PROPRIETARY_MODULE := true
Roshan Pius32fc12e2017-01-25 17:44:42 -080023LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Tomasz Wasilczykb424da72018-11-15 11:52:57 -080024ifdef WIFI_HAL_INTERFACE_COMBINATIONS
25LOCAL_CPPFLAGS += -DWIFI_HAL_INTERFACE_COMBINATIONS="$(WIFI_HAL_INTERFACE_COMBINATIONS)"
26endif
Etan Cohenc5700402017-03-08 16:43:38 -080027ifdef WIFI_HIDL_FEATURE_AWARE
28LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE
29endif
Roshan Piuscc338202017-11-02 13:54:09 -070030ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE
31LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE
32endif
Nickc52e8082018-05-02 13:54:28 -070033ifdef WIFI_HIDL_FEATURE_DISABLE_AP
34LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP
35endif
Roshan Pius3b6705f2019-02-14 09:43:43 -080036ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
37LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
38endif
Ahmed ElArabawy3ee519b2020-04-20 16:28:49 +080039ifdef WIFI_AVOID_IFACE_RESET_MAC_CHANGE
40LOCAL_CPPFLAGS += -DWIFI_AVOID_IFACE_RESET_MAC_CHANGE
41endif
Chih-Hung Hsiehfb83d772018-10-22 12:04:10 -070042# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
43LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
Roshan Pius3c4e8a32016-10-03 14:53:58 -070044LOCAL_SRC_FILES := \
Roshan Piuse65edb12016-11-22 13:02:01 -080045 hidl_struct_util.cpp \
Roshan Pius091e1c12017-01-30 16:40:50 -080046 hidl_sync_util.cpp \
xshu5899e8e2018-01-09 15:36:03 -080047 ringbuffer.cpp \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070048 wifi.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070049 wifi_ap_iface.cpp \
50 wifi_chip.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -070051 wifi_feature_flags.cpp \
Roshan Pius99dab382019-02-14 07:57:10 -080052 wifi_iface_util.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070053 wifi_legacy_hal.cpp \
Roshan Piuse73a5062016-12-12 08:53:34 -080054 wifi_legacy_hal_stubs.cpp \
Roshan Piusa26a6e02016-11-17 14:55:58 -080055 wifi_mode_controller.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070056 wifi_nan_iface.cpp \
57 wifi_p2p_iface.cpp \
Roshan Pius59268282016-10-06 20:23:47 -070058 wifi_rtt_controller.cpp \
Roshan Pius19224822016-10-11 08:21:46 -070059 wifi_sta_iface.cpp \
60 wifi_status_util.cpp
Roshan Pius3c4e8a32016-10-03 14:53:58 -070061LOCAL_SHARED_LIBRARIES := \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070062 libbase \
63 libcutils \
Yifan Hong63544ea2016-11-16 14:17:58 -080064 libhidlbase \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070065 liblog \
66 libnl \
Roshan Pius908a69a2016-10-03 13:33:23 -070067 libutils \
Roshan Piusa26a6e02016-11-17 14:55:58 -080068 libwifi-hal \
Martijn Coenenb6fa3ae2017-11-13 16:56:42 +010069 libwifi-system-iface \
70 android.hardware.wifi@1.0 \
71 android.hardware.wifi@1.1 \
Jong Wook Kimda830c92018-07-23 15:29:38 -070072 android.hardware.wifi@1.2 \
Ahmed ElArabawyf501a982019-07-23 15:02:22 -070073 android.hardware.wifi@1.3 \
74 android.hardware.wifi@1.4
Roshan Pius200a17d2017-11-01 13:03:35 -070075LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
76include $(BUILD_STATIC_LIBRARY)
77
78###
79### android.hardware.wifi daemon
80###
81include $(CLEAR_VARS)
82LOCAL_MODULE := android.hardware.wifi@1.0-service
Ahmed ElArabawye2f447a2019-09-24 15:33:43 +000083LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
Roshan Pius200a17d2017-11-01 13:03:35 -070084LOCAL_MODULE_RELATIVE_PATH := hw
85LOCAL_PROPRIETARY_MODULE := true
86LOCAL_CPPFLAGS := -Wall -Werror -Wextra
87LOCAL_SRC_FILES := \
88 service.cpp
89LOCAL_SHARED_LIBRARIES := \
90 libbase \
91 libcutils \
92 libhidlbase \
Roshan Pius200a17d2017-11-01 13:03:35 -070093 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 Kimda830c92018-07-23 15:29:38 -0700100 android.hardware.wifi@1.2 \
Ahmed ElArabawyf501a982019-07-23 15:02:22 -0700101 android.hardware.wifi@1.3 \
102 android.hardware.wifi@1.4
Roshan Pius200a17d2017-11-01 13:03:35 -0700103LOCAL_STATIC_LIBRARIES := \
104 android.hardware.wifi@1.0-service-lib
Roshan Pius3c4e8a32016-10-03 14:53:58 -0700105LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
106include $(BUILD_EXECUTABLE)
Roshan Pius200a17d2017-11-01 13:03:35 -0700107
108###
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800109### android.hardware.wifi daemon
110###
111include $(CLEAR_VARS)
112LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy
Ahmed ElArabawye2f447a2019-09-24 15:33:43 +0000113LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800114LOCAL_OVERRIDES_MODULES := android.hardware.wifi@1.0-service
115LOCAL_CFLAGS := -DLAZY_SERVICE
116LOCAL_MODULE_RELATIVE_PATH := hw
117LOCAL_PROPRIETARY_MODULE := true
118LOCAL_CPPFLAGS := -Wall -Werror -Wextra
119LOCAL_SRC_FILES := \
120 service.cpp
121LOCAL_SHARED_LIBRARIES := \
122 libbase \
123 libcutils \
124 libhidlbase \
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800125 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 ElArabawyf501a982019-07-23 15:02:22 -0700133 android.hardware.wifi@1.3 \
134 android.hardware.wifi@1.4
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800135LOCAL_STATIC_LIBRARIES := \
136 android.hardware.wifi@1.0-service-lib
137LOCAL_INIT_RC := android.hardware.wifi@1.0-service-lazy.rc
138include $(BUILD_EXECUTABLE)
139
140###
Roshan Pius200a17d2017-11-01 13:03:35 -0700141### android.hardware.wifi unit tests.
142###
143include $(CLEAR_VARS)
144LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
Roshan Pius33128012017-11-02 10:58:27 -0700145LOCAL_PROPRIETARY_MODULE := true
Tomasz Wasilczykb424da72018-11-15 11:52:57 -0800146LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Roshan Pius200a17d2017-11-01 13:03:35 -0700147LOCAL_SRC_FILES := \
Roshan Pius1a7b1db2018-01-22 17:57:20 -0800148 tests/hidl_struct_util_unit_tests.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700149 tests/main.cpp \
Roshan Piusc885df02019-05-21 14:49:05 -0700150 tests/mock_interface_tool.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700151 tests/mock_wifi_feature_flags.cpp \
Roshan Pius99dab382019-02-14 07:57:10 -0800152 tests/mock_wifi_iface_util.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700153 tests/mock_wifi_legacy_hal.cpp \
154 tests/mock_wifi_mode_controller.cpp \
xshu5899e8e2018-01-09 15:36:03 -0800155 tests/ringbuffer_unit_tests.cpp \
Roshan Piusc885df02019-05-21 14:49:05 -0700156 tests/wifi_nan_iface_unit_tests.cpp \
Roshan Piusc4446792019-02-14 13:20:39 -0800157 tests/wifi_chip_unit_tests.cpp \
158 tests/wifi_iface_util_unit_tests.cpp
Roshan Pius200a17d2017-11-01 13:03:35 -0700159LOCAL_STATIC_LIBRARIES := \
160 libgmock \
161 libgtest \
Roshan Pius5ba0a902020-04-14 11:55:42 -0700162 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 Pius200a17d2017-11-01 13:03:35 -0700167 android.hardware.wifi@1.0-service-lib
168LOCAL_SHARED_LIBRARIES := \
169 libbase \
170 libcutils \
Steven Moreland085a82e2019-06-10 13:44:19 -0700171 libhidlbase \
Roshan Pius200a17d2017-11-01 13:03:35 -0700172 liblog \
173 libnl \
174 libutils \
175 libwifi-hal \
Roshan Pius5ba0a902020-04-14 11:55:42 -0700176 libwifi-system-iface
Roshan Pius200a17d2017-11-01 13:03:35 -0700177include $(BUILD_NATIVE_TEST)