blob: 80249ef3cae439fa81f48c7fa19b91dc85e0d397 [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
15wifi_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 Vof43cfab2017-08-04 10:26:48 -070029cc_library {
Logan Chien929c0d12017-04-21 11:28:41 +080030 name: "libwifi-system-iface",
31 vendor_available: true,
Justin Yunf8cdaf92017-07-24 15:19:45 +090032 vndk: {
33 enabled: true,
34 },
Logan Chien929c0d12017-04-21 11:28:41 +080035 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// ============================================================
49cc_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}