1*0e209d39SAndroid Build Coastguard Worker// Copyright (C) 2015 The Android Open Source Project 2*0e209d39SAndroid Build Coastguard Worker// 3*0e209d39SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*0e209d39SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*0e209d39SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*0e209d39SAndroid Build Coastguard Worker// 7*0e209d39SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*0e209d39SAndroid Build Coastguard Worker// 9*0e209d39SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*0e209d39SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*0e209d39SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*0e209d39SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*0e209d39SAndroid Build Coastguard Worker// limitations under the License. 14*0e209d39SAndroid Build Coastguard Worker 15*0e209d39SAndroid Build Coastguard Workerpackage { 16*0e209d39SAndroid Build Coastguard Worker default_team: "trendy_team_java_core_libraries", 17*0e209d39SAndroid Build Coastguard Worker default_visibility: ["//visibility:private"], 18*0e209d39SAndroid Build Coastguard Worker // See: http://go/android-license-faq 19*0e209d39SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 20*0e209d39SAndroid Build Coastguard Worker // all of the 'license_kinds' from "external_icu_license" 21*0e209d39SAndroid Build Coastguard Worker // to get the below license kinds: 22*0e209d39SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 23*0e209d39SAndroid Build Coastguard Worker // SPDX-license-identifier-EPL 24*0e209d39SAndroid Build Coastguard Worker default_applicable_licenses: ["external_icu_license"], 25*0e209d39SAndroid Build Coastguard Worker} 26*0e209d39SAndroid Build Coastguard Worker 27*0e209d39SAndroid Build Coastguard Worker// build the android_icu4j srcgen jar 28*0e209d39SAndroid Build Coastguard Worker// ============================================================ 29*0e209d39SAndroid Build Coastguard Worker 30*0e209d39SAndroid Build Coastguard Workerjava_library_host { 31*0e209d39SAndroid Build Coastguard Worker name: "android_icu4j_srcgen", 32*0e209d39SAndroid Build Coastguard Worker srcs: ["src/**/*.java"], 33*0e209d39SAndroid Build Coastguard Worker static_libs: [ 34*0e209d39SAndroid Build Coastguard Worker "currysrc", 35*0e209d39SAndroid Build Coastguard Worker "icu4j", 36*0e209d39SAndroid Build Coastguard Worker ], 37*0e209d39SAndroid Build Coastguard Worker} 38*0e209d39SAndroid Build Coastguard Worker 39*0e209d39SAndroid Build Coastguard Workerjava_binary_host { 40*0e209d39SAndroid Build Coastguard Worker name: "android_icu4j_srcgen_binary", 41*0e209d39SAndroid Build Coastguard Worker manifest: "src/manifest.txt", 42*0e209d39SAndroid Build Coastguard Worker static_libs: [ 43*0e209d39SAndroid Build Coastguard Worker "android_icu4j_srcgen", 44*0e209d39SAndroid Build Coastguard Worker "currysrc", 45*0e209d39SAndroid Build Coastguard Worker ], 46*0e209d39SAndroid Build Coastguard Worker} 47*0e209d39SAndroid Build Coastguard Worker 48*0e209d39SAndroid Build Coastguard Workerfilegroup { 49*0e209d39SAndroid Build Coastguard Worker name: "generate_android_icu4j_script", 50*0e209d39SAndroid Build Coastguard Worker visibility: ["//external/icu/icu4j"], 51*0e209d39SAndroid Build Coastguard Worker srcs: ["generate_android_icu4j.sh"], 52*0e209d39SAndroid Build Coastguard Worker} 53