blob: 1f4e601ce60c69d8d50a8867ac243aa1a48e058f [file] [log] [blame]
Kangping Donge7fef892023-08-11 15:30:09 +08001//
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
17package {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000018 default_team: "trendy_team_fwk_thread_network",
Kangping Donge7fef892023-08-11 15:30:09 +080019 default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22filegroup {
23 name: "service-thread-sources",
24 srcs: ["java/**/*.java"],
25}
26
27java_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 Dong1cec48f2023-08-21 18:48:14 +080036 libs: [
Kangping Dongb1c75db2023-08-30 19:15:04 +080037 "framework-connectivity-pre-jarjar",
Kangping Dong1cec48f2023-08-21 18:48:14 +080038 "framework-connectivity-t-pre-jarjar",
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080039 "framework-location.stubs.module_lib",
Jihoon Kang8401b6a2024-08-30 00:29:58 +000040 "framework-wifi.stubs.module_lib",
Kangping Dong192e4b02023-10-25 20:34:21 +080041 "service-connectivity-pre-jarjar",
Zhanglong Xia125a43c2023-11-27 11:30:26 +080042 "ServiceConnectivityResources",
Kangping Dong1cec48f2023-08-21 18:48:14 +080043 ],
44 static_libs: [
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080045 "modules-utils-shell-command-handler",
Kangping Dong1cec48f2023-08-21 18:48:14 +080046 "net-utils-device-common",
Kangping Dongb1c75db2023-08-30 19:15:04 +080047 "net-utils-device-common-netlink",
Yang Sun3aa62e62024-03-12 21:23:19 +080048 // The required dependency net-utils-device-common-struct-base is in the classpath via
49 // framework-connectivity
50 "net-utils-device-common-struct",
Kangping Dongb1c75db2023-08-30 19:15:04 +080051 "ot-daemon-aidl-java",
52 ],
53 apex_available: ["com.android.tethering"],
54}
55
56cc_library_shared {
57 name: "libservice-thread-jni",
58 min_sdk_version: "30",
59 cflags: [
60 "-Wall",
61 "-Werror",
62 "-Wno-unused-parameter",
63 "-Wthread-safety",
64 ],
65 srcs: [
66 "jni/**/*.cpp",
67 ],
68 shared_libs: [
69 "libbase",
70 "libcutils",
71 "liblog",
72 "libnativehelper",
Kangping Dong1cec48f2023-08-21 18:48:14 +080073 ],
Kangping Donge7fef892023-08-11 15:30:09 +080074 apex_available: ["com.android.tethering"],
75}