blob: f5ea184f31a5696766dade278b532491e7ece6b4 [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
15cc_defaults {
16 name: "libwifi-system-defaults",
17 cflags: [
18 "-Wall",
19 "-Werror",
20 "-Wextra",
21 "-Winit-self",
22 "-Wno-unused-function",
23 "-Wno-unused-parameter",
24 "-Wshadow",
25 "-Wunused-variable",
26 "-Wwrite-strings",
27 ],
28}
29
30// Device independent wifi system logic.
31// ============================================================
Tri Vof43cfab2017-08-04 10:26:48 -070032cc_library {
Logan Chiende086d42017-04-19 21:40:12 +080033 name: "libwifi-system",
34 defaults: ["libwifi-system-defaults"],
35 export_include_dirs: ["include"],
36 export_shared_lib_headers: ["libbase"],
37 shared_libs: [
38 "libbase",
39 "libcrypto",
40 "libcutils",
41 ],
42 srcs: [
43 "hostapd_manager.cpp",
Logan Chiende086d42017-04-19 21:40:12 +080044 "supplicant_manager.cpp",
45 ],
46}
47
48// Test utilities (e.g. mock classes) for libwifi-system
49// ============================================================
50cc_library_static {
51 name: "libwifi-system-test",
52 defaults: ["libwifi-system-defaults"],
53 static_libs: ["libgmock"],
54 export_include_dirs: [
55 "include",
56 "testlib/include",
57 ],
58}
59
60// Unit tests for libwifi-system
61// ============================================================
62cc_test {
63 name: "libwifi-system_tests",
64 defaults: ["libwifi-system-defaults"],
65 srcs: [
66 "tests/main.cpp",
67 "tests/hostapd_manager_unittest.cpp",
68 ],
69 static_libs: [
70 "libgmock",
71 ],
72 shared_libs: [
73 "libbase",
74 "libwifi-system",
75 ],
76}