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 | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 24 | // TODO: build against the NDK (sdk_version: "30" for example) |
| 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 | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 36 | shared_libs: [ |
| 37 | "libbase", |
| 38 | "liblog", |
| 39 | "libnativehelper", |
| 40 | // TODO: remove dependency on ifc_[add/del]_address by having Java code to add/delete |
| 41 | // addresses, and remove dependency on libnetutils. |
| 42 | "libnetutils", |
| 43 | ], |
Pete Bentley | b145611 | 2021-01-07 13:51:18 +0000 | [diff] [blame] | 44 | apex_available: [ |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 45 | "com.android.tethering", |
Pete Bentley | b145611 | 2021-01-07 13:51:18 +0000 | [diff] [blame] | 46 | ], |
| 47 | } |
| 48 | |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 49 | java_library { |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 50 | name: "service-connectivity-pre-jarjar", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 51 | srcs: [ |
Remi NGUYEN VAN | cdb45f8 | 2021-05-13 12:53:15 +0000 | [diff] [blame] | 52 | "src/**/*.java", |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 53 | ":framework-connectivity-shared-srcs", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 54 | ], |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 55 | libs: [ |
| 56 | "android.net.ipsec.ike", |
| 57 | "services.core", |
| 58 | "services.net", |
| 59 | "unsupportedappusage", |
Remi NGUYEN VAN | 907ebd4 | 2021-03-08 22:05:03 +0900 | [diff] [blame] | 60 | "ServiceConnectivityResources", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 61 | ], |
| 62 | static_libs: [ |
Remi NGUYEN VAN | 96a931b | 2021-03-02 03:28:50 +0000 | [diff] [blame] | 63 | "modules-utils-os", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 64 | "net-utils-device-common", |
| 65 | "net-utils-framework-common", |
lucaslin | ef33753 | 2021-01-18 11:58:24 +0800 | [diff] [blame] | 66 | "netd-client", |
lifr | c0d25c1 | 2021-03-09 17:24:46 +0800 | [diff] [blame] | 67 | "PlatformProperties", |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 68 | "service-connectivity-protos", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 69 | ], |
| 70 | apex_available: [ |
| 71 | "//apex_available:platform", |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 72 | "com.android.tethering", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 73 | ], |
| 74 | } |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 75 | |
| 76 | java_library { |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 77 | name: "service-connectivity-protos", |
| 78 | proto: { |
| 79 | type: "nano", |
| 80 | }, |
| 81 | srcs: [ |
| 82 | ":system-messages-proto-src", |
| 83 | ], |
| 84 | libs: ["libprotobuf-java-nano"], |
| 85 | apex_available: [ |
| 86 | "//apex_available:platform", |
| 87 | "com.android.tethering", |
| 88 | ], |
| 89 | } |
| 90 | |
| 91 | java_library { |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 92 | name: "service-connectivity", |
| 93 | installable: true, |
lifr | c0d25c1 | 2021-03-09 17:24:46 +0800 | [diff] [blame] | 94 | static_libs: [ |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 95 | "service-connectivity-pre-jarjar", |
| 96 | ], |
| 97 | jarjar_rules: "jarjar-rules.txt", |
| 98 | apex_available: [ |
| 99 | "//apex_available:platform", |
| 100 | "com.android.tethering", |
| 101 | ], |
| 102 | } |