Logan Chien | 929c0d1 | 2017-04-21 11:28:41 +0800 | [diff] [blame] | 1 | // Copyright (C) 2017 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 | 929c0d1 | 2017-04-21 11:28:41 +0800 | [diff] [blame] | 19 | wifi_system_iface_cflags = [ |
| 20 | "-Wall", |
| 21 | "-Werror", |
| 22 | "-Wextra", |
| 23 | "-Winit-self", |
| 24 | "-Wno-unused-function", |
| 25 | "-Wno-unused-parameter", |
| 26 | "-Wshadow", |
| 27 | "-Wunused-variable", |
| 28 | "-Wwrite-strings", |
| 29 | ] |
| 30 | |
| 31 | // Device independent wifi system logic. |
| 32 | // ============================================================ |
Tri Vo | f43cfab | 2017-08-04 10:26:48 -0700 | [diff] [blame] | 33 | cc_library { |
Logan Chien | 929c0d1 | 2017-04-21 11:28:41 +0800 | [diff] [blame] | 34 | name: "libwifi-system-iface", |
| 35 | vendor_available: true, |
Justin Yun | db4703e | 2020-11-11 18:49:26 +0900 | [diff] [blame] | 36 | product_available: true, |
Justin Yun | f8cdaf9 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 37 | vndk: { |
| 38 | enabled: true, |
| 39 | }, |
Logan Chien | 929c0d1 | 2017-04-21 11:28:41 +0800 | [diff] [blame] | 40 | cflags: wifi_system_iface_cflags, |
| 41 | local_include_dirs: ["include"], |
| 42 | export_include_dirs: ["include"], |
| 43 | shared_libs: [ |
| 44 | "libbase", |
| 45 | ], |
| 46 | |
| 47 | srcs: [ |
| 48 | "interface_tool.cpp", |
| 49 | ], |
| 50 | } |
| 51 | |
| 52 | // Test utilities (e.g. mock classes) for libwifi-system-iface |
| 53 | // ============================================================ |
| 54 | cc_library_static { |
| 55 | name: "libwifi-system-iface-test", |
| 56 | cflags: wifi_system_iface_cflags, |
| 57 | local_include_dirs: [ |
| 58 | "include", |
| 59 | "testlib/include", |
| 60 | ], |
| 61 | static_libs: ["libgmock"], |
| 62 | export_include_dirs: [ |
| 63 | "include", |
| 64 | "testlib/include", |
| 65 | ], |
| 66 | } |