• 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
39ifdef WIFI_AVOID_IFACE_RESET_MAC_CHANGE
40LOCAL_CPPFLAGS += -DWIFI_AVOID_IFACE_RESET_MAC_CHANGE
41endif
42# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
43LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
44LOCAL_SRC_FILES := \
45    hidl_struct_util.cpp \
46    hidl_sync_util.cpp \
47    ringbuffer.cpp \
48    wifi.cpp \
49    wifi_ap_iface.cpp \
50    wifi_chip.cpp \
51    wifi_feature_flags.cpp \
52    wifi_iface_util.cpp \
53    wifi_legacy_hal.cpp \
54    wifi_legacy_hal_stubs.cpp \
55    wifi_mode_controller.cpp \
56    wifi_nan_iface.cpp \
57    wifi_p2p_iface.cpp \
58    wifi_rtt_controller.cpp \
59    wifi_sta_iface.cpp \
60    wifi_status_util.cpp
61LOCAL_SHARED_LIBRARIES := \
62    libbase \
63    libcutils \
64    libhidlbase \
65    liblog \
66    libnl \
67    libutils \
68    libwifi-hal \
69    libwifi-system-iface \
70    android.hardware.wifi@1.0 \
71    android.hardware.wifi@1.1 \
72    android.hardware.wifi@1.2 \
73    android.hardware.wifi@1.3 \
74    android.hardware.wifi@1.4
75LOCAL_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
83LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
84LOCAL_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 \
93    liblog \
94    libnl \
95    libutils \
96    libwifi-hal \
97    libwifi-system-iface \
98    android.hardware.wifi@1.0 \
99    android.hardware.wifi@1.1 \
100    android.hardware.wifi@1.2 \
101    android.hardware.wifi@1.3 \
102    android.hardware.wifi@1.4
103LOCAL_STATIC_LIBRARIES := \
104    android.hardware.wifi@1.0-service-lib
105LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
106include $(BUILD_EXECUTABLE)
107
108###
109### android.hardware.wifi daemon
110###
111include $(CLEAR_VARS)
112LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy
113LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
114LOCAL_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 \
125    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 \
133    android.hardware.wifi@1.3 \
134    android.hardware.wifi@1.4
135LOCAL_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###
141### android.hardware.wifi unit tests.
142###
143include $(CLEAR_VARS)
144LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
145LOCAL_PROPRIETARY_MODULE := true
146LOCAL_CPPFLAGS := -Wall -Werror -Wextra
147LOCAL_SRC_FILES := \
148    tests/hidl_struct_util_unit_tests.cpp \
149    tests/main.cpp \
150    tests/mock_interface_tool.cpp \
151    tests/mock_wifi_feature_flags.cpp \
152    tests/mock_wifi_iface_util.cpp \
153    tests/mock_wifi_legacy_hal.cpp \
154    tests/mock_wifi_mode_controller.cpp \
155    tests/ringbuffer_unit_tests.cpp \
156    tests/wifi_nan_iface_unit_tests.cpp \
157    tests/wifi_chip_unit_tests.cpp \
158    tests/wifi_iface_util_unit_tests.cpp
159LOCAL_STATIC_LIBRARIES := \
160    libgmock \
161    libgtest \
162    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 \
167    android.hardware.wifi@1.0-service-lib
168LOCAL_SHARED_LIBRARIES := \
169    libbase \
170    libcutils \
171    libhidlbase \
172    liblog \
173    libnl \
174    libutils \
175    libwifi-hal \
176    libwifi-system-iface
177include $(BUILD_NATIVE_TEST)
178