Nan Zhang | 7233c32 | 2018-02-27 11:23:02 -0800 | [diff] [blame] | 1 | // 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 Badour | 3df8c8b | 2021-02-12 15:26:39 -0800 | [diff] [blame] | 16 | package { |
| 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 |
| 34 | license { |
| 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 Zhang | 7233c32 | 2018-02-27 11:23:02 -0800 | [diff] [blame] | 45 | filegroup { |
| 46 | name: "opt-telephony-srcs", |
| 47 | srcs: [ |
| 48 | "src/java/android/telephony/**/*.java", |
| 49 | ], |
Jiyong Park | d043803 | 2019-08-19 13:25:23 +0900 | [diff] [blame] | 50 | path: "src/java", |
Nan Zhang | 7233c32 | 2018-02-27 11:23:02 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | filegroup { |
| 54 | name: "opt-telephony-htmls", |
| 55 | srcs: [ |
| 56 | "src/java/android/telephony/**/*.html", |
| 57 | ], |
| 58 | } |
Jason Monk | 3077f6a | 2018-08-07 13:21:59 -0400 | [diff] [blame] | 59 | |
Andrei Onea | c12ea74 | 2019-03-13 14:25:02 +0000 | [diff] [blame] | 60 | filegroup { |
| 61 | name: "opt-telephony-common-srcs", |
| 62 | srcs: [ |
| 63 | "src/java/**/*.java", |
| 64 | ], |
Jiyong Park | d043803 | 2019-08-19 13:25:23 +0900 | [diff] [blame] | 65 | path: "src/java", |
Andrei Onea | c12ea74 | 2019-03-13 14:25:02 +0000 | [diff] [blame] | 66 | } |
Meng Wang | 2d958cd | 2019-11-14 11:22:14 -0800 | [diff] [blame] | 67 | |
Chen Xu | 42344f8 | 2019-09-24 22:44:50 -0700 | [diff] [blame] | 68 | filegroup { |
| 69 | name: "jarjar-rules-shared", |
| 70 | srcs: ["jarjar-rules-shared.txt"], |
| 71 | } |
Andrei Onea | c12ea74 | 2019-03-13 14:25:02 +0000 | [diff] [blame] | 72 | |
Muhammad Qureshi | ecc96af | 2020-01-23 13:49:47 -0800 | [diff] [blame] | 73 | genrule { |
| 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 Monk | 3077f6a | 2018-08-07 13:21:59 -0400 | [diff] [blame] | 81 | java_library { |
| 82 | name: "telephony-common", |
| 83 | installable: true, |
| 84 | |
| 85 | aidl: { |
| 86 | local_include_dirs: ["src/java"], |
| 87 | }, |
| 88 | srcs: [ |
Andrei Onea | c12ea74 | 2019-03-13 14:25:02 +0000 | [diff] [blame] | 89 | ":opt-telephony-common-srcs", |
Malcolm Chen | 6266ea7 | 2020-01-14 19:17:16 -0800 | [diff] [blame] | 90 | ":framework-telephony-common-shared-srcs", |
Lorenzo Colitti | 5d9e643 | 2020-01-14 14:52:00 +0900 | [diff] [blame] | 91 | ":net-utils-telephony-common-srcs", |
Muhammad Qureshi | ecc96af | 2020-01-23 13:49:47 -0800 | [diff] [blame] | 92 | ":statslog-telephony-java-gen", |
Jordan Liu | 50536b6 | 2020-05-28 16:13:13 -0700 | [diff] [blame] | 93 | ":statslog-cellbroadcast-java-gen", |
Jason Monk | 3077f6a | 2018-08-07 13:21:59 -0400 | [diff] [blame] | 94 | "src/java/**/I*.aidl", |
| 95 | "src/java/**/*.logtags", |
| 96 | ], |
| 97 | |
Chen Xu | 42344f8 | 2019-09-24 22:44:50 -0700 | [diff] [blame] | 98 | jarjar_rules: ":jarjar-rules-shared", |
Steven Moreland | a2b60be | 2019-03-13 16:25:42 -0700 | [diff] [blame] | 99 | |
Jason Monk | 3077f6a | 2018-08-07 13:21:59 -0400 | [diff] [blame] | 100 | libs: [ |
Jason Monk | 3077f6a | 2018-08-07 13:21:59 -0400 | [diff] [blame] | 101 | "android.hardware.radio-V1.0-java", |
| 102 | "android.hardware.radio-V1.1-java", |
| 103 | "android.hardware.radio-V1.2-java", |
sqian | 22c5048 | 2018-09-07 21:00:27 -0700 | [diff] [blame] | 104 | "android.hardware.radio-V1.3-java", |
Malcolm Chen | bb95144 | 2018-11-25 15:22:53 -0800 | [diff] [blame] | 105 | "android.hardware.radio-V1.4-java", |
Sarah Chin | 22e7c08 | 2019-11-05 13:30:57 -0800 | [diff] [blame] | 106 | "android.hardware.radio-V1.5-java", |
Daniel Bright | b911fc4 | 2020-09-08 11:05:30 -0700 | [diff] [blame] | 107 | "android.hardware.radio-V1.6-java", |
Steven Moreland | 2253fbc | 2019-01-24 12:02:37 -0800 | [diff] [blame] | 108 | "voip-common", |
| 109 | "ims-common", |
Artur Satayev | f9351e1 | 2019-12-10 12:59:53 +0000 | [diff] [blame] | 110 | "unsupportedappusage", |
Steven Moreland | 2253fbc | 2019-01-24 12:02:37 -0800 | [diff] [blame] | 111 | ], |
| 112 | static_libs: [ |
Steven Moreland | a2b60be | 2019-03-13 16:25:42 -0700 | [diff] [blame] | 113 | "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 Bright | d803d03 | 2020-11-12 20:23:47 -0800 | [diff] [blame] | 116 | "android.hardware.radio.config-V1.3-java-shallow", |
Steven Moreland | a2b60be | 2019-03-13 16:25:42 -0700 | [diff] [blame] | 117 | "android.hardware.radio.deprecated-V1.0-java-shallow", |
Steven Moreland | 2253fbc | 2019-01-24 12:02:37 -0800 | [diff] [blame] | 118 | "ecc-protos-lite", |
Meng Wang | 27d027a | 2019-12-13 17:18:19 -0800 | [diff] [blame] | 119 | "libphonenumber-nogeocoder", |
Meng Wang | 2d958cd | 2019-11-14 11:22:14 -0800 | [diff] [blame] | 120 | "PlatformProperties", |
Aaron Huang | 0e59990 | 2019-12-16 21:13:05 +0800 | [diff] [blame] | 121 | "net-utils-framework-common", |
Meng Wang | 27d027a | 2019-12-13 17:18:19 -0800 | [diff] [blame] | 122 | "telephony-protos", |
Chalard Jean | 4d04ca8 | 2021-04-26 20:55:26 +0900 | [diff] [blame] | 123 | "modules-utils-build_system", |
Jason Monk | 3077f6a | 2018-08-07 13:21:59 -0400 | [diff] [blame] | 124 | ], |
| 125 | |
| 126 | product_variables: { |
| 127 | pdk: { |
| 128 | // enable this build only when platform library is available |
| 129 | enabled: false, |
| 130 | }, |
| 131 | }, |
Chi Zhang | 1d177d7 | 2021-08-16 14:57:16 -0700 | [diff] [blame^] | 132 | |
| 133 | optimize: { |
| 134 | enabled: true, |
| 135 | shrink: true, |
| 136 | obfuscate: false, |
| 137 | proguard_flags_files: ["proguard.flags"], |
| 138 | }, |
Jason Monk | 3077f6a | 2018-08-07 13:21:59 -0400 | [diff] [blame] | 139 | } |