OSDN Git Service

Merge "Use AP bssid for GetPacketCounters()" into oc-mr1-dev
[android-x86/system-connectivity-wificond.git] / Android.mk
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
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)
20
21
22 ###
23 ### wificond daemon.
24 ###
25 include $(CLEAR_VARS)
26 LOCAL_MODULE := wificond
27 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
28 LOCAL_INIT_RC := wificond.rc
29 LOCAL_C_INCLUDES := $(wificond_includes)
30 LOCAL_SRC_FILES := \
31     main.cpp
32 LOCAL_SHARED_LIBRARIES := \
33     android.hardware.wifi.offload@1.0 \
34     libbinder \
35     libbase \
36     libcutils \
37     libhidlbase \
38     libhwbinder \
39     libhidltransport \
40     libminijail \
41     libutils \
42     libwifi-system \
43     libwifi-system-iface
44 LOCAL_STATIC_LIBRARIES := \
45     libwificond
46 include $(BUILD_EXECUTABLE)
47
48 ###
49 ### wificond static library
50 ###
51 include $(CLEAR_VARS)
52 LOCAL_MODULE := libwificond
53 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
54 LOCAL_C_INCLUDES := $(wificond_includes)
55 LOCAL_SRC_FILES := \
56     ap_interface_binder.cpp \
57     ap_interface_impl.cpp \
58     client_interface_binder.cpp \
59     client_interface_impl.cpp \
60     logging_utils.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 \
76     server.cpp
77 LOCAL_SHARED_LIBRARIES := \
78     android.hardware.wifi.offload@1.0 \
79     libbase \
80     libutils \
81     libhidlbase \
82     libhwbinder \
83     libhidltransport \
84     libwifi-system \
85     libwifi-system-iface
86 LOCAL_WHOLE_STATIC_LIBRARIES := \
87     libwificond_ipc \
88     libwificond_nl
89 include $(BUILD_STATIC_LIBRARY)
90
91 ###
92 ### wificond netlink library
93 ###
94 include $(CLEAR_VARS)
95 LOCAL_MODULE := libwificond_nl
96 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
97 LOCAL_C_INCLUDES := $(wificond_includes)
98 LOCAL_SRC_FILES := \
99     net/mlme_event.cpp \
100     net/netlink_manager.cpp \
101     net/netlink_utils.cpp \
102     net/nl80211_attribute.cpp \
103     net/nl80211_packet.cpp
104 LOCAL_SHARED_LIBRARIES := \
105     libbase
106 include $(BUILD_STATIC_LIBRARY)
107
108 ###
109 ### wificond IPC interface library
110 ###
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)
116 LOCAL_SRC_FILES := \
117     ipc_constants.cpp \
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 := \
133     libbinder
134 include $(BUILD_STATIC_LIBRARY)
135
136 ###
137 ### test util library
138 ###
139 include $(CLEAR_VARS)
140 LOCAL_MODULE := libwificond_test_utils
141 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
142 LOCAL_C_INCLUDES := $(wificond_includes)
143 LOCAL_SRC_FILES := \
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 := \
149     libbase
150 LOCAL_WHOLE_STATIC_LIBRARIES := \
151     libwificond_ipc
152 include $(BUILD_STATIC_LIBRARY)
153
154 ###
155 ### wificond unit tests.
156 ###
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)
162 LOCAL_SRC_FILES := \
163     tests/ap_interface_impl_unittest.cpp \
164     tests/client_interface_impl_unittest.cpp \
165     tests/looper_backed_event_loop_unittest.cpp \
166     tests/main.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 := \
193     libgmock \
194     libgtest \
195     libwifi-system-test \
196     libwifi-system-iface-test \
197     libwificond \
198     libwificond_nl
199 LOCAL_SHARED_LIBRARIES := \
200     android.hardware.wifi.offload@1.0 \
201     libbase \
202     libbinder \
203     libcutils \
204     libhidltransport \
205     libhidlbase \
206     libhwbinder \
207     liblog \
208     libutils \
209     libwifi-system \
210     libwifi-system-iface
211 include $(BUILD_NATIVE_TEST)
212
213 ###
214 ### wificond device integration tests.
215 ###
216 include $(CLEAR_VARS)
217 LOCAL_MODULE := wificond_integration_test
218 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
219 LOCAL_C_INCLUDES := $(wificond_includes)
220 LOCAL_SRC_FILES := \
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 \
226     tests/main.cpp \
227     tests/shell_unittest.cpp
228 LOCAL_SHARED_LIBRARIES := \
229     libbase \
230     libbinder \
231     libcutils \
232     libutils \
233     libwifi-system \
234     libwifi-system-iface
235 LOCAL_STATIC_LIBRARIES := \
236     libgmock \
237     libwificond_ipc \
238     libwificond_test_utils
239 include $(BUILD_NATIVE_TEST)