blob: 28bcdcba89d79d6f64cd4b887c5652295ad6f2c6 [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
Baligh Uddin2afd0982021-05-24 03:50:01 +000019 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour6c7ed9d2021-02-12 17:07:05 -080020}
21
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000022cc_library_shared {
23 name: "libservice-connectivity",
Remi NGUYEN VANb36fb992021-03-23 14:45:58 +000024 min_sdk_version: "30",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090025 cflags: [
26 "-Wall",
27 "-Werror",
28 "-Wno-unused-parameter",
29 "-Wthread-safety",
30 ],
31 srcs: [
32 "jni/com_android_server_TestNetworkService.cpp",
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000033 "jni/onload.cpp",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090034 ],
Remi NGUYEN VAN47cc6512021-03-24 01:49:39 +000035 stl: "libc++_static",
Remi NGUYEN VANb36fb992021-03-23 14:45:58 +000036 header_libs: [
37 "libbase_headers",
38 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090039 shared_libs: [
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090040 "liblog",
41 "libnativehelper",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090042 ],
Pete Bentleyb1456112021-01-07 13:51:18 +000043 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000044 "com.android.tethering",
Pete Bentleyb1456112021-01-07 13:51:18 +000045 ],
46}
47
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090048java_library {
Aaron Huang63338842021-01-08 18:32:00 +080049 name: "service-connectivity-pre-jarjar",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000050 sdk_version: "system_server_current",
Remi NGUYEN VANb36fb992021-03-23 14:45:58 +000051 min_sdk_version: "30",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090052 srcs: [
Remi NGUYEN VAN028cb1b2021-05-12 14:15:24 +000053 "src/**/*.java",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000054 ":framework-connectivity-shared-srcs",
55 ":services-connectivity-shared-srcs",
56 // TODO: move to net-utils-device-common, enable shrink optimization to avoid extra classes
57 ":net-module-utils-srcs",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090058 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090059 libs: [
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000060 // TODO (b/183097033) remove once system_server_current includes core_current
61 "stable.core.platform.api.stubs",
62 "android_system_server_stubs_current",
63 "framework-annotations-lib",
Aaron Huang6a7e6ad2021-04-14 01:25:55 +080064 "framework-connectivity-annotations",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000065 "framework-connectivity.impl",
66 "framework-tethering.stubs.module_lib",
67 "framework-wifi.stubs.module_lib",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090068 "unsupportedappusage",
Remi NGUYEN VAN907ebd42021-03-08 22:05:03 +090069 "ServiceConnectivityResources",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090070 ],
71 static_libs: [
lucaslin593a1b42021-03-29 18:56:47 +080072 "dnsresolver_aidl_interface-V8-java",
Remi NGUYEN VAN96a931b2021-03-02 03:28:50 +000073 "modules-utils-os",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090074 "net-utils-device-common",
75 "net-utils-framework-common",
lucaslinef337532021-01-18 11:58:24 +080076 "netd-client",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000077 "netlink-client",
78 "networkstack-client",
lifrc0d25c12021-03-09 17:24:46 +080079 "PlatformProperties",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090080 "service-connectivity-protos",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090081 ],
82 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000083 "com.android.tethering",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090084 ],
85}
Aaron Huang63338842021-01-08 18:32:00 +080086
87java_library {
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090088 name: "service-connectivity-protos",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +000089 sdk_version: "system_current",
Remi NGUYEN VANb36fb992021-03-23 14:45:58 +000090 min_sdk_version: "30",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090091 proto: {
92 type: "nano",
93 },
94 srcs: [
95 ":system-messages-proto-src",
96 ],
97 libs: ["libprotobuf-java-nano"],
98 apex_available: [
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090099 "com.android.tethering",
100 ],
101}
102
103java_library {
Aaron Huang63338842021-01-08 18:32:00 +0800104 name: "service-connectivity",
Remi NGUYEN VANf19e30d2021-03-22 10:25:12 +0000105 sdk_version: "system_server_current",
Remi NGUYEN VANb36fb992021-03-23 14:45:58 +0000106 min_sdk_version: "30",
Aaron Huang63338842021-01-08 18:32:00 +0800107 installable: true,
lifrc0d25c12021-03-09 17:24:46 +0800108 static_libs: [
Aaron Huang63338842021-01-08 18:32:00 +0800109 "service-connectivity-pre-jarjar",
110 ],
111 jarjar_rules: "jarjar-rules.txt",
112 apex_available: [
Aaron Huang63338842021-01-08 18:32:00 +0800113 "com.android.tethering",
114 ],
115}