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