blob: ec0201248fbb2590a117b4252f44d04cff102e69 [file] [log] [blame]
Logan Chiende086d42017-04-19 21:40:12 +08001// 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
Bob Badour7db232e2021-02-12 16:14:22 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Logan Chiende086d42017-04-19 21:40:12 +080019cc_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// ============================================================
Tri Vof43cfab2017-08-04 10:26:48 -070036cc_library {
Logan Chiende086d42017-04-19 21:40:12 +080037 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",
Logan Chiende086d42017-04-19 21:40:12 +080048 "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}