• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16package {
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
45filegroup {
46    name: "opt-telephony-srcs",
47    srcs: [
48        "src/java/android/telephony/**/*.java",
49    ],
50    path: "src/java",
51}
52
53filegroup {
54    name: "opt-telephony-htmls",
55    srcs: [
56        "src/java/android/telephony/**/*.html",
57    ],
58}
59
60filegroup {
61    name: "opt-telephony-common-srcs",
62    srcs: [
63        "src/java/**/*.java",
64    ],
65    path: "src/java",
66}
67
68filegroup {
69    name: "jarjar-rules-shared",
70    srcs: ["jarjar-rules-shared.txt"],
71}
72
73genrule {
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
81java_library {
82    name: "telephony-common",
83    installable: true,
84
85    aidl: {
86        local_include_dirs: ["src/java"],
87    },
88    srcs: [
89        ":opt-telephony-common-srcs",
90        ":framework-telephony-common-shared-srcs",
91        ":net-utils-telephony-common-srcs",
92        ":statslog-telephony-java-gen",
93        ":statslog-cellbroadcast-java-gen",
94        "src/java/**/I*.aidl",
95        "src/java/**/*.logtags",
96    ],
97
98    jarjar_rules: ":jarjar-rules-shared",
99
100    libs: [
101        "android.hardware.radio-V1.0-java",
102        "android.hardware.radio-V1.1-java",
103        "android.hardware.radio-V1.2-java",
104        "android.hardware.radio-V1.3-java",
105        "android.hardware.radio-V1.4-java",
106        "android.hardware.radio-V1.5-java",
107        "android.hardware.radio-V1.6-java",
108        "voip-common",
109        "ims-common",
110        "unsupportedappusage",
111    ],
112    static_libs: [
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",
116        "android.hardware.radio.config-V1.3-java-shallow",
117        "android.hardware.radio.deprecated-V1.0-java-shallow",
118        "ecc-protos-lite",
119        "libphonenumber-nogeocoder",
120        "PlatformProperties",
121        "net-utils-framework-common",
122        "telephony-protos",
123        "modules-utils-build_system",
124    ],
125
126    product_variables: {
127        pdk: {
128            // enable this build only when platform library is available
129            enabled: false,
130        },
131    },
132}
133