blob: 076d3cf62f00f8b6508307cb842547bdf137a515 [file] [log] [blame]
Patrice Arrudabc2b4612019-05-13 09:13:07 -07001// Copyright (C) 2019 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 // legacy_notice
20 default_applicable_licenses: ["system_timezone_license"],
21}
22
Patrice Arrudabc2b4612019-05-13 09:13:07 -070023prebuilt_usr_share {
24 name: "tz_version",
25 src: "tz_version",
26 sub_dir: "zoneinfo",
27}
28
29// A host version of the tz_version module for use by
30// hostdex rules.
31
32prebuilt_usr_share_host {
33 name: "tz_version_host",
34 src: "tz_version",
35 filename_from_src: true,
36 sub_dir: "zoneinfo",
37 target: {
38 darwin: {
39 enabled: false,
40 },
41 },
42}
43
44// Module definition producing a tz_version prebuilt file in
Neil Fuller6b84e742019-06-07 14:19:18 +010045// /system/etc/tzdata_module/etc/tz for standalone ART testing purposes.
46// This is a temporary change needed until the ART Buildbot and Golem both fully
Patrice Arrudabc2b4612019-05-13 09:13:07 -070047// support the Runtime APEX (see b/121117762). This module should never
Neil Fuller6b84e742019-06-07 14:19:18 +010048// be shipped by default (i.e. should never be part of `PRODUCT_PACKAGE`.)
Neil Fuller0cb71802019-06-06 16:47:11 +010049
50// TODO(b/121117762, b/129332183): Remove this module definition when
51// the ART Buildbot and Golem have full support for the Time Zone Data APEX.
52prebuilt_etc {
53 name: "tz_version-art-test-tzdata",
54 src: "tz_version",
55 filename_from_src: true,
56 sub_dir: "tzdata_module/etc/tz",
57}