blob: abe8e36d95a4da2d44f4bc3c08d9c23accc56558 [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
15prebuilt_etc {
16 name: "apex_tz_version",
17 src: "version/tz_version",
18 filename: "tz_version",
Neil Fuller0d1994c2018-12-06 14:21:03 +000019 sub_dir: "tz",
Neil Fullerb27c4372018-10-29 17:36:55 +000020 installable: false,
21}
22
23prebuilt_etc {
24 name: "apex_tzlookup.xml",
25 src: "android/tzlookup.xml",
26 filename: "tzlookup.xml",
Neil Fuller0d1994c2018-12-06 14:21:03 +000027 sub_dir: "tz",
Neil Fullerb27c4372018-10-29 17:36:55 +000028 installable: false,
29}
30
31prebuilt_etc {
Neil Fullerf85e8142019-10-28 17:21:55 +000032 name: "apex_telephonylookup.xml",
33 src: "android/telephonylookup.xml",
34 filename: "telephonylookup.xml",
35 sub_dir: "tz",
36 installable: false,
37}
38
39prebuilt_etc {
Neil Fullerb27c4372018-10-29 17:36:55 +000040 name: "apex_tzdata",
41 src: "iana/tzdata",
42 notice: "iana/NOTICE",
43 filename: "tzdata",
Neil Fuller0d1994c2018-12-06 14:21:03 +000044 sub_dir: "tz",
Neil Fullerb27c4372018-10-29 17:36:55 +000045 installable: false,
46}
47
48prebuilt_etc {
49 name: "apex_icu_tzdata.dat",
50 src: "icu_overlay/icu_tzdata.dat",
Neil Fuller64bd4112018-11-01 18:14:07 +000051 notice: "icu_overlay/LICENSE",
Neil Fullerb27c4372018-10-29 17:36:55 +000052 filename: "icu_tzdata.dat",
Neil Fuller3ac96de2018-12-04 20:31:03 +000053 sub_dir: "icu",
Neil Fullerb27c4372018-10-29 17:36:55 +000054 installable: false,
55}
56
Colin Cross97718282019-04-02 23:00:34 -070057// tzdata packaged into a jar for use in robolectric
Anton Hansson699d3e22020-07-20 18:40:23 +010058java_genrule_host {
Colin Cross97718282019-04-02 23:00:34 -070059 name: "robolectric_tzdata",
60 out: ["robolectric_tzdata.jar"],
61 tools: ["soong_zip"],
62 srcs: [
63 "iana/tzdata",
64 "android/tzlookup.xml",
Neil Fullerf85e8142019-10-28 17:21:55 +000065 "android/telephonylookup.xml",
Colin Cross97718282019-04-02 23:00:34 -070066 ],
67 cmd: "mkdir -p $(genDir)/usr/share/zoneinfo/ && " +
68 "cp $(location iana/tzdata) $(genDir)/usr/share/zoneinfo/ && " +
69 "cp $(location android/tzlookup.xml) $(genDir)/usr/share/zoneinfo/ && " +
Neil Fullerf85e8142019-10-28 17:21:55 +000070 "cp $(location android/telephonylookup.xml) $(genDir)/usr/share/zoneinfo/ && " +
Colin Cross97718282019-04-02 23:00:34 -070071 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)/usr/share/zoneinfo",
72}