1//
2// Copyright (C) 2008 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    // See: http://go/android-license-faq
19    default_applicable_licenses: [
20        "hardware_broadcom_wlan_bcmdhd_wpa_supplicant_8_lib_license",
21    ],
22}
23
24license {
25    name: "hardware_broadcom_wlan_bcmdhd_wpa_supplicant_8_lib_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-BSD",
29    ],
30    license_text: [
31        "NOTICE",
32    ],
33}
34
35cc_library_static {
36    name: "lib_driver_cmd_bcmdhd",
37    shared_libs: [
38        "libc",
39        "libcutils",
40    ],
41    cflags: [
42        "-DCONFIG_ANDROID_LOG",
43        "-DCONFIG_P2P",
44        "-Wall",
45        "-Werror",
46        "-Wno-unused-parameter",
47        "-Wno-macro-redefined",
48    ],
49    srcs: [
50        "driver_cmd_nl80211.c",
51    ],
52    include_dirs: [
53        "external/libnl/include",
54        "external/wpa_supplicant_8/src",
55        "external/wpa_supplicant_8/src/common",
56        "external/wpa_supplicant_8/src/drivers",
57        "external/wpa_supplicant_8/src/l2_packet",
58        "external/wpa_supplicant_8/src/utils",
59        "external/wpa_supplicant_8/src/wps",
60        "external/wpa_supplicant_8/wpa_supplicant",
61    ],
62    vendor: true,
63    defaults: [
64        "wpa_supplicant_cflags_default",
65    ],
66}
67