xref: /aosp_15_r20/external/wpa_supplicant_8/wpa_supplicant/aidl/mainline/Android.bp (revision 03f9172ca588f91df233974f4258bab95191f931)
1// Copyright (C) 2024 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
15cc_library_headers {
16    name: "mainline_supplicant_aidl_headers",
17    export_include_dirs: ["."],
18    apex_available: [
19        "//apex_available:platform",
20        "com.android.wifi",
21    ],
22    min_sdk_version: "30",
23}
24
25cc_library_static {
26    name: "mainline_supplicant_aidl_bp",
27    srcs: ["*.cpp"],
28    shared_libs: [
29        "android.system.wifi.mainline_supplicant-ndk",
30        "libbase",
31        "libbinder_ndk",
32    ],
33    cppflags: [
34        "-Wall",
35        "-Werror",
36        "-Wno-unused-parameter",
37        "-Wno-unused-private-field",
38        "-Wno-unused-variable",
39    ],
40    header_libs: [
41        // Shared headers with vendor supplicant
42        "libwpa_shared_aidl_headers_mainline",
43        // Mainline supplicant headers
44        "mainline_supplicant_aidl_headers",
45        // Core supplicant headers
46        "wpa_supplicant_headers_mainline",
47    ],
48    apex_available: [
49        "//apex_available:platform",
50        "com.android.wifi",
51    ],
52    min_sdk_version: "30",
53}
54
55prebuilt_etc {
56    name: "mainline_supplicant_rc",
57    src: "config/mainline_supplicant.rc",
58    filename: "mainline_supplicant.rc",
59    installable: false,
60}
61
62prebuilt_etc {
63    name: "mainline_supplicant_conf",
64    src: "config/mainline_supplicant.conf",
65    filename: "mainline_supplicant.conf",
66    installable: false,
67}
68