blob: 217546292166df43f19f96481de9c34cf9973a7b [file] [log] [blame]
Daniel Norman1f2ba852021-10-04 16:14:43 -07001// 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
Bob Badour910f9f72021-10-14 13:21:21 -070015package {
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
Daniel Norman1f2ba852021-10-04 16:14:43 -070024cc_library_headers {
Gabriel Biren57ededa2021-09-03 16:08:50 +000025 name: "libwpa_aidl_headers",
Daniel Norman1f2ba852021-10-04 16:14:43 -070026 export_include_dirs: ["."],
27 soc_specific: true,
28}
29
30cc_library_static {
Gabriel Biren57ededa2021-09-03 16:08:50 +000031 name: "libwpa_aidl_bp",
Daniel Norman1f2ba852021-10-04 16:14:43 -070032 srcs: ["*.cpp"],
chao.meng4c248f02023-11-18 16:55:52 +080033 defaults: [
34 "libwpa_aidl_cflags_defaults",
35 "wpa_supplicant_cflags_defaults",
36 ],
Daniel Norman1f2ba852021-10-04 16:14:43 -070037 soc_specific: true,
38 shared_libs: [
Sunil Ravi3db35ff2023-11-06 23:23:30 +000039 "android.hardware.wifi.supplicant-V3-ndk",
Gabriel Biren6b4e8272022-12-14 23:07:53 +000040 "android.system.keystore2-V1-ndk",
Gabriel Biren57ededa2021-09-03 16:08:50 +000041 "libbinder_ndk",
Daniel Norman1f2ba852021-10-04 16:14:43 -070042 "libbase",
Gabriel Biren6b4e8272022-12-14 23:07:53 +000043 "libcrypto",
Daniel Norman1f2ba852021-10-04 16:14:43 -070044 "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",
Gabriel Biren57ededa2021-09-03 16:08:50 +000058 "libwpa_aidl_headers",
Daniel Norman1f2ba852021-10-04 16:14:43 -070059 ],
60}
61
62filegroup {
63 name: "android.hardware.wifi.supplicant.xml",
64 srcs: ["android.hardware.wifi.supplicant.xml"],
65}
chao.meng4c248f02023-11-18 16:55:52 +080066
67soong_config_module_type {
68 name: "libwpa_aidl_cflags_cc_defaults",
69 module_type: "cc_defaults",
70 config_namespace: "libwpa_aidl",
71 value_variables: [
72 "nl80211_driver",
73 ],
74 properties: ["cflags"],
75}
76
77libwpa_aidl_cflags_cc_defaults {
78 name: "libwpa_aidl_cflags_defaults",
79 soong_config_variables: {
80 nl80211_driver: {
81 cflags: ["-D%s"],
82 },
83 },
84}