blob: b6adf7985a7fe36d4ec6be3e943a75673cd0fdee [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 Uddin36847132021-05-23 16:38:40 +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 VAN59262cb2020-12-21 18:40:08 +090024 // TODO: build against the NDK (sdk_version: "30" for example)
25 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 ],
35 shared_libs: [
36 "libbase",
37 "liblog",
38 "libnativehelper",
39 // TODO: remove dependency on ifc_[add/del]_address by having Java code to add/delete
40 // addresses, and remove dependency on libnetutils.
41 "libnetutils",
42 ],
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 VAN59262cb2020-12-21 18:40:08 +090050 srcs: [
Remi NGUYEN VANcdb45f82021-05-13 12:53:15 +000051 "src/**/*.java",
Aaron Huang63338842021-01-08 18:32:00 +080052 ":framework-connectivity-shared-srcs",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090053 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090054 libs: [
55 "android.net.ipsec.ike",
56 "services.core",
57 "services.net",
58 "unsupportedappusage",
Remi NGUYEN VAN907ebd42021-03-08 22:05:03 +090059 "ServiceConnectivityResources",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090060 ],
61 static_libs: [
Remi NGUYEN VAN96a931b2021-03-02 03:28:50 +000062 "modules-utils-os",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090063 "net-utils-device-common",
64 "net-utils-framework-common",
lucaslinef337532021-01-18 11:58:24 +080065 "netd-client",
lifrc0d25c12021-03-09 17:24:46 +080066 "PlatformProperties",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090067 "service-connectivity-protos",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090068 ],
69 apex_available: [
70 "//apex_available:platform",
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000071 "com.android.tethering",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090072 ],
73}
Aaron Huang63338842021-01-08 18:32:00 +080074
75java_library {
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090076 name: "service-connectivity-protos",
77 proto: {
78 type: "nano",
79 },
80 srcs: [
81 ":system-messages-proto-src",
82 ],
83 libs: ["libprotobuf-java-nano"],
84 apex_available: [
85 "//apex_available:platform",
86 "com.android.tethering",
87 ],
88}
89
90java_library {
Aaron Huang63338842021-01-08 18:32:00 +080091 name: "service-connectivity",
92 installable: true,
lifrc0d25c12021-03-09 17:24:46 +080093 static_libs: [
Aaron Huang63338842021-01-08 18:32:00 +080094 "service-connectivity-pre-jarjar",
95 ],
96 jarjar_rules: "jarjar-rules.txt",
97 apex_available: [
98 "//apex_available:platform",
99 "com.android.tethering",
100 ],
101}