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//
16package {
17    // See: http://go/android-license-faq
18    default_applicable_licenses: [
19        "hardware_qcom_wlan_wcn6740_qcwcn_wpa_supplicant_8_lib_license",
20    ],
21}
22
23license {
24    name: "hardware_qcom_wlan_wcn6740_qcwcn_wpa_supplicant_8_lib_license",
25    visibility: [":__subpackages__"],
26    license_kinds: [
27        "SPDX-license-identifier-BSD",
28    ],
29    license_text: [
30        "NOTICE",
31    ],
32}
33
34cc_library_static {
35    name: "lib_driver_cmd_qcwcn",
36    shared_libs: [
37        "libc",
38        "libcutils",
39        "libdl",
40        "libnl",
41    ],
42    cflags: [
43        "-DCONFIG_ANDROID_LOG",
44        "-DCONFIG_P2P",
45        "-Wall",
46        "-Werror",
47    ],
48    srcs: [
49        "driver_cmd_nl80211.c",
50        "driver_cmd_nl80211_extn.c",
51    ],
52    include_dirs: [
53        "external/libnl/include",
54        "external/wpa_supplicant_8/src",
55        "external/wpa_supplicant_8/src/ap",
56        "external/wpa_supplicant_8/src/common",
57        "external/wpa_supplicant_8/src/drivers",
58        "external/wpa_supplicant_8/src/l2_packet",
59        "external/wpa_supplicant_8/src/utils",
60        "external/wpa_supplicant_8/src/wps",
61        "external/wpa_supplicant_8/wpa_supplicant",
62    ],
63    vendor: true,
64    arch: {
65        arm: {
66            cflags: [
67                "-mabi=aapcs-linux",
68            ],
69        },
70    },
71    defaults: [
72        "wpa_supplicant_cflags_default",
73    ],
74}
75