blob: 6333b6e26512a1cf2e05cb9c85baa7da135400fc [file] [log] [blame]
Sundong Ahn80af4e42021-12-02 01:01:49 +00001// Copyright (C) 2021 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: ["hardware_interfaces_license"],
17}
18
19filegroup {
20 name: "android.hardware.wifi@1.0-service_srcs",
21 srcs: ["service.cpp"],
22}
23
24cc_defaults {
25 name: "android.hardware.wifi@1.0-service_default",
26 srcs: [":android.hardware.wifi@1.0-service_srcs"],
27 relative_install_path: "hw",
28 soc_specific: true,
29 shared_libs: [
30 "android.hardware.wifi@1.0",
31 "android.hardware.wifi@1.1",
32 "android.hardware.wifi@1.2",
33 "android.hardware.wifi@1.3",
34 "android.hardware.wifi@1.4",
35 "android.hardware.wifi@1.5",
36 "libbase",
37 "libcutils",
38 "libhidlbase",
39 "liblog",
40 "libnl",
41 "libutils",
42 "libwifi-system-iface",
43 "libxml2",
44 ],
45 cppflags: [
46 "-Wall",
47 "-Werror",
48 "-Wextra",
49 ],
50}
51
52filegroup {
53 name: "android.hardware.wifi@1.0-service-lib_srcs",
54 srcs: [
55 "hidl_struct_util.cpp",
56 "hidl_sync_util.cpp",
57 "ringbuffer.cpp",
58 "wifi.cpp",
59 "wifi_ap_iface.cpp",
60 "wifi_chip.cpp",
61 "wifi_feature_flags.cpp",
62 "wifi_iface_util.cpp",
63 "wifi_legacy_hal.cpp",
64 "wifi_legacy_hal_factory.cpp",
65 "wifi_legacy_hal_stubs.cpp",
66 "wifi_mode_controller.cpp",
67 "wifi_nan_iface.cpp",
68 "wifi_p2p_iface.cpp",
69 "wifi_rtt_controller.cpp",
70 "wifi_sta_iface.cpp",
71 "wifi_status_util.cpp",
72 ],
73}
74
75cc_defaults {
76 name: "android.hardware.wifi@1.0-service-lib_defaults",
77 srcs: [":android.hardware.wifi@1.0-service-lib_srcs"],
78 relative_install_path: "hw",
79 soc_specific: true,
80 shared_libs: [
81 "android.hardware.wifi@1.0",
82 "android.hardware.wifi@1.1",
83 "android.hardware.wifi@1.2",
84 "android.hardware.wifi@1.3",
85 "android.hardware.wifi@1.4",
86 "android.hardware.wifi@1.5",
87 "libbase",
88 "libcutils",
89 "libhidlbase",
90 "liblog",
91 "libnl",
92 "libutils",
93 "libwifi-system-iface",
94 "libxml2",
95 ],
96 // Generated by building android.hardware.wifi@1.0-service-lib and printing LOCAL_CPPFLAGS.
97 cppflags: [
98 "-Wall",
99 "-Werror",
100 "-Wextra",
101 "-DWIFI_HIDL_FEATURE_DUAL_INTERFACE",
102 ],
103 export_include_dirs: ["."],
104 include_dirs: ["external/libxml2/include"],
105}