1// Copyright (C) 2011 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 15// Make the HAL library 16// ============================================================ 17package { 18 // See: http://go/android-license-faq 19 default_applicable_licenses: [ 20 "Android-Apache-2.0", 21 ], 22} 23 24soong_config_module_type_import { 25 from: "frameworks/opt/net/wifi/libwifi_hal/Android.bp", 26 module_types: ["wifi_cc_defaults"], 27} 28 29wifi_cc_defaults { 30 name: "libwifi-hal-syna-defaults", 31 soong_config_variables: { 32 google_wifi_config_lib: { 33 shared_libs: ["google_wifi_firmware_config_version_c_wrapper"], 34 cflags: [ 35 "-DGOOGLE_WIFI_FW_CONFIG_VERSION_C_WRAPPER", 36 // only for pixel feature 37 "-DRING_DUMP", 38 ], 39 }, 40 }, 41} 42 43cc_library_static { 44 name: "libwifi-hal-syna", 45 46 defaults: [ 47 "libwifi-hal-syna-defaults", 48 ], 49 50 cflags: [ 51 "-Wall", 52 "-Werror", 53 "-Wno-format", 54 "-Wno-reorder", 55 "-Wno-unused-function", 56 "-Wno-unused-parameter", 57 "-Wno-unused-private-field", 58 "-Wno-unused-variable", 59 "-Wno-unused-parameter", 60 ], 61 62 header_libs: [ 63 "liblog_headers", 64 "libnetlink_iface_headers", 65 "libutils_headers", 66 "wifi_legacy_headers", 67 ], 68 69 shared_libs: [ 70 // added for libwifi-hal-syna 71 "libcrypto", 72 // shared_libs in libwifi-hal 73 "liblog", 74 "libnl", 75 "libutils", 76 ], 77 78 srcs: [ 79 "wifi_hal.cpp", 80 "rtt.cpp", 81 "common.cpp", 82 "cpp_bindings.cpp", 83 "gscan.cpp", 84 "nan.cpp", 85 "link_layer_stats.cpp", 86 "wifi_logger.cpp", 87 "wifi_offload.cpp", 88 "twt.cpp", 89 ], 90 91 proprietary: true, 92 93} 94