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    vndk: {
38        enabled: true,
39    },
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// ============================================================
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}
67