blob: 2fb9f72feab789de537bfb56973ff0d2a8bdf8c0 [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 {
Aaron Huang082f1d82021-01-08 18:32:00 +080053 name: "service-connectivity-pre-jarjar",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090054 srcs: [
Aaron Huang082f1d82021-01-08 18:32:00 +080055 ":framework-connectivity-shared-srcs",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090056 ":connectivity-service-srcs",
57 ],
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090058 libs: [
59 "android.net.ipsec.ike",
60 "services.core",
61 "services.net",
62 "unsupportedappusage",
63 ],
64 static_libs: [
Remi NGUYEN VAN4c581d82021-03-02 03:28:50 +000065 "modules-utils-os",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090066 "net-utils-device-common",
67 "net-utils-framework-common",
lucaslinaf269222021-01-18 11:58:24 +080068 "netd-client",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090069 ],
70 apex_available: [
71 "//apex_available:platform",
Remi NGUYEN VANe724f632021-01-08 01:19:44 +000072 "com.android.tethering",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090073 ],
74}
Aaron Huang082f1d82021-01-08 18:32:00 +080075
76java_library {
77 name: "service-connectivity",
78 installable: true,
79 static_libs:[
80 "service-connectivity-pre-jarjar",
81 ],
82 jarjar_rules: "jarjar-rules.txt",
83 apex_available: [
84 "//apex_available:platform",
85 "com.android.tethering",
86 ],
87}