blob: 0ea30f4deae1347c6469d8ee425788b068f5956c [file] [log] [blame]
Logan Chien929c0d12017-04-21 11:28:41 +08001// 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 Badour7db232e2021-02-12 16:14:22 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Logan Chien929c0d12017-04-21 11:28:41 +080019wifi_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 Vof43cfab2017-08-04 10:26:48 -070033cc_library {
Logan Chien929c0d12017-04-21 11:28:41 +080034 name: "libwifi-system-iface",
35 vendor_available: true,
Justin Yundb4703e2020-11-11 18:49:26 +090036 product_available: true,
Justin Yunf8cdaf92017-07-24 15:19:45 +090037 vndk: {
38 enabled: true,
39 },
Logan Chien929c0d12017-04-21 11:28:41 +080040 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// ============================================================
54cc_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}