1// Copyright (C) 2016 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 19cc_defaults { 20 name: "libwifi-system-defaults", 21 cflags: [ 22 "-Wall", 23 "-Werror", 24 "-Wextra", 25 "-Winit-self", 26 "-Wno-unused-function", 27 "-Wno-unused-parameter", 28 "-Wshadow", 29 "-Wunused-variable", 30 "-Wwrite-strings", 31 ], 32} 33 34// Device independent wifi system logic. 35// ============================================================ 36cc_library { 37 name: "libwifi-system", 38 defaults: ["libwifi-system-defaults"], 39 export_include_dirs: ["include"], 40 export_shared_lib_headers: ["libbase"], 41 shared_libs: [ 42 "libbase", 43 "libcrypto", 44 "libcutils", 45 ], 46 srcs: [ 47 "hostapd_manager.cpp", 48 "supplicant_manager.cpp", 49 ], 50} 51 52// Test utilities (e.g. mock classes) for libwifi-system 53// ============================================================ 54cc_library_static { 55 name: "libwifi-system-test", 56 defaults: ["libwifi-system-defaults"], 57 static_libs: ["libgmock"], 58 export_include_dirs: [ 59 "include", 60 "testlib/include", 61 ], 62} 63