xref: /aosp_15_r20/external/wpa_supplicant_8/wpa_supplicant/aidl/vendor/Android.bp (revision 03f9172ca588f91df233974f4258bab95191f931)
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    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "external_wpa_supplicant_8_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-BSD
21    default_applicable_licenses: ["external_wpa_supplicant_8_license"],
22}
23
24cc_library_headers {
25    name: "libwpa_aidl_headers",
26    export_include_dirs: ["."],
27    soc_specific: true,
28}
29
30cc_library_static {
31    name: "libwpa_aidl_bp",
32    srcs: ["*.cpp"],
33    defaults: [
34        "libwpa_aidl_cflags_defaults",
35        "wpa_supplicant_cflags_defaults",
36    ],
37    soc_specific: true,
38    shared_libs: [
39        "android.hardware.wifi.supplicant-V4-ndk",
40        "android.system.keystore2-V1-ndk",
41        "libbinder_ndk",
42        "libbase",
43        "libcrypto",
44        "libutils",
45        "liblog",
46        "libssl",
47    ],
48    // Generated by building libwpa_hidl and printing LOCAL_CPPFLAGS.
49    cppflags: [
50        "-Wall",
51        "-Werror",
52        "-Wno-unused-parameter",
53        "-Wno-unused-private-field",
54        "-Wno-unused-variable",
55    ],
56    header_libs: [
57        "wpa_supplicant_headers",
58        "libwpa_aidl_headers",
59        "libwpa_shared_aidl_headers_vendor",
60    ],
61}
62
63vintf_fragment {
64    name: "android.hardware.wifi.supplicant.xml",
65    src: "android.hardware.wifi.supplicant.xml",
66    soc_specific: true,
67}
68
69soong_config_module_type {
70    name: "libwpa_aidl_cflags_cc_defaults",
71    module_type: "cc_defaults",
72    config_namespace: "libwpa_aidl",
73    value_variables: [
74        "nl80211_driver",
75    ],
76    properties: ["cflags"],
77}
78
79libwpa_aidl_cflags_cc_defaults {
80    name: "libwpa_aidl_cflags_defaults",
81    soong_config_variables: {
82        nl80211_driver: {
83            cflags: ["-D%s"],
84        },
85    },
86}
87
88prebuilt_etc {
89    name: "android.hardware.wifi.supplicant.xml.prebuilt",
90    src: "android.hardware.wifi.supplicant.xml",
91    relative_install_path: "vintf",
92    installable: false,
93}
94