blob: 7ba5e36d9c4869f965886eae6cae73ff86c2df99 [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
Ahmed ElArabawyf501a982019-07-23 15:02:22 -070021LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
Roshan Pius3c4e8a32016-10-03 14:53:58 -070022LOCAL_MODULE_RELATIVE_PATH := hw
Steven Moreland46c0b942017-01-12 13:33:16 -080023LOCAL_PROPRIETARY_MODULE := true
Roshan Pius32fc12e2017-01-25 17:44:42 -080024LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Tomasz Wasilczykb424da72018-11-15 11:52:57 -080025ifdef WIFI_HAL_INTERFACE_COMBINATIONS
26LOCAL_CPPFLAGS += -DWIFI_HAL_INTERFACE_COMBINATIONS="$(WIFI_HAL_INTERFACE_COMBINATIONS)"
27endif
Etan Cohenc5700402017-03-08 16:43:38 -080028ifdef WIFI_HIDL_FEATURE_AWARE
29LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE
30endif
Roshan Piuscc338202017-11-02 13:54:09 -070031ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE
32LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE
33endif
Nickc52e8082018-05-02 13:54:28 -070034ifdef WIFI_HIDL_FEATURE_DISABLE_AP
35LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP
36endif
Roshan Pius3b6705f2019-02-14 09:43:43 -080037ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
38LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
39endif
Chih-Hung Hsiehfb83d772018-10-22 12:04:10 -070040# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
41LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
Roshan Pius3c4e8a32016-10-03 14:53:58 -070042LOCAL_SRC_FILES := \
Roshan Piuse65edb12016-11-22 13:02:01 -080043 hidl_struct_util.cpp \
Roshan Pius091e1c12017-01-30 16:40:50 -080044 hidl_sync_util.cpp \
xshu5899e8e2018-01-09 15:36:03 -080045 ringbuffer.cpp \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070046 wifi.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070047 wifi_ap_iface.cpp \
48 wifi_chip.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -070049 wifi_feature_flags.cpp \
Roshan Pius99dab382019-02-14 07:57:10 -080050 wifi_iface_util.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070051 wifi_legacy_hal.cpp \
Roshan Piuse73a5062016-12-12 08:53:34 -080052 wifi_legacy_hal_stubs.cpp \
Roshan Piusa26a6e02016-11-17 14:55:58 -080053 wifi_mode_controller.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070054 wifi_nan_iface.cpp \
55 wifi_p2p_iface.cpp \
Roshan Pius59268282016-10-06 20:23:47 -070056 wifi_rtt_controller.cpp \
Roshan Pius19224822016-10-11 08:21:46 -070057 wifi_sta_iface.cpp \
58 wifi_status_util.cpp
Roshan Pius3c4e8a32016-10-03 14:53:58 -070059LOCAL_SHARED_LIBRARIES := \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070060 libbase \
61 libcutils \
Yifan Hong63544ea2016-11-16 14:17:58 -080062 libhidlbase \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070063 liblog \
64 libnl \
Roshan Pius908a69a2016-10-03 13:33:23 -070065 libutils \
Roshan Piusa26a6e02016-11-17 14:55:58 -080066 libwifi-hal \
Martijn Coenenb6fa3ae2017-11-13 16:56:42 +010067 libwifi-system-iface \
68 android.hardware.wifi@1.0 \
69 android.hardware.wifi@1.1 \
Jong Wook Kimda830c92018-07-23 15:29:38 -070070 android.hardware.wifi@1.2 \
Ahmed ElArabawyf501a982019-07-23 15:02:22 -070071 android.hardware.wifi@1.3 \
72 android.hardware.wifi@1.4
Roshan Pius200a17d2017-11-01 13:03:35 -070073LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
74include $(BUILD_STATIC_LIBRARY)
75
76###
77### android.hardware.wifi daemon
78###
79include $(CLEAR_VARS)
80LOCAL_MODULE := android.hardware.wifi@1.0-service
81LOCAL_MODULE_RELATIVE_PATH := hw
82LOCAL_PROPRIETARY_MODULE := true
83LOCAL_CPPFLAGS := -Wall -Werror -Wextra
84LOCAL_SRC_FILES := \
85 service.cpp
86LOCAL_SHARED_LIBRARIES := \
87 libbase \
88 libcutils \
89 libhidlbase \
Roshan Pius200a17d2017-11-01 13:03:35 -070090 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 Kimda830c92018-07-23 15:29:38 -070097 android.hardware.wifi@1.2 \
Ahmed ElArabawyf501a982019-07-23 15:02:22 -070098 android.hardware.wifi@1.3 \
99 android.hardware.wifi@1.4
Roshan Pius200a17d2017-11-01 13:03:35 -0700100LOCAL_STATIC_LIBRARIES := \
101 android.hardware.wifi@1.0-service-lib
Roshan Pius3c4e8a32016-10-03 14:53:58 -0700102LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
103include $(BUILD_EXECUTABLE)
Roshan Pius200a17d2017-11-01 13:03:35 -0700104
105###
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800106### android.hardware.wifi daemon
107###
108include $(CLEAR_VARS)
109LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy
110LOCAL_OVERRIDES_MODULES := android.hardware.wifi@1.0-service
111LOCAL_CFLAGS := -DLAZY_SERVICE
112LOCAL_MODULE_RELATIVE_PATH := hw
113LOCAL_PROPRIETARY_MODULE := true
114LOCAL_CPPFLAGS := -Wall -Werror -Wextra
115LOCAL_SRC_FILES := \
116 service.cpp
117LOCAL_SHARED_LIBRARIES := \
118 libbase \
119 libcutils \
120 libhidlbase \
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800121 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 ElArabawyf501a982019-07-23 15:02:22 -0700129 android.hardware.wifi@1.3 \
130 android.hardware.wifi@1.4
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800131LOCAL_STATIC_LIBRARIES := \
132 android.hardware.wifi@1.0-service-lib
133LOCAL_INIT_RC := android.hardware.wifi@1.0-service-lazy.rc
134include $(BUILD_EXECUTABLE)
135
136###
Roshan Pius200a17d2017-11-01 13:03:35 -0700137### android.hardware.wifi unit tests.
138###
139include $(CLEAR_VARS)
140LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
Roshan Pius33128012017-11-02 10:58:27 -0700141LOCAL_PROPRIETARY_MODULE := true
Tomasz Wasilczykb424da72018-11-15 11:52:57 -0800142LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Roshan Pius200a17d2017-11-01 13:03:35 -0700143LOCAL_SRC_FILES := \
Roshan Pius1a7b1db2018-01-22 17:57:20 -0800144 tests/hidl_struct_util_unit_tests.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700145 tests/main.cpp \
Roshan Piusc885df02019-05-21 14:49:05 -0700146 tests/mock_interface_tool.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700147 tests/mock_wifi_feature_flags.cpp \
Roshan Pius99dab382019-02-14 07:57:10 -0800148 tests/mock_wifi_iface_util.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700149 tests/mock_wifi_legacy_hal.cpp \
150 tests/mock_wifi_mode_controller.cpp \
xshu5899e8e2018-01-09 15:36:03 -0800151 tests/ringbuffer_unit_tests.cpp \
Roshan Pius3b6705f2019-02-14 09:43:43 -0800152 tests/wifi_ap_iface_unit_tests.cpp \
Roshan Piusc885df02019-05-21 14:49:05 -0700153 tests/wifi_nan_iface_unit_tests.cpp \
Roshan Piusc4446792019-02-14 13:20:39 -0800154 tests/wifi_chip_unit_tests.cpp \
155 tests/wifi_iface_util_unit_tests.cpp
Roshan Pius200a17d2017-11-01 13:03:35 -0700156LOCAL_STATIC_LIBRARIES := \
157 libgmock \
158 libgtest \
159 android.hardware.wifi@1.0-service-lib
160LOCAL_SHARED_LIBRARIES := \
161 libbase \
162 libcutils \
Steven Moreland085a82e2019-06-10 13:44:19 -0700163 libhidlbase \
Roshan Pius200a17d2017-11-01 13:03:35 -0700164 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 Kimda830c92018-07-23 15:29:38 -0700171 android.hardware.wifi@1.2 \
Ahmed ElArabawyf501a982019-07-23 15:02:22 -0700172 android.hardware.wifi@1.3 \
173 android.hardware.wifi@1.4
Roshan Pius200a17d2017-11-01 13:03:35 -0700174include $(BUILD_NATIVE_TEST)