• 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    // See: http://go/android-license-faq
18    default_applicable_licenses: [
19        "Android-Apache-2.0",
20        "frameworks_opt_telephony_license",
21    ],
22}
23
24license {
25    name: "frameworks_opt_telephony_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "legacy_not_a_contribution",
29    ],
30}
31
32filegroup {
33    name: "opt-telephony-srcs",
34    srcs: [
35        "src/java/android/telephony/**/*.java",
36    ],
37    path: "src/java",
38}
39
40filegroup {
41    name: "opt-telephony-htmls",
42    srcs: [
43        "src/java/android/telephony/**/*.html",
44    ],
45}
46
47filegroup {
48    name: "opt-telephony-common-srcs",
49    srcs: [
50        "src/java/**/*.java",
51    ],
52    path: "src/java",
53}
54
55filegroup {
56    name: "jarjar-rules-shared",
57    srcs: ["jarjar-rules-shared.txt"],
58}
59
60java_library {
61    name: "telephony-common",
62    installable: true,
63
64    aidl: {
65        local_include_dirs: ["src/java"],
66    },
67    srcs: [
68        ":opt-telephony-common-srcs",
69        ":framework-telephony-common-shared-srcs",
70        ":net-utils-telephony-common-srcs",
71        ":statslog-cellbroadcast-java-gen",
72        "src/java/**/I*.aidl",
73        "src/java/**/*.logtags",
74    ],
75
76    jarjar_rules: ":jarjar-rules-shared",
77
78    libs: [
79        "android.hardware.radio-V1.0-java",
80        "android.hardware.radio-V1.1-java",
81        "android.hardware.radio-V1.2-java",
82        "android.hardware.radio-V1.3-java",
83        "android.hardware.radio-V1.4-java",
84        "android.hardware.radio-V1.5-java",
85        "android.hardware.radio-V1.6-java",
86        "android.hardware.radio.config-V1-java",
87        "android.hardware.radio.data-V1-java",
88        "android.hardware.radio.messaging-V1-java",
89        "android.hardware.radio.modem-V1-java",
90        "android.hardware.radio.network-V1-java",
91        "android.hardware.radio.sim-V1-java",
92        "android.hardware.radio.voice-V1-java",
93        "voip-common",
94        "ims-common",
95        "unsupportedappusage",
96    ],
97    static_libs: [
98        "android.hardware.radio.config-V1.0-java-shallow",
99        "android.hardware.radio.config-V1.1-java-shallow",
100        "android.hardware.radio.config-V1.2-java-shallow",
101        "android.hardware.radio.config-V1.3-java-shallow",
102        "android.hardware.radio.deprecated-V1.0-java-shallow",
103        "ecc-protos-lite",
104        "libphonenumber-nogeocoder",
105        "PlatformProperties",
106        "net-utils-framework-common",
107        "telephony-protos",
108        "modules-utils-build_system",
109        "modules-utils-statemachine",
110    ],
111
112    product_variables: {
113        pdk: {
114            // enable this build only when platform library is available
115            enabled: false,
116        },
117    },
118
119    optimize: {
120        enabled: true,
121        shrink: true,
122        obfuscate: false,
123        proguard_flags_files: ["proguard.flags"],
124    },
125}
126