blob: 8fc3181807787fbae31578f839cb2537e10796e8 [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
Remi NGUYEN VANe724f632021-01-08 01:19:44 +000017cc_library_shared {
18 name: "libservice-connectivity",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090019 // TODO: build against the NDK (sdk_version: "30" for example)
20 cflags: [
21 "-Wall",
22 "-Werror",
23 "-Wno-unused-parameter",
24 "-Wthread-safety",
25 ],
26 srcs: [
27 "jni/com_android_server_TestNetworkService.cpp",
28 "jni/com_android_server_connectivity_Vpn.cpp",
Remi NGUYEN VANe724f632021-01-08 01:19:44 +000029 "jni/onload.cpp",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090030 ],
31 shared_libs: [
32 "libbase",
33 "liblog",
34 "libnativehelper",
35 // TODO: remove dependency on ifc_[add/del]_address by having Java code to add/delete
36 // addresses, and remove dependency on libnetutils.
37 "libnetutils",
38 ],
Pete Bentleyb6031f32021-01-07 13:51:18 +000039 apex_available: [
Remi NGUYEN VANe724f632021-01-08 01:19:44 +000040 "com.android.tethering",
Pete Bentleyb6031f32021-01-07 13:51:18 +000041 ],
42}
43
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090044java_library {
45 name: "service-connectivity",
46 srcs: [
47 ":connectivity-service-srcs",
48 ],
49 installable: true,
50 jarjar_rules: "jarjar-rules.txt",
51 libs: [
52 "android.net.ipsec.ike",
53 "services.core",
54 "services.net",
55 "unsupportedappusage",
56 ],
57 static_libs: [
58 "net-utils-device-common",
59 "net-utils-framework-common",
lucaslinaf269222021-01-18 11:58:24 +080060 "netd-client",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090061 ],
62 apex_available: [
63 "//apex_available:platform",
Remi NGUYEN VANe724f632021-01-08 01:19:44 +000064 "com.android.tethering",
Remi NGUYEN VANa985e582020-12-21 18:40:08 +090065 ],
66}