blob: 8eed9bafa431b511caba5d9b7ea574a13d26a66f [file] [log] [blame]
// 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_tzlookup.xml",
src: "android/tzlookup.xml",
filename: "tzlookup.xml",
sub_dir: "tz",
installable: false,
}
prebuilt_etc {
name: "apex_telephonylookup.xml",
src: "android/telephonylookup.xml",
filename: "telephonylookup.xml",
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_icu_zoneinfo64.res",
src: "icu_overlay/zoneinfo64.res",
licenses: ["system_timezone_output_data_icu_licence"],
filename: "zoneinfo64.res",
sub_dir: "icu",
installable: false,
}
prebuilt_etc {
name: "apex_icu_metaZones.res",
src: "icu_overlay/metaZones.res",
licenses: ["system_timezone_output_data_icu_licence"],
filename: "metaZones.res",
sub_dir: "icu",
installable: false,
}
prebuilt_etc {
name: "apex_icu_timezoneTypes.res",
src: "icu_overlay/timezoneTypes.res",
licenses: ["system_timezone_output_data_icu_licence"],
filename: "timezoneTypes.res",
sub_dir: "icu",
installable: false,
}
prebuilt_etc {
name: "apex_icu_windowsZones.res",
src: "icu_overlay/windowsZones.res",
licenses: ["system_timezone_output_data_icu_licence"],
filename: "windowsZones.res",
sub_dir: "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",
}