blob: 3f7d76a3ab9c6696826f7511d2b41b5249d729b7 [file] [log] [blame]
paulhu73a82032021-11-18 15:29:03 +08001//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Remi NGUYEN VANa24baed2022-02-02 13:22:57 +090017// For test code only.
18filegroup {
19 name: "lib_networkStatsFactory_native",
20 srcs: [
21 "jni/com_android_server_net_NetworkStatsFactory.cpp",
22 ],
23 path: "jni",
24 visibility: [
25 "//packages/modules/Connectivity:__subpackages__",
26 ],
27}
28
29filegroup {
30 name: "services.connectivity-netstats-jni-sources",
31 srcs: [
32 "jni/com_android_server_net_NetworkStatsFactory.cpp",
33 "jni/com_android_server_net_NetworkStatsService.cpp",
34 ],
35 path: "jni",
36 visibility: [
37 "//packages/modules/Connectivity:__subpackages__",
38 ],
39}
40
Junyu Laiad166b42021-12-07 08:25:31 +000041// Connectivity-T common libraries.
42
Xiao Madbc8e0f2021-12-28 09:16:09 +000043// TODO: remove this empty filegroup.
Junyu Laiad166b42021-12-07 08:25:31 +000044filegroup {
45 name: "services.connectivity-tiramisu-sources",
Xiao Madbc8e0f2021-12-28 09:16:09 +000046 srcs: [],
paulhu73a82032021-11-18 15:29:03 +080047 path: "src",
Aaron Huang9a708a42021-12-10 17:36:49 +080048 visibility: ["//frameworks/base/services/core"],
49}
paulhu66f61ac2021-12-14 23:09:55 +080050
markchiene1825f12022-01-18 18:26:28 +080051cc_library_shared {
52 name: "libcom_android_net_module_util_jni",
53 min_sdk_version: "30",
54 cflags: [
55 "-Wall",
56 "-Werror",
57 "-Wno-unused-parameter",
58 "-Wthread-safety",
59 ],
60 srcs: [
61 "jni/onload.cpp",
62 ],
63 stl: "libc++_static",
64 static_libs: [
65 "libnet_utils_device_common_bpfjni",
66 ],
67 shared_libs: [
68 "liblog",
69 "libnativehelper",
70 ],
71 apex_available: [
72 "//apex_available:platform",
73 ],
74}