blob: 2205e4e0f0636f9c764d17f7ec05bfdd6b1cdbc2 [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
Etan Cohenc5700402017-03-08 16:43:38 -080024ifdef WIFI_HIDL_FEATURE_AWARE
25LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE
26endif
Roshan Pius3c4e8a32016-10-03 14:53:58 -070027LOCAL_SRC_FILES := \
Roshan Piuse65edb12016-11-22 13:02:01 -080028 hidl_struct_util.cpp \
Roshan Pius091e1c12017-01-30 16:40:50 -080029 hidl_sync_util.cpp \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070030 wifi.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070031 wifi_ap_iface.cpp \
32 wifi_chip.cpp \
Roshan Pius200a17d2017-11-01 13:03:35 -070033 wifi_feature_flags.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070034 wifi_legacy_hal.cpp \
Roshan Piuse73a5062016-12-12 08:53:34 -080035 wifi_legacy_hal_stubs.cpp \
Roshan Piusa26a6e02016-11-17 14:55:58 -080036 wifi_mode_controller.cpp \
Roshan Pius3e2d6712016-10-06 13:16:23 -070037 wifi_nan_iface.cpp \
38 wifi_p2p_iface.cpp \
Roshan Pius59268282016-10-06 20:23:47 -070039 wifi_rtt_controller.cpp \
Roshan Pius19224822016-10-11 08:21:46 -070040 wifi_sta_iface.cpp \
41 wifi_status_util.cpp
Roshan Pius3c4e8a32016-10-03 14:53:58 -070042LOCAL_SHARED_LIBRARIES := \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070043 libbase \
44 libcutils \
Yifan Hong63544ea2016-11-16 14:17:58 -080045 libhidlbase \
46 libhidltransport \
Roshan Pius3c4e8a32016-10-03 14:53:58 -070047 liblog \
48 libnl \
Roshan Pius908a69a2016-10-03 13:33:23 -070049 libutils \
Roshan Piusa26a6e02016-11-17 14:55:58 -080050 libwifi-hal \
Martijn Coenenb6fa3ae2017-11-13 16:56:42 +010051 libwifi-system-iface \
52 android.hardware.wifi@1.0 \
53 android.hardware.wifi@1.1 \
54 android.hardware.wifi@1.2
Roshan Pius200a17d2017-11-01 13:03:35 -070055LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
56include $(BUILD_STATIC_LIBRARY)
57
58###
59### android.hardware.wifi daemon
60###
61include $(CLEAR_VARS)
62LOCAL_MODULE := android.hardware.wifi@1.0-service
63LOCAL_MODULE_RELATIVE_PATH := hw
64LOCAL_PROPRIETARY_MODULE := true
65LOCAL_CPPFLAGS := -Wall -Werror -Wextra
66LOCAL_SRC_FILES := \
67 service.cpp
68LOCAL_SHARED_LIBRARIES := \
69 libbase \
70 libcutils \
71 libhidlbase \
72 libhidltransport \
73 liblog \
74 libnl \
75 libutils \
76 libwifi-hal \
77 libwifi-system-iface \
78 android.hardware.wifi@1.0 \
79 android.hardware.wifi@1.1 \
80 android.hardware.wifi@1.2
81LOCAL_STATIC_LIBRARIES := \
82 android.hardware.wifi@1.0-service-lib
Roshan Pius3c4e8a32016-10-03 14:53:58 -070083LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
84include $(BUILD_EXECUTABLE)
Roshan Pius200a17d2017-11-01 13:03:35 -070085
86###
87### android.hardware.wifi unit tests.
88###
89include $(CLEAR_VARS)
90LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
91LOCAL_SRC_FILES := \
92 tests/main.cpp \
93 tests/mock_wifi_feature_flags.cpp \
94 tests/mock_wifi_legacy_hal.cpp \
95 tests/mock_wifi_mode_controller.cpp \
96 tests/wifi_chip_unit_tests.cpp
97LOCAL_STATIC_LIBRARIES := \
98 libgmock \
99 libgtest \
100 android.hardware.wifi@1.0-service-lib
101LOCAL_SHARED_LIBRARIES := \
102 libbase \
103 libcutils \
104 libhidlbase \
105 libhidltransport \
106 liblog \
107 libnl \
108 libutils \
109 libwifi-hal \
110 libwifi-system-iface \
111 android.hardware.wifi@1.0 \
112 android.hardware.wifi@1.1 \
113 android.hardware.wifi@1.2
114include $(BUILD_NATIVE_TEST)