blob: 20ccf060118c3afb04a1918d0d1c50da42cd7a43 [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 VANb36fb992021-03-23 14:45:58 +000028 min_sdk_version: "30",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090029 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 ],
Remi NGUYEN VAN47cc6512021-03-24 01:49:39 +000039 stl: "libc++_static",
Remi NGUYEN VANb36fb992021-03-23 14:45:58 +000040 header_libs: [
41 "libbase_headers",
42 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090043 shared_libs: [
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090044 "liblog",
45 "libnativehelper",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090046 ],
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 VANb36fb992021-03-23 14:45:58 +000055 min_sdk_version: "30",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090056 srcs: [
57 ":connectivity-service-srcs",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000058 ":framework-connectivity-shared-srcs",
59 ":services-connectivity-shared-srcs",
60 // TODO: move to net-utils-device-common, enable shrink optimization to avoid extra classes
61 ":net-module-utils-srcs",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090062 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090063 libs: [
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000064 // TODO (b/183097033) remove once system_server_current includes core_current
65 "stable.core.platform.api.stubs",
66 "android_system_server_stubs_current",
67 "framework-annotations-lib",
68 "framework-connectivity.impl",
69 "framework-tethering.stubs.module_lib",
70 "framework-wifi.stubs.module_lib",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090071 "unsupportedappusage",
Remi NGUYEN VAN907ebd42021-03-08 22:05:03 +090072 "ServiceConnectivityResources",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090073 ],
74 static_libs: [
lucaslin593a1b42021-03-29 18:56:47 +080075 "dnsresolver_aidl_interface-V8-java",
Remi NGUYEN VAN96a931b2021-03-02 03:28:50 +000076 "modules-utils-os",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090077 "net-utils-device-common",
78 "net-utils-framework-common",
lucaslinef337532021-01-18 11:58:24 +080079 "netd-client",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000080 "netlink-client",
81 "networkstack-client",
lifrc0d25c12021-03-09 17:24:46 +080082 "PlatformProperties",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090083 "service-connectivity-protos",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090084 ],
85 apex_available: [
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 VANb36fb992021-03-23 14:45:58 +000093 min_sdk_version: "30",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090094 proto: {
95 type: "nano",
96 },
97 srcs: [
98 ":system-messages-proto-src",
99 ],
100 libs: ["libprotobuf-java-nano"],
101 apex_available: [
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +0900102 "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",
Remi NGUYEN VANb36fb992021-03-23 14:45:58 +0000109 min_sdk_version: "30",
Aaron Huang63338842021-01-08 18:32:00 +0800110 installable: true,
lifrc0d25c12021-03-09 17:24:46 +0800111 static_libs: [
Aaron Huang63338842021-01-08 18:32:00 +0800112 "service-connectivity-pre-jarjar",
113 ],
114 jarjar_rules: "jarjar-rules.txt",
115 apex_available: [
Aaron Huang63338842021-01-08 18:32:00 +0800116 "com.android.tethering",
117 ],
118}