1// Copyright (C) 2021 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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_defaults { 20 name: "libwifi-hal_cflags_defaults", 21 // Generated by building libwifi-hal and printing LOCAL_CFLAGS. 22 cflags: [ 23 "-Wall", 24 "-Werror", 25 "-Winit-self", 26 "-Wno-unused-function", 27 "-Wno-unused-parameter", 28 "-Wshadow", 29 "-Wunused-variable", 30 "-Wwrite-strings", 31 "-DWIFI_DRIVER_FW_PATH_STA=\"/dev/null\"", 32 "-DWIFI_DRIVER_FW_PATH_AP=\"/dev/null\"", 33 "-DWIFI_DRIVER_FW_PATH_PARAM=\"/dev/null\"", 34 ], 35} 36 37cc_library_static { 38 name: "libwifi-hal-common_bp", 39 defaults: ["libwifi-hal_cflags_defaults"], 40 srcs: ["wifi_hal_common.cpp"], 41 soc_specific: true, 42 local_include_dirs: ["include"], 43 shared_libs: [ 44 "libbase", 45 ], 46 header_libs: ["libcutils_headers"], 47} 48 49filegroup { 50 name: "libwifi-hal_srcs", 51 srcs: [ 52 "driver_tool.cpp", 53 "hal_tool.cpp", 54 ], 55} 56 57cc_library_headers { 58 name: "libwifi-hal_headers", 59 soc_specific: true, 60 export_include_dirs: ["include"], 61} 62 63cc_defaults { 64 name: "libwifi-hal_defaults", 65 defaults: ["libwifi-hal_cflags_defaults"], 66 soc_specific: true, 67 srcs: [":libwifi-hal_srcs"], 68 // Generated by building libwifi-hal and printing LOCAL_SHARED_LIBRARIES. 69 shared_libs: [ 70 "libbase", 71 "libcutils", 72 "liblog", 73 "libnl", 74 "libutils", 75 ], 76 // Generated by building libwifi-hal and printing LOCAL_WHOLE_STATIC_LIBRARIES. 77 whole_static_libs: [ 78 "libwifi-hal-common_bp", 79 ], 80 81 header_libs: [ 82 "libhardware_legacy_headers", 83 "libwifi-hal_headers", 84 ], 85 export_header_lib_headers: [ 86 "libhardware_legacy_headers", 87 "libwifi-hal_headers", 88 ], 89} 90 91