Logan Chien | de086d4 | 2017-04-19 21:40:12 +0800 | [diff] [blame] | 1 | // Copyright (C) 2016 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 | 7db232e | 2021-02-12 16:14:22 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Logan Chien | de086d4 | 2017-04-19 21:40:12 +0800 | [diff] [blame] | 19 | cc_defaults { |
| 20 | name: "libwifi-system-defaults", |
| 21 | cflags: [ |
| 22 | "-Wall", |
| 23 | "-Werror", |
| 24 | "-Wextra", |
| 25 | "-Winit-self", |
| 26 | "-Wno-unused-function", |
| 27 | "-Wno-unused-parameter", |
| 28 | "-Wshadow", |
| 29 | "-Wunused-variable", |
| 30 | "-Wwrite-strings", |
| 31 | ], |
| 32 | } |
| 33 | |
| 34 | // Device independent wifi system logic. |
| 35 | // ============================================================ |
Tri Vo | f43cfab | 2017-08-04 10:26:48 -0700 | [diff] [blame] | 36 | cc_library { |
Logan Chien | de086d4 | 2017-04-19 21:40:12 +0800 | [diff] [blame] | 37 | name: "libwifi-system", |
| 38 | defaults: ["libwifi-system-defaults"], |
| 39 | export_include_dirs: ["include"], |
| 40 | export_shared_lib_headers: ["libbase"], |
| 41 | shared_libs: [ |
| 42 | "libbase", |
| 43 | "libcrypto", |
| 44 | "libcutils", |
| 45 | ], |
| 46 | srcs: [ |
| 47 | "hostapd_manager.cpp", |
Logan Chien | de086d4 | 2017-04-19 21:40:12 +0800 | [diff] [blame] | 48 | "supplicant_manager.cpp", |
| 49 | ], |
| 50 | } |
| 51 | |
| 52 | // Test utilities (e.g. mock classes) for libwifi-system |
| 53 | // ============================================================ |
| 54 | cc_library_static { |
| 55 | name: "libwifi-system-test", |
| 56 | defaults: ["libwifi-system-defaults"], |
| 57 | static_libs: ["libgmock"], |
| 58 | export_include_dirs: [ |
| 59 | "include", |
| 60 | "testlib/include", |
| 61 | ], |
| 62 | } |