Home | History | Annotate | Download | only in libwifi_system_iface
      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 // ============================================================
     29 cc_library {
     30     name: "libwifi-system-iface",
     31     vendor_available: true,
     32     vndk: {
     33         enabled: true,
     34     },
     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 }
     62