blob: 86b294b283a0309fef02ec74bf7e100d39a4b1a2 [file] [log] [blame] [edit]
// Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
// http://go/android-license-faq
default_applicable_licenses: ["Android-Apache-2.0"],
}
license {
name: "system_timezone_output_data_iana_licence",
visibility: ["//visibility:private"],
license_kinds: [
"SPDX-license-identifier-BSD",
"legacy_unencumbered",
],
license_text: [
"iana/NOTICE",
],
}
license {
name: "system_timezone_output_data_icu_licence",
visibility: ["//visibility:private"],
license_kinds: [
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-MIT",
"SPDX-license-identifier-Unicode-3.0",
],
license_text: [
"icu_overlay/LICENSE",
],
}
prebuilt_etc {
name: "apex_tz_version",
src: "version/tz_version",
filename: "tz_version",
sub_dir: "tz",
installable: false,
}
prebuilt_etc {
name: "apex_tzdata",
src: "iana/tzdata",
licenses: ["system_timezone_output_data_iana_licence"],
filename: "tzdata",
sub_dir: "tz",
installable: false,
}
prebuilt_etc {
name: "apex_tz_version_ver8",
src: "version/tz_version",
filename: "tz_version",
sub_dir: "tz/versioned/8",
installable: false,
}
prebuilt_etc {
name: "apex_tzdata_ver8",
src: "iana/tzdata",
licenses: ["system_timezone_output_data_iana_licence"],
filename: "tzdata",
sub_dir: "tz/versioned/8",
installable: false,
}
prebuilt_etc {
name: "apex_tzlookup.xml_ver8",
src: "android/tzlookup.xml",
filename: "tzlookup.xml",
sub_dir: "tz/versioned/8",
installable: false,
}
prebuilt_etc {
name: "apex_telephonylookup.xml_ver8",
src: "android/telephonylookup.xml",
filename: "telephonylookup.xml",
sub_dir: "tz/versioned/8",
installable: false,
}
prebuilt_etc {
name: "apex_icu_res_files_ver8",
srcs: [
"icu_overlay/zoneinfo64.res",
"icu_overlay/metaZones.res",
"icu_overlay/timezoneTypes.res",
"icu_overlay/windowsZones.res",
],
licenses: ["system_timezone_output_data_icu_licence"],
sub_dir: "tz/versioned/8/icu",
installable: false,
}
// tzdata packaged into a jar for use in robolectric
java_genrule_host {
name: "robolectric_tzdata",
out: ["robolectric_tzdata.jar"],
tools: ["soong_zip"],
srcs: [
"iana/tzdata",
"android/tzlookup.xml",
"android/telephonylookup.xml",
],
cmd: "mkdir -p $(genDir)/usr/share/zoneinfo/ && " +
"cp $(location iana/tzdata) $(genDir)/usr/share/zoneinfo/ && " +
"cp $(location android/tzlookup.xml) $(genDir)/usr/share/zoneinfo/ && " +
"cp $(location android/telephonylookup.xml) $(genDir)/usr/share/zoneinfo/ && " +
"$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)/usr/share/zoneinfo",
}