blob: 9b28c6a9f8455d675b4e3584e263fe0cfb0cf458 [file] [log] [blame]
Neil Fullerb27c4372018-10-29 17:36:55 +00001// Copyright (C) 2018 The Android Open Source Project
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
Bob Badoura8ca3442021-02-03 18:16:54 -080015package {
16 // http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // the below license kinds from "system_timezone_license":
19 // SPDX-license-identifier-BSD
20 // SPDX-license-identifier-MIT
21 // SPDX-license-identifier-Unicode-DFS
22 default_applicable_licenses: ["system_timezone_license"],
23}
24
Neil Fullerb27c4372018-10-29 17:36:55 +000025prebuilt_etc {
26 name: "apex_tz_version",
27 src: "version/tz_version",
28 filename: "tz_version",
Neil Fuller0d1994c2018-12-06 14:21:03 +000029 sub_dir: "tz",
Neil Fullerb27c4372018-10-29 17:36:55 +000030 installable: false,
31}
32
33prebuilt_etc {
34 name: "apex_tzlookup.xml",
35 src: "android/tzlookup.xml",
36 filename: "tzlookup.xml",
Neil Fuller0d1994c2018-12-06 14:21:03 +000037 sub_dir: "tz",
Neil Fullerb27c4372018-10-29 17:36:55 +000038 installable: false,
39}
40
41prebuilt_etc {
Neil Fullerf85e8142019-10-28 17:21:55 +000042 name: "apex_telephonylookup.xml",
43 src: "android/telephonylookup.xml",
44 filename: "telephonylookup.xml",
45 sub_dir: "tz",
46 installable: false,
47}
48
49prebuilt_etc {
Neil Fullerb27c4372018-10-29 17:36:55 +000050 name: "apex_tzdata",
51 src: "iana/tzdata",
52 notice: "iana/NOTICE",
53 filename: "tzdata",
Neil Fuller0d1994c2018-12-06 14:21:03 +000054 sub_dir: "tz",
Neil Fullerb27c4372018-10-29 17:36:55 +000055 installable: false,
56}
57
58prebuilt_etc {
59 name: "apex_icu_tzdata.dat",
60 src: "icu_overlay/icu_tzdata.dat",
Neil Fuller64bd4112018-11-01 18:14:07 +000061 notice: "icu_overlay/LICENSE",
Neil Fullerb27c4372018-10-29 17:36:55 +000062 filename: "icu_tzdata.dat",
Neil Fuller3ac96de2018-12-04 20:31:03 +000063 sub_dir: "icu",
Neil Fullerb27c4372018-10-29 17:36:55 +000064 installable: false,
65}
66
Colin Cross97718282019-04-02 23:00:34 -070067// tzdata packaged into a jar for use in robolectric
Anton Hansson699d3e22020-07-20 18:40:23 +010068java_genrule_host {
Colin Cross97718282019-04-02 23:00:34 -070069 name: "robolectric_tzdata",
70 out: ["robolectric_tzdata.jar"],
71 tools: ["soong_zip"],
72 srcs: [
73 "iana/tzdata",
74 "android/tzlookup.xml",
Neil Fullerf85e8142019-10-28 17:21:55 +000075 "android/telephonylookup.xml",
Colin Cross97718282019-04-02 23:00:34 -070076 ],
77 cmd: "mkdir -p $(genDir)/usr/share/zoneinfo/ && " +
78 "cp $(location iana/tzdata) $(genDir)/usr/share/zoneinfo/ && " +
79 "cp $(location android/tzlookup.xml) $(genDir)/usr/share/zoneinfo/ && " +
Neil Fullerf85e8142019-10-28 17:21:55 +000080 "cp $(location android/telephonylookup.xml) $(genDir)/usr/share/zoneinfo/ && " +
Colin Cross97718282019-04-02 23:00:34 -070081 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)/usr/share/zoneinfo",
82}