1 # Copyright (C) 2016 The Android Open Source Project
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 LOCAL_PATH := $(call my-dir)
16 wificond_cpp_flags := -Wall -Werror -Wno-unused-parameter
17 wificond_parent_dir := $(LOCAL_PATH)/../
18 wificond_includes := \
19 $(wificond_parent_dir)
26 LOCAL_MODULE := wificond
27 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
28 LOCAL_INIT_RC := wificond.rc
29 LOCAL_C_INCLUDES := $(wificond_includes)
32 LOCAL_SHARED_LIBRARIES := \
33 android.hardware.wifi.offload@1.0 \
44 LOCAL_STATIC_LIBRARIES := \
46 include $(BUILD_EXECUTABLE)
49 ### wificond static library
52 LOCAL_MODULE := libwificond
53 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
54 LOCAL_C_INCLUDES := $(wificond_includes)
56 ap_interface_binder.cpp \
57 ap_interface_impl.cpp \
58 client_interface_binder.cpp \
59 client_interface_impl.cpp \
61 looper_backed_event_loop.cpp \
62 scanning/channel_settings.cpp \
63 scanning/hidden_network.cpp \
64 scanning/offload_scan_callback_interface_impl.cpp \
65 scanning/pno_network.cpp \
66 scanning/pno_settings.cpp \
67 scanning/scan_result.cpp \
68 scanning/offload/scan_stats.cpp \
69 scanning/single_scan_settings.cpp \
70 scanning/scan_utils.cpp \
71 scanning/scanner_impl.cpp \
72 scanning/offload/offload_scan_manager.cpp \
73 scanning/offload/offload_callback.cpp \
74 scanning/offload/offload_service_utils.cpp \
75 scanning/offload/offload_scan_utils.cpp \
77 LOCAL_SHARED_LIBRARIES := \
78 android.hardware.wifi.offload@1.0 \
86 LOCAL_WHOLE_STATIC_LIBRARIES := \
89 include $(BUILD_STATIC_LIBRARY)
92 ### wificond netlink library
95 LOCAL_MODULE := libwificond_nl
96 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
97 LOCAL_C_INCLUDES := $(wificond_includes)
100 net/netlink_manager.cpp \
101 net/netlink_utils.cpp \
102 net/nl80211_attribute.cpp \
103 net/nl80211_packet.cpp
104 LOCAL_SHARED_LIBRARIES := \
106 include $(BUILD_STATIC_LIBRARY)
109 ### wificond IPC interface library
111 include $(CLEAR_VARS)
112 LOCAL_MODULE := libwificond_ipc
113 LOCAL_AIDL_INCLUDES += $(LOCAL_PATH)/aidl
114 LOCAL_C_INCLUDES := $(wificond_includes)
115 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
118 aidl/android/net/wifi/IApInterface.aidl \
119 aidl/android/net/wifi/IANQPDoneCallback.aidl \
120 aidl/android/net/wifi/IClientInterface.aidl \
121 aidl/android/net/wifi/IInterfaceEventCallback.aidl \
122 aidl/android/net/wifi/IPnoScanEvent.aidl \
123 aidl/android/net/wifi/IScanEvent.aidl \
124 aidl/android/net/wifi/IWificond.aidl \
125 aidl/android/net/wifi/IWifiScannerImpl.aidl \
126 scanning/channel_settings.cpp \
127 scanning/hidden_network.cpp \
128 scanning/pno_network.cpp \
129 scanning/pno_settings.cpp \
130 scanning/scan_result.cpp \
131 scanning/single_scan_settings.cpp
132 LOCAL_SHARED_LIBRARIES := \
134 include $(BUILD_STATIC_LIBRARY)
137 ### test util library
139 include $(CLEAR_VARS)
140 LOCAL_MODULE := libwificond_test_utils
141 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
142 LOCAL_C_INCLUDES := $(wificond_includes)
144 looper_backed_event_loop.cpp \
145 tests/integration/binder_dispatcher.cpp \
146 tests/integration/process_utils.cpp \
147 tests/shell_utils.cpp
148 LOCAL_SHARED_LIBRARIES := \
150 LOCAL_WHOLE_STATIC_LIBRARIES := \
152 include $(BUILD_STATIC_LIBRARY)
155 ### wificond unit tests.
157 include $(CLEAR_VARS)
158 LOCAL_MODULE := wificond_unit_test
159 LOCAL_COMPATIBILITY_SUITE := device-tests
160 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
161 LOCAL_C_INCLUDES := $(wificond_includes)
163 tests/ap_interface_impl_unittest.cpp \
164 tests/client_interface_impl_unittest.cpp \
165 tests/looper_backed_event_loop_unittest.cpp \
167 tests/mock_client_interface_impl.cpp \
168 tests/mock_netlink_manager.cpp \
169 tests/mock_netlink_utils.cpp \
170 tests/mock_offload.cpp \
171 tests/mock_offload_callback_handlers.cpp \
172 tests/mock_offload_scan_callback_interface.cpp \
173 tests/mock_offload_scan_callback_interface_impl.cpp \
174 tests/mock_offload_scan_manager.cpp \
175 tests/mock_offload_service_utils.cpp \
176 tests/mock_scan_utils.cpp \
177 tests/netlink_manager_unittest.cpp \
178 tests/netlink_utils_unittest.cpp \
179 tests/nl80211_attribute_unittest.cpp \
180 tests/nl80211_packet_unittest.cpp \
181 tests/offload_callback_test.cpp \
182 tests/offload_hal_test_constants.cpp \
183 tests/offload_scan_manager_test.cpp \
184 tests/offload_scan_utils_test.cpp \
185 tests/offload_test_utils.cpp \
186 tests/scanner_unittest.cpp \
187 tests/scan_result_unittest.cpp \
188 tests/scan_settings_unittest.cpp \
189 tests/scan_stats_unittest.cpp \
190 tests/scan_utils_unittest.cpp \
191 tests/server_unittest.cpp
192 LOCAL_STATIC_LIBRARIES := \
195 libwifi-system-test \
196 libwifi-system-iface-test \
199 LOCAL_SHARED_LIBRARIES := \
200 android.hardware.wifi.offload@1.0 \
211 include $(BUILD_NATIVE_TEST)
214 ### wificond device integration tests.
216 include $(CLEAR_VARS)
217 LOCAL_MODULE := wificond_integration_test
218 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
219 LOCAL_C_INCLUDES := $(wificond_includes)
221 tests/integration/ap_interface_test.cpp \
222 tests/integration/client_interface_test.cpp \
223 tests/integration/life_cycle_test.cpp \
224 tests/integration/scanner_test.cpp \
225 tests/integration/service_test.cpp \
227 tests/shell_unittest.cpp
228 LOCAL_SHARED_LIBRARIES := \
235 LOCAL_STATIC_LIBRARIES := \
238 libwificond_test_utils
239 include $(BUILD_NATIVE_TEST)