blob: 5392f8451afee7a13ad502abb5956b5b62beee7a [file] [log] [blame]
Remi NGUYEN VANa985e582020-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 Badour56ea88a2021-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 VANe724f632021-01-08 01:19:44 +000026cc_library_shared {
27 name: "libservice-connectivity",
Remi NGUYEN VANa985e582020-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 VANe724f632021-01-08 01:19:44 +000037 "jni/onload.cpp",
Remi NGUYEN VANa985e582020-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 Bentleyb6031f32021-01-07 13:51:18 +000047 apex_available: [
Remi NGUYEN VANe724f632021-01-08 01:19:44 +000048 "com.android.tethering",
Pete Bentleyb6031f32021-01-07 13:51:18 +000049 ],
50}
51
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090052java_library {
53 name: "service-connectivity",
54 srcs: [
55 ":connectivity-service-srcs",
56 ],
57 installable: true,
58 jarjar_rules: "jarjar-rules.txt",
59 libs: [
60 "android.net.ipsec.ike",
61 "services.core",
62 "services.net",
63 "unsupportedappusage",
Remi NGUYEN VAN21c854a2021-03-08 22:05:03 +090064 "ServiceConnectivityResources",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090065 ],
66 static_libs: [
Remi NGUYEN VAN4c581d82021-03-02 03:28:50 +000067 "modules-utils-os",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090068 "net-utils-device-common",
69 "net-utils-framework-common",
lucaslinaf269222021-01-18 11:58:24 +080070 "netd-client",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090071 ],
72 apex_available: [
73 "//apex_available:platform",
Remi NGUYEN VANe724f632021-01-08 01:19:44 +000074 "com.android.tethering",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090075 ],
76}