Daniel Norman | 1f2ba85 | 2021-10-04 16:14:43 -0700 | [diff] [blame] | 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 | |
Bob Badour | 910f9f7 | 2021-10-14 13:21:21 -0700 | [diff] [blame] | 15 | package { |
| 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 Norman | 1f2ba85 | 2021-10-04 16:14:43 -0700 | [diff] [blame] | 24 | cc_library_headers { |
Gabriel Biren | 57ededa | 2021-09-03 16:08:50 +0000 | [diff] [blame] | 25 | name: "libwpa_aidl_headers", |
Daniel Norman | 1f2ba85 | 2021-10-04 16:14:43 -0700 | [diff] [blame] | 26 | export_include_dirs: ["."], |
| 27 | soc_specific: true, |
| 28 | } |
| 29 | |
| 30 | cc_library_static { |
Gabriel Biren | 57ededa | 2021-09-03 16:08:50 +0000 | [diff] [blame] | 31 | name: "libwpa_aidl_bp", |
Daniel Norman | 1f2ba85 | 2021-10-04 16:14:43 -0700 | [diff] [blame] | 32 | srcs: ["*.cpp"], |
| 33 | defaults: ["wpa_supplicant_cflags_defaults"], |
| 34 | soc_specific: true, |
| 35 | shared_libs: [ |
Gabriel Biren | 3c73883 | 2022-08-26 22:42:00 +0000 | [diff] [blame] | 36 | "android.hardware.wifi.supplicant-V2-ndk", |
Gabriel Biren | 6b4e827 | 2022-12-14 23:07:53 +0000 | [diff] [blame^] | 37 | "android.system.keystore2-V1-ndk", |
Gabriel Biren | 57ededa | 2021-09-03 16:08:50 +0000 | [diff] [blame] | 38 | "libbinder_ndk", |
Daniel Norman | 1f2ba85 | 2021-10-04 16:14:43 -0700 | [diff] [blame] | 39 | "libbase", |
Gabriel Biren | 6b4e827 | 2022-12-14 23:07:53 +0000 | [diff] [blame^] | 40 | "libcrypto", |
Daniel Norman | 1f2ba85 | 2021-10-04 16:14:43 -0700 | [diff] [blame] | 41 | "libutils", |
| 42 | "liblog", |
| 43 | "libssl", |
| 44 | ], |
| 45 | // Generated by building libwpa_hidl and printing LOCAL_CPPFLAGS. |
| 46 | cppflags: [ |
| 47 | "-Wall", |
| 48 | "-Werror", |
| 49 | "-Wno-unused-parameter", |
| 50 | "-Wno-unused-private-field", |
| 51 | "-Wno-unused-variable", |
| 52 | ], |
| 53 | header_libs: [ |
| 54 | "wpa_supplicant_headers", |
Gabriel Biren | 57ededa | 2021-09-03 16:08:50 +0000 | [diff] [blame] | 55 | "libwpa_aidl_headers", |
Daniel Norman | 1f2ba85 | 2021-10-04 16:14:43 -0700 | [diff] [blame] | 56 | ], |
| 57 | } |
| 58 | |
| 59 | filegroup { |
| 60 | name: "android.hardware.wifi.supplicant.xml", |
| 61 | srcs: ["android.hardware.wifi.supplicant.xml"], |
| 62 | } |