2016-10-03 14:53:58 -07:00
|
|
|
# Copyright (C) 2016 The Android Open Source Project
|
|
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
2017-11-01 13:03:35 -07:00
|
|
|
###
|
|
|
|
|
### android.hardware.wifi static library
|
|
|
|
|
###
|
2016-10-03 14:53:58 -07:00
|
|
|
include $(CLEAR_VARS)
|
2017-11-01 13:03:35 -07:00
|
|
|
LOCAL_MODULE := android.hardware.wifi@1.0-service-lib
|
2016-10-03 14:53:58 -07:00
|
|
|
LOCAL_MODULE_RELATIVE_PATH := hw
|
2017-01-12 13:33:16 -08:00
|
|
|
LOCAL_PROPRIETARY_MODULE := true
|
2017-01-25 17:44:42 -08:00
|
|
|
LOCAL_CPPFLAGS := -Wall -Werror -Wextra
|
2018-11-15 11:52:57 -08:00
|
|
|
ifdef WIFI_HAL_INTERFACE_COMBINATIONS
|
|
|
|
|
LOCAL_CPPFLAGS += -DWIFI_HAL_INTERFACE_COMBINATIONS="$(WIFI_HAL_INTERFACE_COMBINATIONS)"
|
|
|
|
|
endif
|
2017-03-08 16:43:38 -08:00
|
|
|
ifdef WIFI_HIDL_FEATURE_AWARE
|
|
|
|
|
LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE
|
|
|
|
|
endif
|
2017-11-02 13:54:09 -07:00
|
|
|
ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE
|
|
|
|
|
LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE
|
|
|
|
|
endif
|
2018-05-02 13:54:28 -07:00
|
|
|
ifdef WIFI_HIDL_FEATURE_DISABLE_AP
|
|
|
|
|
LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP
|
|
|
|
|
endif
|
2019-02-14 09:43:43 -08:00
|
|
|
ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
|
|
|
|
|
LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
|
|
|
|
|
endif
|
2020-04-20 16:28:49 +08:00
|
|
|
ifdef WIFI_AVOID_IFACE_RESET_MAC_CHANGE
|
|
|
|
|
LOCAL_CPPFLAGS += -DWIFI_AVOID_IFACE_RESET_MAC_CHANGE
|
|
|
|
|
endif
|
2018-10-22 12:04:10 -07:00
|
|
|
# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
|
|
|
|
|
LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
|
2016-10-03 14:53:58 -07:00
|
|
|
LOCAL_SRC_FILES := \
|
2016-11-22 13:02:01 -08:00
|
|
|
hidl_struct_util.cpp \
|
2017-01-30 16:40:50 -08:00
|
|
|
hidl_sync_util.cpp \
|
2018-01-09 15:36:03 -08:00
|
|
|
ringbuffer.cpp \
|
2016-10-03 14:53:58 -07:00
|
|
|
wifi.cpp \
|
2016-10-06 13:16:23 -07:00
|
|
|
wifi_ap_iface.cpp \
|
|
|
|
|
wifi_chip.cpp \
|
2017-11-01 13:03:35 -07:00
|
|
|
wifi_feature_flags.cpp \
|
2019-02-14 07:57:10 -08:00
|
|
|
wifi_iface_util.cpp \
|
2016-10-06 13:16:23 -07:00
|
|
|
wifi_legacy_hal.cpp \
|
2016-12-12 08:53:34 -08:00
|
|
|
wifi_legacy_hal_stubs.cpp \
|
2016-11-17 14:55:58 -08:00
|
|
|
wifi_mode_controller.cpp \
|
2016-10-06 13:16:23 -07:00
|
|
|
wifi_nan_iface.cpp \
|
|
|
|
|
wifi_p2p_iface.cpp \
|
2016-10-06 20:23:47 -07:00
|
|
|
wifi_rtt_controller.cpp \
|
2016-10-11 08:21:46 -07:00
|
|
|
wifi_sta_iface.cpp \
|
|
|
|
|
wifi_status_util.cpp
|
2016-10-03 14:53:58 -07:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
|
libbase \
|
|
|
|
|
libcutils \
|
2016-11-16 14:17:58 -08:00
|
|
|
libhidlbase \
|
2016-10-03 14:53:58 -07:00
|
|
|
liblog \
|
|
|
|
|
libnl \
|
2016-10-03 13:33:23 -07:00
|
|
|
libutils \
|
2016-11-17 14:55:58 -08:00
|
|
|
libwifi-hal \
|
2017-11-13 16:56:42 +01:00
|
|
|
libwifi-system-iface \
|
|
|
|
|
android.hardware.wifi@1.0 \
|
|
|
|
|
android.hardware.wifi@1.1 \
|
2018-07-23 15:29:38 -07:00
|
|
|
android.hardware.wifi@1.2 \
|
2019-07-23 15:02:22 -07:00
|
|
|
android.hardware.wifi@1.3 \
|
|
|
|
|
android.hardware.wifi@1.4
|
2017-11-01 13:03:35 -07:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
### android.hardware.wifi daemon
|
|
|
|
|
###
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
LOCAL_MODULE := android.hardware.wifi@1.0-service
|
2019-09-24 15:33:43 +00:00
|
|
|
LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
|
2017-11-01 13:03:35 -07:00
|
|
|
LOCAL_MODULE_RELATIVE_PATH := hw
|
|
|
|
|
LOCAL_PROPRIETARY_MODULE := true
|
|
|
|
|
LOCAL_CPPFLAGS := -Wall -Werror -Wextra
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
|
service.cpp
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
|
libbase \
|
|
|
|
|
libcutils \
|
|
|
|
|
libhidlbase \
|
|
|
|
|
liblog \
|
|
|
|
|
libnl \
|
|
|
|
|
libutils \
|
|
|
|
|
libwifi-hal \
|
|
|
|
|
libwifi-system-iface \
|
|
|
|
|
android.hardware.wifi@1.0 \
|
|
|
|
|
android.hardware.wifi@1.1 \
|
2018-07-23 15:29:38 -07:00
|
|
|
android.hardware.wifi@1.2 \
|
2019-07-23 15:02:22 -07:00
|
|
|
android.hardware.wifi@1.3 \
|
|
|
|
|
android.hardware.wifi@1.4
|
2017-11-01 13:03:35 -07:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
|
android.hardware.wifi@1.0-service-lib
|
2016-10-03 14:53:58 -07:00
|
|
|
LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
2017-11-01 13:03:35 -07:00
|
|
|
|
2019-01-14 17:11:31 -08:00
|
|
|
###
|
|
|
|
|
### android.hardware.wifi daemon
|
|
|
|
|
###
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
LOCAL_MODULE := android.hardware.wifi@1.0-service-lazy
|
2019-09-24 15:33:43 +00:00
|
|
|
LOCAL_VINTF_FRAGMENTS := android.hardware.wifi@1.0-service.xml
|
2019-01-14 17:11:31 -08:00
|
|
|
LOCAL_OVERRIDES_MODULES := android.hardware.wifi@1.0-service
|
|
|
|
|
LOCAL_CFLAGS := -DLAZY_SERVICE
|
|
|
|
|
LOCAL_MODULE_RELATIVE_PATH := hw
|
|
|
|
|
LOCAL_PROPRIETARY_MODULE := true
|
|
|
|
|
LOCAL_CPPFLAGS := -Wall -Werror -Wextra
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
|
service.cpp
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
|
libbase \
|
|
|
|
|
libcutils \
|
|
|
|
|
libhidlbase \
|
|
|
|
|
liblog \
|
|
|
|
|
libnl \
|
|
|
|
|
libutils \
|
|
|
|
|
libwifi-hal \
|
|
|
|
|
libwifi-system-iface \
|
|
|
|
|
android.hardware.wifi@1.0 \
|
|
|
|
|
android.hardware.wifi@1.1 \
|
|
|
|
|
android.hardware.wifi@1.2 \
|
2019-07-23 15:02:22 -07:00
|
|
|
android.hardware.wifi@1.3 \
|
|
|
|
|
android.hardware.wifi@1.4
|
2019-01-14 17:11:31 -08:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
|
android.hardware.wifi@1.0-service-lib
|
|
|
|
|
LOCAL_INIT_RC := android.hardware.wifi@1.0-service-lazy.rc
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
2017-11-01 13:03:35 -07:00
|
|
|
###
|
|
|
|
|
### android.hardware.wifi unit tests.
|
|
|
|
|
###
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
|
2017-11-02 10:58:27 -07:00
|
|
|
LOCAL_PROPRIETARY_MODULE := true
|
2018-11-15 11:52:57 -08:00
|
|
|
LOCAL_CPPFLAGS := -Wall -Werror -Wextra
|
2017-11-01 13:03:35 -07:00
|
|
|
LOCAL_SRC_FILES := \
|
2018-01-22 17:57:20 -08:00
|
|
|
tests/hidl_struct_util_unit_tests.cpp \
|
2017-11-01 13:03:35 -07:00
|
|
|
tests/main.cpp \
|
2019-05-21 14:49:05 -07:00
|
|
|
tests/mock_interface_tool.cpp \
|
2017-11-01 13:03:35 -07:00
|
|
|
tests/mock_wifi_feature_flags.cpp \
|
2019-02-14 07:57:10 -08:00
|
|
|
tests/mock_wifi_iface_util.cpp \
|
2017-11-01 13:03:35 -07:00
|
|
|
tests/mock_wifi_legacy_hal.cpp \
|
|
|
|
|
tests/mock_wifi_mode_controller.cpp \
|
2018-01-09 15:36:03 -08:00
|
|
|
tests/ringbuffer_unit_tests.cpp \
|
2019-05-21 14:49:05 -07:00
|
|
|
tests/wifi_nan_iface_unit_tests.cpp \
|
2019-02-14 13:20:39 -08:00
|
|
|
tests/wifi_chip_unit_tests.cpp \
|
|
|
|
|
tests/wifi_iface_util_unit_tests.cpp
|
2017-11-01 13:03:35 -07:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
|
libgmock \
|
|
|
|
|
libgtest \
|
2020-04-14 11:55:42 -07:00
|
|
|
android.hardware.wifi@1.0 \
|
|
|
|
|
android.hardware.wifi@1.1 \
|
|
|
|
|
android.hardware.wifi@1.2 \
|
|
|
|
|
android.hardware.wifi@1.3 \
|
|
|
|
|
android.hardware.wifi@1.4 \
|
2017-11-01 13:03:35 -07:00
|
|
|
android.hardware.wifi@1.0-service-lib
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
|
libbase \
|
|
|
|
|
libcutils \
|
2019-06-10 13:44:19 -07:00
|
|
|
libhidlbase \
|
2017-11-01 13:03:35 -07:00
|
|
|
liblog \
|
|
|
|
|
libnl \
|
|
|
|
|
libutils \
|
|
|
|
|
libwifi-hal \
|
2020-04-14 11:55:42 -07:00
|
|
|
libwifi-system-iface
|
2017-11-01 13:03:35 -07:00
|
|
|
include $(BUILD_NATIVE_TEST)
|