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 16filegroup { 17 name: "opt-telephony-srcs", 18 srcs: [ 19 "src/java/android/telephony/**/*.java", 20 ], 21 path: "src/java", 22} 23 24filegroup { 25 name: "opt-telephony-htmls", 26 srcs: [ 27 "src/java/android/telephony/**/*.html", 28 ], 29} 30 31filegroup { 32 name: "opt-telephony-common-srcs", 33 srcs: [ 34 "src/java/**/*.java", 35 ], 36 path: "src/java", 37} 38 39filegroup { 40 name: "jarjar-rules-shared", 41 srcs: ["jarjar-rules-shared.txt"], 42} 43 44genrule { 45 name: "statslog-telephony-java-gen", 46 tools: ["stats-log-api-gen"], 47 cmd: "$(location stats-log-api-gen) --java $(out) --module telephony" 48 + " --javaPackage com.android.internal.telephony --javaClass TelephonyStatsLog", 49 out: ["com/android/internal/telephony/TelephonyStatsLog.java"], 50} 51 52java_library { 53 name: "telephony-common", 54 installable: true, 55 56 aidl: { 57 local_include_dirs: ["src/java"], 58 }, 59 srcs: [ 60 ":opt-telephony-common-srcs", 61 ":framework-telephony-stack-shared-srcs", 62 ":net-utils-telephony-common-srcs", 63 ":statslog-telephony-java-gen", 64 "src/java/**/I*.aidl", 65 "src/java/**/*.logtags", 66 ], 67 68 jarjar_rules: ":jarjar-rules-shared", 69 70 libs: [ 71 "android.hardware.radio-V1.0-java", 72 "android.hardware.radio-V1.1-java", 73 "android.hardware.radio-V1.2-java", 74 "android.hardware.radio-V1.3-java", 75 "android.hardware.radio-V1.4-java", 76 "android.hardware.radio-V1.5-java", 77 "voip-common", 78 "ims-common", 79 "unsupportedappusage", 80 ], 81 static_libs: [ 82 "android.hardware.radio.config-V1.0-java-shallow", 83 "android.hardware.radio.config-V1.1-java-shallow", 84 "android.hardware.radio.config-V1.2-java-shallow", 85 "android.hardware.radio.deprecated-V1.0-java-shallow", 86 "ecc-protos-lite", 87 "libphonenumber-nogeocoder", 88 "PlatformProperties", 89 "net-utils-framework-common", 90 "telephony-protos", 91 ], 92 93 product_variables: { 94 pdk: { 95 // enable this build only when platform library is available 96 enabled: false, 97 }, 98 }, 99} 100