blob: 013223517a1f2576b5189a845d3e1a0071b55237 [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 {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21filegroup {
22 name: "service-thread-sources",
23 srcs: ["java/**/*.java"],
24}
25
26java_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 Dong1cec48f2023-08-21 18:48:14 +080035 libs: [
Kangping Dongb1c75db2023-08-30 19:15:04 +080036 "framework-connectivity-pre-jarjar",
Kangping Dong1cec48f2023-08-21 18:48:14 +080037 "framework-connectivity-t-pre-jarjar",
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080038 "framework-location.stubs.module_lib",
Zhanglong Xia69c370a2023-12-20 21:12:26 +080039 "framework-wifi",
Kangping Dong192e4b02023-10-25 20:34:21 +080040 "service-connectivity-pre-jarjar",
Zhanglong Xia125a43c2023-11-27 11:30:26 +080041 "ServiceConnectivityResources",
Kangping Dong1cec48f2023-08-21 18:48:14 +080042 ],
43 static_libs: [
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080044 "modules-utils-shell-command-handler",
Kangping Dong1cec48f2023-08-21 18:48:14 +080045 "net-utils-device-common",
Kangping Dongb1c75db2023-08-30 19:15:04 +080046 "net-utils-device-common-netlink",
47 "ot-daemon-aidl-java",
48 ],
49 apex_available: ["com.android.tethering"],
50}
51
52cc_library_shared {
53 name: "libservice-thread-jni",
54 min_sdk_version: "30",
55 cflags: [
56 "-Wall",
57 "-Werror",
58 "-Wno-unused-parameter",
59 "-Wthread-safety",
60 ],
61 srcs: [
62 "jni/**/*.cpp",
63 ],
64 shared_libs: [
65 "libbase",
66 "libcutils",
67 "liblog",
68 "libnativehelper",
Kangping Dong1cec48f2023-08-21 18:48:14 +080069 ],
Kangping Donge7fef892023-08-11 15:30:09 +080070 apex_available: ["com.android.tethering"],
71}