Remi NGUYEN VAN | 59262cb | 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 | 6c7ed9d | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
Baligh Uddin | 3684713 | 2021-05-23 16:38:40 +0000 | [diff] [blame] | 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
Bob Badour | 6c7ed9d | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 20 | } |
| 21 | |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 22 | cc_library_shared { |
| 23 | name: "libservice-connectivity", |
Remi NGUYEN VAN | da43ef0 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 24 | min_sdk_version: "30", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 25 | cflags: [ |
| 26 | "-Wall", |
| 27 | "-Werror", |
| 28 | "-Wno-unused-parameter", |
| 29 | "-Wthread-safety", |
| 30 | ], |
| 31 | srcs: [ |
| 32 | "jni/com_android_server_TestNetworkService.cpp", |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 33 | "jni/onload.cpp", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 34 | ], |
Remi NGUYEN VAN | 4be92df | 2021-03-24 01:49:39 +0000 | [diff] [blame] | 35 | stl: "libc++_static", |
Remi NGUYEN VAN | da43ef0 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 36 | header_libs: [ |
| 37 | "libbase_headers", |
| 38 | ], |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 39 | shared_libs: [ |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 40 | "liblog", |
| 41 | "libnativehelper", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 42 | ], |
Pete Bentley | b145611 | 2021-01-07 13:51:18 +0000 | [diff] [blame] | 43 | apex_available: [ |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 44 | "com.android.tethering", |
Pete Bentley | b145611 | 2021-01-07 13:51:18 +0000 | [diff] [blame] | 45 | ], |
| 46 | } |
| 47 | |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 48 | java_library { |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 49 | name: "service-connectivity-pre-jarjar", |
Remi NGUYEN VAN | 4ee6c50 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 50 | sdk_version: "system_server_current", |
Remi NGUYEN VAN | da43ef0 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 51 | min_sdk_version: "30", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 52 | srcs: [ |
Remi NGUYEN VAN | cdb45f8 | 2021-05-13 12:53:15 +0000 | [diff] [blame] | 53 | "src/**/*.java", |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 54 | ":framework-connectivity-shared-srcs", |
Remi NGUYEN VAN | 4ee6c50 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 55 | ":services-connectivity-shared-srcs", |
| 56 | // TODO: move to net-utils-device-common, enable shrink optimization to avoid extra classes |
| 57 | ":net-module-utils-srcs", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 58 | ], |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 59 | libs: [ |
Remi NGUYEN VAN | 4ee6c50 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 60 | "android_system_server_stubs_current", |
| 61 | "framework-annotations-lib", |
| 62 | "framework-connectivity.impl", |
| 63 | "framework-tethering.stubs.module_lib", |
| 64 | "framework-wifi.stubs.module_lib", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 65 | "unsupportedappusage", |
Remi NGUYEN VAN | 907ebd4 | 2021-03-08 22:05:03 +0900 | [diff] [blame] | 66 | "ServiceConnectivityResources", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 67 | ], |
| 68 | static_libs: [ |
Remi NGUYEN VAN | 4ee6c50 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 69 | "dnsresolver_aidl_interface-V7-java", |
Remi NGUYEN VAN | 96a931b | 2021-03-02 03:28:50 +0000 | [diff] [blame] | 70 | "modules-utils-os", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 71 | "net-utils-device-common", |
| 72 | "net-utils-framework-common", |
lucaslin | ef33753 | 2021-01-18 11:58:24 +0800 | [diff] [blame] | 73 | "netd-client", |
Remi NGUYEN VAN | 4ee6c50 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 74 | "netlink-client", |
| 75 | "networkstack-client", |
lifr | c0d25c1 | 2021-03-09 17:24:46 +0800 | [diff] [blame] | 76 | "PlatformProperties", |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 77 | "service-connectivity-protos", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 78 | ], |
| 79 | apex_available: [ |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 80 | "com.android.tethering", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 81 | ], |
| 82 | } |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 83 | |
| 84 | java_library { |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 85 | name: "service-connectivity-protos", |
Remi NGUYEN VAN | 4ee6c50 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 86 | sdk_version: "system_current", |
Remi NGUYEN VAN | da43ef0 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 87 | min_sdk_version: "30", |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 88 | proto: { |
| 89 | type: "nano", |
| 90 | }, |
| 91 | srcs: [ |
| 92 | ":system-messages-proto-src", |
| 93 | ], |
| 94 | libs: ["libprotobuf-java-nano"], |
| 95 | apex_available: [ |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 96 | "com.android.tethering", |
| 97 | ], |
| 98 | } |
| 99 | |
| 100 | java_library { |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 101 | name: "service-connectivity", |
Remi NGUYEN VAN | 4ee6c50 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 102 | sdk_version: "system_server_current", |
Remi NGUYEN VAN | da43ef0 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 103 | min_sdk_version: "30", |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 104 | installable: true, |
lifr | c0d25c1 | 2021-03-09 17:24:46 +0800 | [diff] [blame] | 105 | static_libs: [ |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 106 | "service-connectivity-pre-jarjar", |
| 107 | ], |
| 108 | jarjar_rules: "jarjar-rules.txt", |
| 109 | apex_available: [ |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 110 | "com.android.tethering", |
| 111 | ], |
| 112 | } |
Remi NGUYEN VAN | 8ea5ee6 | 2021-06-28 18:48:43 +0900 | [diff] [blame] | 113 | |
| 114 | filegroup { |
| 115 | name: "connectivity-jarjar-rules", |
| 116 | srcs: ["jarjar-rules.txt"], |
| 117 | visibility: ["//packages/modules/Connectivity:__subpackages__"], |
| 118 | } |