blob: 01fa934a0006e456e5a310a6c9befe51959ac892 [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
Chih-Hung Hsiehfb83d772018-10-22 12:04:10 -070036# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
37LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
Roshan Pius3c4e8a32016-10-03 14:53:58 -070038LOCAL_SRC_FILES := \
Roshan Piuse65edb12016-11-22 13:02:01 -080039 hidl_struct_util.cpp \
Roshan Pius091e1c12017-01-30 16:40:50 -080040 hidl_sync_util.cpp \
xshu5899e8e2018-01-09 15:36:03 -080041 ringbuffer.cpp \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070042 wifi.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070043 wifi_ap_iface.cpp \
44 wifi_chip.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -070045 wifi_feature_flags.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070046 wifi_legacy_hal.cpp \
Roshan Piuse73a5062016-12-12 08:53:34 -080047 wifi_legacy_hal_stubs.cpp \
Roshan Piusa26a6e02016-11-17 14:55:58 -080048 wifi_mode_controller.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070049 wifi_nan_iface.cpp \
50 wifi_p2p_iface.cpp \
Roshan Pius59268282016-10-06 20:23:47 -070051 wifi_rtt_controller.cpp \
Roshan Pius19224822016-10-11 08:21:46 -070052 wifi_sta_iface.cpp \
53 wifi_status_util.cpp
Roshan Pius3c4e8a32016-10-03 14:53:58 -070054LOCAL_SHARED_LIBRARIES := \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070055 libbase \
56 libcutils \
Yifan Hong63544ea2016-11-16 14:17:58 -080057 libhidlbase \
58 libhidltransport \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070059 liblog \
60 libnl \
Roshan Pius908a69a2016-10-03 13:33:23 -070061 libutils \
Roshan Piusa26a6e02016-11-17 14:55:58 -080062 libwifi-hal \
Martijn Coenenb6fa3ae2017-11-13 16:56:42 +010063 libwifi-system-iface \
64 android.hardware.wifi@1.0 \
65 android.hardware.wifi@1.1 \
Jong Wook Kimda830c92018-07-23 15:29:38 -070066 android.hardware.wifi@1.2 \
67 android.hardware.wifi@1.3
Roshan Pius200a17d2017-11-01 13:03:35 -070068LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
69include $(BUILD_STATIC_LIBRARY)
70
71###
72### android.hardware.wifi daemon
73###
74include $(CLEAR_VARS)
75LOCAL_MODULE := android.hardware.wifi@1.0-service
76LOCAL_MODULE_RELATIVE_PATH := hw
77LOCAL_PROPRIETARY_MODULE := true
78LOCAL_CPPFLAGS := -Wall -Werror -Wextra
79LOCAL_SRC_FILES := \
80 service.cpp
81LOCAL_SHARED_LIBRARIES := \
82 libbase \
83 libcutils \
84 libhidlbase \
85 libhidltransport \
86 liblog \
87 libnl \
88 libutils \
89 libwifi-hal \
90 libwifi-system-iface \
91 android.hardware.wifi@1.0 \
92 android.hardware.wifi@1.1 \
Jong Wook Kimda830c92018-07-23 15:29:38 -070093 android.hardware.wifi@1.2 \
94 android.hardware.wifi@1.3
Roshan Pius200a17d2017-11-01 13:03:35 -070095LOCAL_STATIC_LIBRARIES := \
96 android.hardware.wifi@1.0-service-lib
Roshan Pius3c4e8a32016-10-03 14:53:58 -070097LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
98include $(BUILD_EXECUTABLE)
Roshan Pius200a17d2017-11-01 13:03:35 -070099
100###
Peter Kalauskas1f6e6e32019-01-14 17:11:31 -0800101### android.hardware.wifi daemon
102###
103include $(CLEAR_VARS)
104LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy
105LOCAL_OVERRIDES_MODULES := android.hardware.wifi@1.0-service
106LOCAL_CFLAGS := -DLAZY_SERVICE
107LOCAL_MODULE_RELATIVE_PATH := hw
108LOCAL_PROPRIETARY_MODULE := true
109LOCAL_CPPFLAGS := -Wall -Werror -Wextra
110LOCAL_SRC_FILES := \
111 service.cpp
112LOCAL_SHARED_LIBRARIES := \
113 libbase \
114 libcutils \
115 libhidlbase \
116 libhidltransport \
117 liblog \
118 libnl \
119 libutils \
120 libwifi-hal \
121 libwifi-system-iface \
122 android.hardware.wifi@1.0 \
123 android.hardware.wifi@1.1 \
124 android.hardware.wifi@1.2 \
125 android.hardware.wifi@1.3
126LOCAL_STATIC_LIBRARIES := \
127 android.hardware.wifi@1.0-service-lib
128LOCAL_INIT_RC := android.hardware.wifi@1.0-service-lazy.rc
129include $(BUILD_EXECUTABLE)
130
131###
Roshan Pius200a17d2017-11-01 13:03:35 -0700132### android.hardware.wifi unit tests.
133###
134include $(CLEAR_VARS)
135LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
Roshan Pius33128012017-11-02 10:58:27 -0700136LOCAL_PROPRIETARY_MODULE := true
Tomasz Wasilczykb424da72018-11-15 11:52:57 -0800137LOCAL_CPPFLAGS := -Wall -Werror -Wextra
Roshan Pius200a17d2017-11-01 13:03:35 -0700138LOCAL_SRC_FILES := \
Roshan Pius1a7b1db2018-01-22 17:57:20 -0800139 tests/hidl_struct_util_unit_tests.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700140 tests/main.cpp \
141 tests/mock_wifi_feature_flags.cpp \
142 tests/mock_wifi_legacy_hal.cpp \
143 tests/mock_wifi_mode_controller.cpp \
xshu5899e8e2018-01-09 15:36:03 -0800144 tests/ringbuffer_unit_tests.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -0700145 tests/wifi_chip_unit_tests.cpp
146LOCAL_STATIC_LIBRARIES := \
147 libgmock \
148 libgtest \
Roshan Piusddedf722018-05-04 13:30:43 -0700149 libhidlbase \
Roshan Pius200a17d2017-11-01 13:03:35 -0700150 android.hardware.wifi@1.0-service-lib
151LOCAL_SHARED_LIBRARIES := \
152 libbase \
153 libcutils \
Roshan Pius200a17d2017-11-01 13:03:35 -0700154 libhidltransport \
155 liblog \
156 libnl \
157 libutils \
158 libwifi-hal \
159 libwifi-system-iface \
160 android.hardware.wifi@1.0 \
161 android.hardware.wifi@1.1 \
Jong Wook Kimda830c92018-07-23 15:29:38 -0700162 android.hardware.wifi@1.2 \
163 android.hardware.wifi@1.3
Roshan Pius200a17d2017-11-01 13:03:35 -0700164include $(BUILD_NATIVE_TEST)