blob: ed1716fad8c007f079e87cdc5b0a9ddf60a9c395 [file] [log] [blame]
Remi NGUYEN VANe9fda582020-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 VAN5b2ea5d2021-01-08 01:19:44 +000017cc_library_shared {
18 name: "libservice-connectivity",
Remi NGUYEN VANe9fda582020-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",
Remi NGUYEN VAN5b2ea5d2021-01-08 01:19:44 +000028 "jni/onload.cpp",
Remi NGUYEN VANe9fda582020-12-21 18:40:08 +090029 ],
30 shared_libs: [
31 "libbase",
32 "liblog",
33 "libnativehelper",
34 // TODO: remove dependency on ifc_[add/del]_address by having Java code to add/delete
35 // addresses, and remove dependency on libnetutils.
36 "libnetutils",
37 ],
Pete Bentley34bd9682021-01-07 13:51:18 +000038 apex_available: [
Remi NGUYEN VAN5b2ea5d2021-01-08 01:19:44 +000039 "com.android.tethering",
Pete Bentley34bd9682021-01-07 13:51:18 +000040 ],
41}
42
Remi NGUYEN VANe9fda582020-12-21 18:40:08 +090043java_library {
44 name: "service-connectivity",
45 srcs: [
46 ":connectivity-service-srcs",
47 ],
48 installable: true,
49 jarjar_rules: "jarjar-rules.txt",
50 libs: [
51 "android.net.ipsec.ike",
52 "services.core",
53 "services.net",
54 "unsupportedappusage",
55 ],
56 static_libs: [
57 "net-utils-device-common",
58 "net-utils-framework-common",
lucaslin62a872a2021-01-18 11:58:24 +080059 "netd-client",
Remi NGUYEN VANe9fda582020-12-21 18:40:08 +090060 ],
61 apex_available: [
62 "//apex_available:platform",
Remi NGUYEN VAN5b2ea5d2021-01-08 01:19:44 +000063 "com.android.tethering",
Remi NGUYEN VANe9fda582020-12-21 18:40:08 +090064 ],
65}