Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 1 | // |
| 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 Badour | 56ea88a | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 17 | package { |
| 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 VAN | e724f63 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 26 | cc_library_shared { |
| 27 | name: "libservice-connectivity", |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 28 | // 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 VAN | e724f63 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 37 | "jni/onload.cpp", |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 38 | ], |
| 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 Bentley | b6031f3 | 2021-01-07 13:51:18 +0000 | [diff] [blame] | 47 | apex_available: [ |
Remi NGUYEN VAN | e724f63 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 48 | "com.android.tethering", |
Pete Bentley | b6031f3 | 2021-01-07 13:51:18 +0000 | [diff] [blame] | 49 | ], |
| 50 | } |
| 51 | |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 52 | java_library { |
Aaron Huang | 082f1d8 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 53 | name: "service-connectivity-pre-jarjar", |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 54 | srcs: [ |
Aaron Huang | 082f1d8 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 55 | ":framework-connectivity-shared-srcs", |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 56 | ":connectivity-service-srcs", |
| 57 | ], |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 58 | libs: [ |
| 59 | "android.net.ipsec.ike", |
| 60 | "services.core", |
| 61 | "services.net", |
| 62 | "unsupportedappusage", |
Remi NGUYEN VAN | 21c854a | 2021-03-08 22:05:03 +0900 | [diff] [blame] | 63 | "ServiceConnectivityResources", |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 64 | ], |
| 65 | static_libs: [ |
Remi NGUYEN VAN | 4c581d8 | 2021-03-02 03:28:50 +0000 | [diff] [blame] | 66 | "modules-utils-os", |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 67 | "net-utils-device-common", |
| 68 | "net-utils-framework-common", |
lucaslin | af26922 | 2021-01-18 11:58:24 +0800 | [diff] [blame] | 69 | "netd-client", |
lifr | b885e61 | 2021-03-09 17:24:46 +0800 | [diff] [blame] | 70 | "PlatformProperties", |
Remi NGUYEN VAN | 4962536 | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 71 | "service-connectivity-protos", |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 72 | ], |
| 73 | apex_available: [ |
| 74 | "//apex_available:platform", |
Remi NGUYEN VAN | e724f63 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 75 | "com.android.tethering", |
Remi NGUYEN VAN | a985e58 | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 76 | ], |
| 77 | } |
Aaron Huang | 082f1d8 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 78 | |
| 79 | java_library { |
Remi NGUYEN VAN | 4962536 | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 80 | name: "service-connectivity-protos", |
| 81 | proto: { |
| 82 | type: "nano", |
| 83 | }, |
| 84 | srcs: [ |
| 85 | ":system-messages-proto-src", |
| 86 | ], |
| 87 | libs: ["libprotobuf-java-nano"], |
| 88 | apex_available: [ |
| 89 | "//apex_available:platform", |
| 90 | "com.android.tethering", |
| 91 | ], |
| 92 | } |
| 93 | |
| 94 | java_library { |
Aaron Huang | 082f1d8 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 95 | name: "service-connectivity", |
| 96 | installable: true, |
lifr | b885e61 | 2021-03-09 17:24:46 +0800 | [diff] [blame] | 97 | static_libs: [ |
Aaron Huang | 082f1d8 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 98 | "service-connectivity-pre-jarjar", |
| 99 | ], |
| 100 | jarjar_rules: "jarjar-rules.txt", |
| 101 | apex_available: [ |
| 102 | "//apex_available:platform", |
| 103 | "com.android.tethering", |
| 104 | ], |
| 105 | } |