• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
14LOCAL_PATH := $(call my-dir)
15
16###
17### android.hardware.wifi static library
18###
19include $(CLEAR_VARS)
20LOCAL_MODULE := android.hardware.wifi@1.0-service-lib
21LOCAL_MODULE_RELATIVE_PATH := hw
22LOCAL_PROPRIETARY_MODULE := true
23LOCAL_CPPFLAGS := -Wall -Werror -Wextra
24ifdef WIFI_HAL_INTERFACE_COMBINATIONS
25LOCAL_CPPFLAGS += -DWIFI_HAL_INTERFACE_COMBINATIONS="$(WIFI_HAL_INTERFACE_COMBINATIONS)"
26endif
27ifdef WIFI_HIDL_FEATURE_AWARE
28LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE
29endif
30ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE
31LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE
32endif
33ifdef WIFI_HIDL_FEATURE_DISABLE_AP
34LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP
35endif
36ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
37LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
38endif
39# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
40LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
41LOCAL_SRC_FILES := \
42    hidl_struct_util.cpp \
43    hidl_sync_util.cpp \
44    ringbuffer.cpp \
45    wifi.cpp \
46    wifi_ap_iface.cpp \
47    wifi_chip.cpp \
48    wifi_feature_flags.cpp \
49    wifi_iface_util.cpp \
50    wifi_legacy_hal.cpp \
51    wifi_legacy_hal_stubs.cpp \
52    wifi_mode_controller.cpp \
53    wifi_nan_iface.cpp \
54    wifi_p2p_iface.cpp \
55    wifi_rtt_controller.cpp \
56    wifi_sta_iface.cpp \
57    wifi_status_util.cpp
58LOCAL_SHARED_LIBRARIES := \
59    libbase \
60    libcutils \
61    libhidlbase \
62    libhidltransport \
63    liblog \
64    libnl \
65    libutils \
66    libwifi-hal \
67    libwifi-system-iface \
68    android.hardware.wifi@1.0 \
69    android.hardware.wifi@1.1 \
70    android.hardware.wifi@1.2 \
71    android.hardware.wifi@1.3
72LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
73include $(BUILD_STATIC_LIBRARY)
74
75###
76### android.hardware.wifi daemon
77###
78include $(CLEAR_VARS)
79LOCAL_MODULE := android.hardware.wifi@1.0-service
80LOCAL_MODULE_RELATIVE_PATH := hw
81LOCAL_PROPRIETARY_MODULE := true
82LOCAL_CPPFLAGS := -Wall -Werror -Wextra
83LOCAL_SRC_FILES := \
84    service.cpp
85LOCAL_SHARED_LIBRARIES := \
86    libbase \
87    libcutils \
88    libhidlbase \
89    libhidltransport \
90    liblog \
91    libnl \
92    libutils \
93    libwifi-hal \
94    libwifi-system-iface \
95    android.hardware.wifi@1.0 \
96    android.hardware.wifi@1.1 \
97    android.hardware.wifi@1.2 \
98    android.hardware.wifi@1.3
99LOCAL_STATIC_LIBRARIES := \
100    android.hardware.wifi@1.0-service-lib
101LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
102include $(BUILD_EXECUTABLE)
103
104###
105### android.hardware.wifi daemon
106###
107include $(CLEAR_VARS)
108LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy
109LOCAL_OVERRIDES_MODULES := android.hardware.wifi@1.0-service
110LOCAL_CFLAGS := -DLAZY_SERVICE
111LOCAL_MODULE_RELATIVE_PATH := hw
112LOCAL_PROPRIETARY_MODULE := true
113LOCAL_CPPFLAGS := -Wall -Werror -Wextra
114LOCAL_SRC_FILES := \
115    service.cpp
116LOCAL_SHARED_LIBRARIES := \
117    libbase \
118    libcutils \
119    libhidlbase \
120    libhidltransport \
121    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 \
129    android.hardware.wifi@1.3
130LOCAL_STATIC_LIBRARIES := \
131    android.hardware.wifi@1.0-service-lib
132LOCAL_INIT_RC := android.hardware.wifi@1.0-service-lazy.rc
133include $(BUILD_EXECUTABLE)
134
135###
136### android.hardware.wifi unit tests.
137###
138include $(CLEAR_VARS)
139LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
140LOCAL_PROPRIETARY_MODULE := true
141LOCAL_CPPFLAGS := -Wall -Werror -Wextra
142LOCAL_SRC_FILES := \
143    tests/hidl_struct_util_unit_tests.cpp \
144    tests/main.cpp \
145    tests/mock_interface_tool.cpp \
146    tests/mock_wifi_feature_flags.cpp \
147    tests/mock_wifi_iface_util.cpp \
148    tests/mock_wifi_legacy_hal.cpp \
149    tests/mock_wifi_mode_controller.cpp \
150    tests/ringbuffer_unit_tests.cpp \
151    tests/wifi_ap_iface_unit_tests.cpp \
152    tests/wifi_nan_iface_unit_tests.cpp \
153    tests/wifi_chip_unit_tests.cpp \
154    tests/wifi_iface_util_unit_tests.cpp
155LOCAL_STATIC_LIBRARIES := \
156    libgmock \
157    libgtest \
158    android.hardware.wifi@1.0-service-lib
159LOCAL_SHARED_LIBRARIES := \
160    libbase \
161    libcutils \
162    libhidlbase \
163    libhidltransport \
164    liblog \
165    libnl \
166    libutils \
167    libwifi-hal \
168    libwifi-system-iface \
169    android.hardware.wifi@1.0 \
170    android.hardware.wifi@1.1 \
171    android.hardware.wifi@1.2 \
172    android.hardware.wifi@1.3
173include $(BUILD_NATIVE_TEST)
174