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