| Kangping Dong | e7fef89 | 2023-08-11 15:30:09 +0800 | [diff] [blame] | 1 | // | 
 | 2 | // Copyright (C) 2023 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 |  | 
 | 17 | package { | 
| Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 18 |     default_team: "trendy_team_fwk_thread_network", | 
| Kangping Dong | e7fef89 | 2023-08-11 15:30:09 +0800 | [diff] [blame] | 19 |     default_applicable_licenses: ["Android-Apache-2.0"], | 
 | 20 | } | 
 | 21 |  | 
 | 22 | filegroup { | 
 | 23 |     name: "service-thread-sources", | 
 | 24 |     srcs: ["java/**/*.java"], | 
 | 25 | } | 
 | 26 |  | 
 | 27 | java_library { | 
 | 28 |     name: "service-thread-pre-jarjar", | 
 | 29 |     defaults: ["framework-system-server-module-defaults"], | 
 | 30 |     sdk_version: "system_server_current", | 
 | 31 |     // This is included in service-connectivity which is 30+ | 
 | 32 |     // TODO (b/293613362): allow APEXes to have service jars with higher min_sdk than the APEX | 
 | 33 |     // (service-connectivity is only used on 31+) and use 31 here | 
 | 34 |     min_sdk_version: "30", | 
 | 35 |     srcs: [":service-thread-sources"], | 
| Kangping Dong | 1cec48f | 2023-08-21 18:48:14 +0800 | [diff] [blame] | 36 |     libs: [ | 
| Kangping Dong | b1c75db | 2023-08-30 19:15:04 +0800 | [diff] [blame] | 37 |         "framework-connectivity-pre-jarjar", | 
| Kangping Dong | 1cec48f | 2023-08-21 18:48:14 +0800 | [diff] [blame] | 38 |         "framework-connectivity-t-pre-jarjar", | 
| Zhanglong Xia | d385e7e | 2023-11-17 12:03:28 +0800 | [diff] [blame] | 39 |         "framework-location.stubs.module_lib", | 
| Zhanglong Xia | 69c370a | 2023-12-20 21:12:26 +0800 | [diff] [blame] | 40 |         "framework-wifi", | 
| Kangping Dong | 192e4b0 | 2023-10-25 20:34:21 +0800 | [diff] [blame] | 41 |         "service-connectivity-pre-jarjar", | 
| Zhanglong Xia | 125a43c | 2023-11-27 11:30:26 +0800 | [diff] [blame] | 42 |         "ServiceConnectivityResources", | 
| Kangping Dong | 1cec48f | 2023-08-21 18:48:14 +0800 | [diff] [blame] | 43 |     ], | 
 | 44 |     static_libs: [ | 
| Zhanglong Xia | d385e7e | 2023-11-17 12:03:28 +0800 | [diff] [blame] | 45 |         "modules-utils-shell-command-handler", | 
| Kangping Dong | 1cec48f | 2023-08-21 18:48:14 +0800 | [diff] [blame] | 46 |         "net-utils-device-common", | 
| Kangping Dong | b1c75db | 2023-08-30 19:15:04 +0800 | [diff] [blame] | 47 |         "net-utils-device-common-netlink", | 
 | 48 |         "ot-daemon-aidl-java", | 
 | 49 |     ], | 
 | 50 |     apex_available: ["com.android.tethering"], | 
 | 51 | } | 
 | 52 |  | 
 | 53 | cc_library_shared { | 
 | 54 |     name: "libservice-thread-jni", | 
 | 55 |     min_sdk_version: "30", | 
 | 56 |     cflags: [ | 
 | 57 |         "-Wall", | 
 | 58 |         "-Werror", | 
 | 59 |         "-Wno-unused-parameter", | 
 | 60 |         "-Wthread-safety", | 
 | 61 |     ], | 
 | 62 |     srcs: [ | 
 | 63 |         "jni/**/*.cpp", | 
 | 64 |     ], | 
 | 65 |     shared_libs: [ | 
 | 66 |         "libbase", | 
 | 67 |         "libcutils", | 
 | 68 |         "liblog", | 
 | 69 |         "libnativehelper", | 
| Kangping Dong | 1cec48f | 2023-08-21 18:48:14 +0800 | [diff] [blame] | 70 |     ], | 
| Kangping Dong | e7fef89 | 2023-08-11 15:30:09 +0800 | [diff] [blame] | 71 |     apex_available: ["com.android.tethering"], | 
 | 72 | } |