blob: 52bc2c0812f5c8d20cdcd1aa50fd23980eb2361f [file] [log] [blame]
paulhu802ab972021-12-14 01:30:22 +00001//
2// Copyright (C) 2021 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 // See: http://go/android-license-faq
19 default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
Remi NGUYEN VAN34760302022-03-08 19:49:49 +090022// Include build rules from Sources.bp
Patrick Rohr156d9332022-03-31 12:09:02 +020023// sc-mainline-prod only: do not include Sources.bp
24// build = ["Sources.bp"]
Remi NGUYEN VAN34760302022-03-08 19:49:49 +090025
Remi NGUYEN VAN2f9d6882022-03-30 18:51:41 +090026filegroup {
27 name: "service-connectivity-tiramisu-sources",
28 srcs: [
Patrick Rohr156d9332022-03-31 12:09:02 +020029 // sc-mainline-prod only: Building T sources is disabled on this branch.
30 // "src/**/*.java",
31 "src/com/android/server/ConnectivityServiceInitializer.java",
32 // filegroup contains empty stubs on sc-mainline-prod.
33 ":services.connectivity-tiramisu-updatable-sources",
Remi NGUYEN VAN2f9d6882022-03-30 18:51:41 +090034 ],
35 visibility: ["//visibility:private"],
36}
37// The above filegroup can be used to specify different sources depending
38// on the branch, while minimizing merge conflicts in the rest of the
39// build rules.
40
paulhu537f7202022-02-08 21:25:28 +080041// This builds T+ services depending on framework-connectivity-t
paulhu802ab972021-12-14 01:30:22 +000042// hidden symbols separately from the S+ services, to ensure that S+
43// services cannot accidentally depend on T+ hidden symbols from
paulhu537f7202022-02-08 21:25:28 +080044// framework-connectivity-t.
paulhu802ab972021-12-14 01:30:22 +000045java_library {
46 name: "service-connectivity-tiramisu-pre-jarjar",
47 sdk_version: "system_server_current",
48 // TODO(b/210962470): Bump this to at least S, and then T.
49 min_sdk_version: "30",
50 srcs: [
Remi NGUYEN VAN2f9d6882022-03-30 18:51:41 +090051 ":service-connectivity-tiramisu-sources",
paulhu802ab972021-12-14 01:30:22 +000052 ],
53 libs: [
54 "framework-annotations-lib",
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090055 "framework-connectivity-pre-jarjar",
paulhu537f7202022-02-08 21:25:28 +080056 "framework-connectivity-t-pre-jarjar",
Remi NGUYEN VAN2ba9dbe2022-02-01 23:07:33 +090057 "framework-tethering.stubs.module_lib",
paulhu802ab972021-12-14 01:30:22 +000058 "service-connectivity-pre-jarjar",
Remi NGUYEN VANb6cde3d2022-03-10 04:32:15 +000059 "service-nearby-pre-jarjar",
Xiao Ma0a171c02022-01-23 16:14:51 +000060 "ServiceConnectivityResources",
paulhu802ab972021-12-14 01:30:22 +000061 "unsupportedappusage",
62 ],
63 static_libs: [
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090064 // Do not add static_libs here if they are already included in framework-connectivity
65 // or in service-connectivity. They are not necessary (included via
66 // service-connectivity-pre-jarjar), and in the case of code that is already in
67 // framework-connectivity, the classes would be included in the apex twice.
paulhu802ab972021-12-14 01:30:22 +000068 "modules-utils-statemachine",
paulhu802ab972021-12-14 01:30:22 +000069 ],
70 apex_available: [
71 "com.android.tethering",
72 ],
73 visibility: [
Aaron Huang720ad7c2022-01-26 00:43:10 +080074 "//frameworks/base/tests/vcn",
paulhu802ab972021-12-14 01:30:22 +000075 "//packages/modules/Connectivity/service",
76 "//packages/modules/Connectivity/tests:__subpackages__",
Aaron Huang720ad7c2022-01-26 00:43:10 +080077 "//packages/modules/IPsec/tests/iketests",
paulhu802ab972021-12-14 01:30:22 +000078 ],
79}