Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 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. |
| 14 | LOCAL_PATH := $(call my-dir) |
| 15 | |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 16 | ### |
| 17 | ### android.hardware.wifi static library |
| 18 | ### |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 20 | LOCAL_MODULE := android.hardware.wifi@1.0-service-lib |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 21 | LOCAL_MODULE_RELATIVE_PATH := hw |
Steven Moreland | 46c0b94 | 2017-01-12 13:33:16 -0800 | [diff] [blame] | 22 | LOCAL_PROPRIETARY_MODULE := true |
Roshan Pius | 32fc12e | 2017-01-25 17:44:42 -0800 | [diff] [blame] | 23 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
Etan Cohen | c570040 | 2017-03-08 16:43:38 -0800 | [diff] [blame] | 24 | ifdef WIFI_HIDL_FEATURE_AWARE |
| 25 | LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE |
| 26 | endif |
Roshan Pius | cc33820 | 2017-11-02 13:54:09 -0700 | [diff] [blame] | 27 | ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE |
| 28 | LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE |
| 29 | endif |
Nick | c52e808 | 2018-05-02 13:54:28 -0700 | [diff] [blame] | 30 | ifdef WIFI_HIDL_FEATURE_DISABLE_AP |
| 31 | LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP |
| 32 | endif |
Chih-Hung Hsieh | fb83d77 | 2018-10-22 12:04:10 -0700 | [diff] [blame^] | 33 | # Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed. |
| 34 | LOCAL_CFLAGS += -Wno-error=implicit-fallthrough |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 35 | LOCAL_SRC_FILES := \ |
Roshan Pius | e65edb1 | 2016-11-22 13:02:01 -0800 | [diff] [blame] | 36 | hidl_struct_util.cpp \ |
Roshan Pius | 091e1c1 | 2017-01-30 16:40:50 -0800 | [diff] [blame] | 37 | hidl_sync_util.cpp \ |
xshu | 5899e8e | 2018-01-09 15:36:03 -0800 | [diff] [blame] | 38 | ringbuffer.cpp \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 39 | wifi.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 40 | wifi_ap_iface.cpp \ |
| 41 | wifi_chip.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 42 | wifi_feature_flags.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 43 | wifi_legacy_hal.cpp \ |
Roshan Pius | e73a506 | 2016-12-12 08:53:34 -0800 | [diff] [blame] | 44 | wifi_legacy_hal_stubs.cpp \ |
Roshan Pius | a26a6e0 | 2016-11-17 14:55:58 -0800 | [diff] [blame] | 45 | wifi_mode_controller.cpp \ |
Roshan Pius | 3e2d671 | 2016-10-06 13:16:23 -0700 | [diff] [blame] | 46 | wifi_nan_iface.cpp \ |
| 47 | wifi_p2p_iface.cpp \ |
Roshan Pius | 5926828 | 2016-10-06 20:23:47 -0700 | [diff] [blame] | 48 | wifi_rtt_controller.cpp \ |
Roshan Pius | 1922482 | 2016-10-11 08:21:46 -0700 | [diff] [blame] | 49 | wifi_sta_iface.cpp \ |
| 50 | wifi_status_util.cpp |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 51 | LOCAL_SHARED_LIBRARIES := \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 52 | libbase \ |
| 53 | libcutils \ |
Yifan Hong | 63544ea | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 54 | libhidlbase \ |
| 55 | libhidltransport \ |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 56 | liblog \ |
| 57 | libnl \ |
Roshan Pius | 908a69a | 2016-10-03 13:33:23 -0700 | [diff] [blame] | 58 | libutils \ |
Roshan Pius | a26a6e0 | 2016-11-17 14:55:58 -0800 | [diff] [blame] | 59 | libwifi-hal \ |
Martijn Coenen | b6fa3ae | 2017-11-13 16:56:42 +0100 | [diff] [blame] | 60 | libwifi-system-iface \ |
| 61 | android.hardware.wifi@1.0 \ |
| 62 | android.hardware.wifi@1.1 \ |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 63 | android.hardware.wifi@1.2 \ |
| 64 | android.hardware.wifi@1.3 |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 65 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 66 | include $(BUILD_STATIC_LIBRARY) |
| 67 | |
| 68 | ### |
| 69 | ### android.hardware.wifi daemon |
| 70 | ### |
| 71 | include $(CLEAR_VARS) |
| 72 | LOCAL_MODULE := android.hardware.wifi@1.0-service |
| 73 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 74 | LOCAL_PROPRIETARY_MODULE := true |
| 75 | LOCAL_CPPFLAGS := -Wall -Werror -Wextra |
| 76 | LOCAL_SRC_FILES := \ |
| 77 | service.cpp |
| 78 | LOCAL_SHARED_LIBRARIES := \ |
| 79 | libbase \ |
| 80 | libcutils \ |
| 81 | libhidlbase \ |
| 82 | libhidltransport \ |
| 83 | liblog \ |
| 84 | libnl \ |
| 85 | libutils \ |
| 86 | libwifi-hal \ |
| 87 | libwifi-system-iface \ |
| 88 | android.hardware.wifi@1.0 \ |
| 89 | android.hardware.wifi@1.1 \ |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 90 | android.hardware.wifi@1.2 \ |
| 91 | android.hardware.wifi@1.3 |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 92 | LOCAL_STATIC_LIBRARIES := \ |
| 93 | android.hardware.wifi@1.0-service-lib |
Roshan Pius | 3c4e8a3 | 2016-10-03 14:53:58 -0700 | [diff] [blame] | 94 | LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc |
| 95 | include $(BUILD_EXECUTABLE) |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 96 | |
| 97 | ### |
| 98 | ### android.hardware.wifi unit tests. |
| 99 | ### |
| 100 | include $(CLEAR_VARS) |
| 101 | LOCAL_MODULE := android.hardware.wifi@1.0-service-tests |
Roshan Pius | 3312801 | 2017-11-02 10:58:27 -0700 | [diff] [blame] | 102 | LOCAL_PROPRIETARY_MODULE := true |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 103 | LOCAL_SRC_FILES := \ |
Roshan Pius | 1a7b1db | 2018-01-22 17:57:20 -0800 | [diff] [blame] | 104 | tests/hidl_struct_util_unit_tests.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 105 | tests/main.cpp \ |
| 106 | tests/mock_wifi_feature_flags.cpp \ |
| 107 | tests/mock_wifi_legacy_hal.cpp \ |
| 108 | tests/mock_wifi_mode_controller.cpp \ |
xshu | 5899e8e | 2018-01-09 15:36:03 -0800 | [diff] [blame] | 109 | tests/ringbuffer_unit_tests.cpp \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 110 | tests/wifi_chip_unit_tests.cpp |
| 111 | LOCAL_STATIC_LIBRARIES := \ |
| 112 | libgmock \ |
| 113 | libgtest \ |
Roshan Pius | ddedf72 | 2018-05-04 13:30:43 -0700 | [diff] [blame] | 114 | libhidlbase \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 115 | android.hardware.wifi@1.0-service-lib |
| 116 | LOCAL_SHARED_LIBRARIES := \ |
| 117 | libbase \ |
| 118 | libcutils \ |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 119 | libhidltransport \ |
| 120 | liblog \ |
| 121 | libnl \ |
| 122 | libutils \ |
| 123 | libwifi-hal \ |
| 124 | libwifi-system-iface \ |
| 125 | android.hardware.wifi@1.0 \ |
| 126 | android.hardware.wifi@1.1 \ |
Jong Wook Kim | da830c9 | 2018-07-23 15:29:38 -0700 | [diff] [blame] | 127 | android.hardware.wifi@1.2 \ |
| 128 | android.hardware.wifi@1.3 |
Roshan Pius | 200a17d | 2017-11-01 13:03:35 -0700 | [diff] [blame] | 129 | include $(BUILD_NATIVE_TEST) |