paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 20 | } |
| 21 | |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 22 | // NetworkStats related libraries. |
| 23 | |
| 24 | filegroup { |
| 25 | name: "services.connectivity-netstats-sources", |
| 26 | srcs: [ |
| 27 | "src/com/android/server/net/NetworkIdentity*.java", |
| 28 | "src/com/android/server/net/NetworkStats*.java", |
markchien | e1825f1 | 2022-01-18 18:26:28 +0800 | [diff] [blame] | 29 | "src/com/android/server/net/BpfInterfaceMapUpdater.java", |
| 30 | "src/com/android/server/net/InterfaceMapValue.java", |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 31 | ], |
| 32 | path: "src", |
| 33 | visibility: [ |
| 34 | "//visibility:private", |
| 35 | ], |
| 36 | } |
| 37 | |
| 38 | // Nsd related libraries. |
| 39 | |
paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 40 | filegroup { |
| 41 | name: "services.connectivity-nsd-sources", |
| 42 | srcs: [ |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 43 | "src/com/android/server/INativeDaemon*.java", |
| 44 | "src/com/android/server/NativeDaemon*.java", |
| 45 | "src/com/android/server/Nsd*.java", |
| 46 | ], |
| 47 | path: "src", |
| 48 | visibility: [ |
| 49 | "//visibility:private", |
| 50 | ], |
| 51 | } |
| 52 | |
Aaron Huang | 9a708a4 | 2021-12-10 17:36:49 +0800 | [diff] [blame] | 53 | // IpSec related libraries. |
| 54 | |
| 55 | filegroup { |
| 56 | name: "services.connectivity-ipsec-sources", |
| 57 | srcs: [ |
| 58 | "src/com/android/server/IpSecService.java", |
| 59 | ], |
| 60 | path: "src", |
| 61 | visibility: [ |
| 62 | "//visibility:private", |
| 63 | ], |
| 64 | } |
| 65 | |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 66 | // Ethernet related libraries. |
| 67 | |
| 68 | filegroup { |
| 69 | name: "services.connectivity-ethernet-sources", |
| 70 | srcs: [ |
Xiao Ma | e3da3eb | 2021-12-28 06:33:23 +0000 | [diff] [blame] | 71 | "src/com/android/server/net/DelayedDiskWrite.java", |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 72 | "src/com/android/server/net/IpConfigStore.java", |
| 73 | ], |
| 74 | path: "src", |
| 75 | visibility: [ |
| 76 | "//frameworks/opt/net/ethernet", |
| 77 | ], |
| 78 | } |
| 79 | |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 80 | // Connectivity-T common libraries. |
| 81 | |
| 82 | filegroup { |
| 83 | name: "services.connectivity-tiramisu-sources", |
| 84 | srcs: [ |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 85 | ":services.connectivity-ethernet-sources", |
Aaron Huang | 9a708a4 | 2021-12-10 17:36:49 +0800 | [diff] [blame] | 86 | ":services.connectivity-ipsec-sources", |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 87 | ":services.connectivity-netstats-sources", |
paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 88 | ], |
| 89 | path: "src", |
Aaron Huang | 9a708a4 | 2021-12-10 17:36:49 +0800 | [diff] [blame] | 90 | visibility: ["//frameworks/base/services/core"], |
| 91 | } |
paulhu | 66f61ac | 2021-12-14 23:09:55 +0800 | [diff] [blame] | 92 | |
| 93 | filegroup { |
| 94 | name: "services.connectivity-tiramisu-updatable-sources", |
| 95 | srcs: [ |
| 96 | ":services.connectivity-nsd-sources", |
| 97 | ], |
| 98 | path: "src", |
| 99 | visibility: [ |
| 100 | "//packages/modules/Connectivity:__subpackages__", |
| 101 | ], |
| 102 | } |
markchien | e1825f1 | 2022-01-18 18:26:28 +0800 | [diff] [blame] | 103 | |
| 104 | cc_library_shared { |
| 105 | name: "libcom_android_net_module_util_jni", |
| 106 | min_sdk_version: "30", |
| 107 | cflags: [ |
| 108 | "-Wall", |
| 109 | "-Werror", |
| 110 | "-Wno-unused-parameter", |
| 111 | "-Wthread-safety", |
| 112 | ], |
| 113 | srcs: [ |
| 114 | "jni/onload.cpp", |
| 115 | ], |
| 116 | stl: "libc++_static", |
| 117 | static_libs: [ |
| 118 | "libnet_utils_device_common_bpfjni", |
| 119 | ], |
| 120 | shared_libs: [ |
| 121 | "liblog", |
| 122 | "libnativehelper", |
| 123 | ], |
| 124 | apex_available: [ |
| 125 | "//apex_available:platform", |
| 126 | ], |
| 127 | } |