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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19wifi_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// ============================================================
33cc_library {
34    name: "libwifi-system-iface",
35    vendor_available: true,
36    product_available: true,
37    cflags: wifi_system_iface_cflags,
38    local_include_dirs: ["include"],
39    export_include_dirs: ["include"],
40    shared_libs: [
41        "libbase",
42    ],
43
44    srcs: [
45        "interface_tool.cpp",
46    ],
47}
48
49// Test utilities (e.g. mock classes) for libwifi-system-iface
50// ============================================================
51cc_library_static {
52    name: "libwifi-system-iface-test",
53    cflags: wifi_system_iface_cflags,
54    local_include_dirs: [
55        "include",
56        "testlib/include",
57    ],
58    static_libs: ["libgmock"],
59    export_include_dirs: [
60        "include",
61        "testlib/include",
62    ],
63}
64