blob: 7ebea4f4d18e313c458eb5e811331f4cd2bb021b [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
Roshan Pius3c4e8a32016-10-03 14:53:58 -070021LOCAL_MODULE_RELATIVE_PATH := hw
Steven Moreland46c0b942017-01-12 13:33:16 -080022LOCAL_PROPRIETARY_MODULE := true
Roshan Pius32fc12e2017-01-25 17:44:42 -080023LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Tomasz Wasilczykb424da72018-11-15 11:52:57 -080024ifdef WIFI_HAL_INTERFACE_COMBINATIONS
25LOCAL_CPPFLAGS += -DWIFI_HAL_INTERFACE_COMBINATIONS="$(WIFI_HAL_INTERFACE_COMBINATIONS)"
26endif
Etan Cohenc5700402017-03-08 16:43:38 -080027ifdef WIFI_HIDL_FEATURE_AWARE
28LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE
29endif
Roshan Piuscc338202017-11-02 13:54:09 -070030ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE
31LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE
32endif
Nickc52e8082018-05-02 13:54:28 -070033ifdef WIFI_HIDL_FEATURE_DISABLE_AP
34LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP
35endif
Roshan Pius3b6705f2019-02-14 09:43:43 -080036ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
37LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
38endif
Chih-Hung Hsiehfb83d772018-10-22 12:04:10 -070039# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
40LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
Roshan Pius3c4e8a32016-10-03 14:53:58 -070041LOCAL_SRC_FILES := \
Roshan Piuse65edb12016-11-22 13:02:01 -080042 hidl_struct_util.cpp \
Roshan Pius091e1c12017-01-30 16:40:50 -080043 hidl_sync_util.cpp \
xshu5899e8e2018-01-09 15:36:03 -080044 ringbuffer.cpp \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070045 wifi.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070046 wifi_ap_iface.cpp \
47 wifi_chip.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -070048 wifi_feature_flags.cpp \
Roshan Pius99dab382019-02-14 07:57:10 -080049 wifi_iface_util.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070050 wifi_legacy_hal.cpp \
Roshan Piuse73a5062016-12-12 08:53:34 -080051 wifi_legacy_hal_stubs.cpp \
Roshan Piusa26a6e02016-11-17 14:55:58 -080052 wifi_mode_controller.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070053 wifi_nan_iface.cpp \
54 wifi_p2p_iface.cpp \
Roshan Pius59268282016-10-06 20:23:47 -070055 wifi_rtt_controller.cpp \
Roshan Pius19224822016-10-11 08:21:46 -070056 wifi_sta_iface.cpp \
57 wifi_status_util.cpp
Roshan Pius3c4e8a32016-10-03 14:53:58 -070058LOCAL_SHARED_LIBRARIES := \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070059 libbase \
60 libcutils \
Yifan Hong63544ea2016-11-16 14:17:58 -080061 libhidlbase \
62 libhidltransport \
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 \
71 android.hardware.wifi@1.3
Roshan Pius200a17d2017-11-01 13:03:35 -070072LOCAL_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 \
Jong Wook Kimda830c92018-07-23 15:29:38 -070097 android.hardware.wifi@1.2 \
98 android.hardware.wifi@1.3
Roshan Pius200a17d2017-11-01 13:03:35 -070099LOCAL_STATIC_LIBRARIES := \
100 android.hardware.wifi@1.0-service-lib
Roshan Pius3c4e8a32016-10-03 14:53:58 -0700101LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
102include $(BUILD_EXECUTABLE)
Roshan Pius200a17d2017-11-01 13:03:35 -0700103
104###
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800105### 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###
Roshan Pius200a17d2017-11-01 13:03:35 -0700136### android.hardware.wifi unit tests.
137###
138include $(CLEAR_VARS)
139LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
Roshan Pius33128012017-11-02 10:58:27 -0700140LOCAL_PROPRIETARY_MODULE := true
Tomasz Wasilczykb424da72018-11-15 11:52:57 -0800141LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Roshan Pius200a17d2017-11-01 13:03:35 -0700142LOCAL_SRC_FILES := \
Roshan Pius1a7b1db2018-01-22 17:57:20 -0800143 tests/hidl_struct_util_unit_tests.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700144 tests/main.cpp \
145 tests/mock_wifi_feature_flags.cpp \
Roshan Pius99dab382019-02-14 07:57:10 -0800146 tests/mock_wifi_iface_util.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700147 tests/mock_wifi_legacy_hal.cpp \
148 tests/mock_wifi_mode_controller.cpp \
xshu5899e8e2018-01-09 15:36:03 -0800149 tests/ringbuffer_unit_tests.cpp \
Roshan Pius3b6705f2019-02-14 09:43:43 -0800150 tests/wifi_ap_iface_unit_tests.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700151 tests/wifi_chip_unit_tests.cpp
152LOCAL_STATIC_LIBRARIES := \
153 libgmock \
154 libgtest \
Roshan Piusddedf722018-05-04 13:30:43 -0700155 libhidlbase \
Roshan Pius200a17d2017-11-01 13:03:35 -0700156 android.hardware.wifi@1.0-service-lib
157LOCAL_SHARED_LIBRARIES := \
158 libbase \
159 libcutils \
Roshan Pius200a17d2017-11-01 13:03:35 -0700160 libhidltransport \
161 liblog \
162 libnl \
163 libutils \
164 libwifi-hal \
165 libwifi-system-iface \
166 android.hardware.wifi@1.0 \
167 android.hardware.wifi@1.1 \
Jong Wook Kimda830c92018-07-23 15:29:38 -0700168 android.hardware.wifi@1.2 \
169 android.hardware.wifi@1.3
Roshan Pius200a17d2017-11-01 13:03:35 -0700170include $(BUILD_NATIVE_TEST)