blob: 9aa92f9c5abed80ee9d2ce9092c5205d580baa1b [file] [log] [blame]
Nan Zhang7233c322018-02-27 11:23:02 -08001// Copyright 2018 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15
Bob Badour3df8c8b2021-02-12 15:26:39 -080016package {
17 default_applicable_licenses: ["frameworks_opt_telephony_license"],
18}
19
20// Added automatically by a large-scale-change that took the approach of
21// 'apply every license found to every target'. While this makes sure we respect
22// every license restriction, it may not be entirely correct.
23//
24// e.g. GPL in an MIT project might only apply to the contrib/ directory.
25//
26// Please consider splitting the single license below into multiple licenses,
27// taking care not to lose any license_kind information, and overriding the
28// default license using the 'licenses: [...]' property on targets as needed.
29//
30// For unused files, consider creating a 'fileGroup' with "//visibility:private"
31// to attach the license to, and including a comment whether the files may be
32// used in the current project.
33// See: http://go/android-license-faq
34license {
35 name: "frameworks_opt_telephony_license",
36 visibility: [":__subpackages__"],
37 license_kinds: [
38 "SPDX-license-identifier-Apache-2.0",
39 "SPDX-license-identifier-BSD",
40 "legacy_not_a_contribution",
41 ],
42 // large-scale-change unable to identify any license_text files
43}
44
Nan Zhang7233c322018-02-27 11:23:02 -080045filegroup {
46 name: "opt-telephony-srcs",
47 srcs: [
48 "src/java/android/telephony/**/*.java",
49 ],
Jiyong Parkd0438032019-08-19 13:25:23 +090050 path: "src/java",
Nan Zhang7233c322018-02-27 11:23:02 -080051}
52
53filegroup {
54 name: "opt-telephony-htmls",
55 srcs: [
56 "src/java/android/telephony/**/*.html",
57 ],
58}
Jason Monk3077f6a2018-08-07 13:21:59 -040059
Andrei Oneac12ea742019-03-13 14:25:02 +000060filegroup {
61 name: "opt-telephony-common-srcs",
62 srcs: [
63 "src/java/**/*.java",
64 ],
Jiyong Parkd0438032019-08-19 13:25:23 +090065 path: "src/java",
Andrei Oneac12ea742019-03-13 14:25:02 +000066}
Meng Wang2d958cd2019-11-14 11:22:14 -080067
Chen Xu42344f82019-09-24 22:44:50 -070068filegroup {
69 name: "jarjar-rules-shared",
70 srcs: ["jarjar-rules-shared.txt"],
71}
Andrei Oneac12ea742019-03-13 14:25:02 +000072
Muhammad Qureshiecc96af2020-01-23 13:49:47 -080073genrule {
74 name: "statslog-telephony-java-gen",
75 tools: ["stats-log-api-gen"],
76 cmd: "$(location stats-log-api-gen) --java $(out) --module telephony"
77 + " --javaPackage com.android.internal.telephony --javaClass TelephonyStatsLog",
78 out: ["com/android/internal/telephony/TelephonyStatsLog.java"],
79}
80
Jason Monk3077f6a2018-08-07 13:21:59 -040081java_library {
82 name: "telephony-common",
83 installable: true,
84
85 aidl: {
86 local_include_dirs: ["src/java"],
87 },
88 srcs: [
Andrei Oneac12ea742019-03-13 14:25:02 +000089 ":opt-telephony-common-srcs",
Malcolm Chen6266ea72020-01-14 19:17:16 -080090 ":framework-telephony-common-shared-srcs",
Lorenzo Colitti5d9e6432020-01-14 14:52:00 +090091 ":net-utils-telephony-common-srcs",
Muhammad Qureshiecc96af2020-01-23 13:49:47 -080092 ":statslog-telephony-java-gen",
Jordan Liu50536b62020-05-28 16:13:13 -070093 ":statslog-cellbroadcast-java-gen",
Jason Monk3077f6a2018-08-07 13:21:59 -040094 "src/java/**/I*.aidl",
95 "src/java/**/*.logtags",
96 ],
97
Chen Xu42344f82019-09-24 22:44:50 -070098 jarjar_rules: ":jarjar-rules-shared",
Steven Morelanda2b60be2019-03-13 16:25:42 -070099
Jason Monk3077f6a2018-08-07 13:21:59 -0400100 libs: [
Jason Monk3077f6a2018-08-07 13:21:59 -0400101 "android.hardware.radio-V1.0-java",
102 "android.hardware.radio-V1.1-java",
103 "android.hardware.radio-V1.2-java",
sqian22c50482018-09-07 21:00:27 -0700104 "android.hardware.radio-V1.3-java",
Malcolm Chenbb951442018-11-25 15:22:53 -0800105 "android.hardware.radio-V1.4-java",
Sarah Chin22e7c082019-11-05 13:30:57 -0800106 "android.hardware.radio-V1.5-java",
Daniel Brightb911fc42020-09-08 11:05:30 -0700107 "android.hardware.radio-V1.6-java",
Steven Moreland2253fbc2019-01-24 12:02:37 -0800108 "voip-common",
109 "ims-common",
Artur Satayevf9351e12019-12-10 12:59:53 +0000110 "unsupportedappusage",
Steven Moreland2253fbc2019-01-24 12:02:37 -0800111 ],
112 static_libs: [
Steven Morelanda2b60be2019-03-13 16:25:42 -0700113 "android.hardware.radio.config-V1.0-java-shallow",
114 "android.hardware.radio.config-V1.1-java-shallow",
115 "android.hardware.radio.config-V1.2-java-shallow",
Daniel Brightd803d032020-11-12 20:23:47 -0800116 "android.hardware.radio.config-V1.3-java-shallow",
Steven Morelanda2b60be2019-03-13 16:25:42 -0700117 "android.hardware.radio.deprecated-V1.0-java-shallow",
Steven Moreland2253fbc2019-01-24 12:02:37 -0800118 "ecc-protos-lite",
Meng Wang27d027a2019-12-13 17:18:19 -0800119 "libphonenumber-nogeocoder",
Meng Wang2d958cd2019-11-14 11:22:14 -0800120 "PlatformProperties",
Aaron Huang0e599902019-12-16 21:13:05 +0800121 "net-utils-framework-common",
Meng Wang27d027a2019-12-13 17:18:19 -0800122 "telephony-protos",
Chalard Jean4d04ca82021-04-26 20:55:26 +0900123 "modules-utils-build_system",
Jason Monk3077f6a2018-08-07 13:21:59 -0400124 ],
125
126 product_variables: {
127 pdk: {
128 // enable this build only when platform library is available
129 enabled: false,
130 },
131 },
132}