blob: 37dd9ff84b5911cac02ce7463760e52f6bb17ed5 [file] [log] [blame]
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +09001//
2// Copyright (C) 2020 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
Bob Badour6c7ed9d2021-02-12 17:07:05 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "frameworks_base_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["frameworks_base_license"],
24}
25
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000026cc_library_shared {
27 name: "libservice-connectivity",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090028 // TODO: build against the NDK (sdk_version: "30" for example)
29 cflags: [
30 "-Wall",
31 "-Werror",
32 "-Wno-unused-parameter",
33 "-Wthread-safety",
34 ],
35 srcs: [
36 "jni/com_android_server_TestNetworkService.cpp",
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000037 "jni/onload.cpp",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090038 ],
39 shared_libs: [
40 "libbase",
41 "liblog",
42 "libnativehelper",
43 // TODO: remove dependency on ifc_[add/del]_address by having Java code to add/delete
44 // addresses, and remove dependency on libnetutils.
45 "libnetutils",
46 ],
Pete Bentleyb1456112021-01-07 13:51:18 +000047 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000048 "com.android.tethering",
Pete Bentleyb1456112021-01-07 13:51:18 +000049 ],
50}
51
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090052java_library {
Aaron Huang63338842021-01-08 18:32:00 +080053 name: "service-connectivity-pre-jarjar",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000054 sdk_version: "system_server_current",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090055 srcs: [
56 ":connectivity-service-srcs",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000057 ":framework-connectivity-shared-srcs",
58 ":services-connectivity-shared-srcs",
59 // TODO: move to net-utils-device-common, enable shrink optimization to avoid extra classes
60 ":net-module-utils-srcs",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090061 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090062 libs: [
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000063 // TODO (b/183097033) remove once system_server_current includes core_current
64 "stable.core.platform.api.stubs",
65 "android_system_server_stubs_current",
66 "framework-annotations-lib",
67 "framework-connectivity.impl",
68 "framework-tethering.stubs.module_lib",
69 "framework-wifi.stubs.module_lib",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090070 "unsupportedappusage",
Remi NGUYEN VAN907ebd42021-03-08 22:05:03 +090071 "ServiceConnectivityResources",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090072 ],
73 static_libs: [
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000074 "dnsresolver_aidl_interface-V7-java",
Remi NGUYEN VAN96a931b2021-03-02 03:28:50 +000075 "modules-utils-os",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090076 "net-utils-device-common",
77 "net-utils-framework-common",
lucaslinef337532021-01-18 11:58:24 +080078 "netd-client",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000079 "netlink-client",
80 "networkstack-client",
lifrc0d25c12021-03-09 17:24:46 +080081 "PlatformProperties",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090082 "service-connectivity-protos",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090083 ],
84 apex_available: [
85 "//apex_available:platform",
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000086 "com.android.tethering",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090087 ],
88}
Aaron Huang63338842021-01-08 18:32:00 +080089
90java_library {
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090091 name: "service-connectivity-protos",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000092 sdk_version: "system_current",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090093 proto: {
94 type: "nano",
95 },
96 srcs: [
97 ":system-messages-proto-src",
98 ],
99 libs: ["libprotobuf-java-nano"],
100 apex_available: [
101 "//apex_available:platform",
102 "com.android.tethering",
103 ],
104}
105
106java_library {
Aaron Huang63338842021-01-08 18:32:00 +0800107 name: "service-connectivity",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +0000108 sdk_version: "system_server_current",
Aaron Huang63338842021-01-08 18:32:00 +0800109 installable: true,
lifrc0d25c12021-03-09 17:24:46 +0800110 static_libs: [
Aaron Huang63338842021-01-08 18:32:00 +0800111 "service-connectivity-pre-jarjar",
112 ],
113 jarjar_rules: "jarjar-rules.txt",
114 apex_available: [
115 "//apex_available:platform",
116 "com.android.tethering",
117 ],
118}