Patrice Arruda | bc2b461 | 2019-05-13 09:13:07 -0700 | [diff] [blame] | 1 | // 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 Badour | a8ca344 | 2021-02-03 18:16:54 -0800 | [diff] [blame] | 15 | package { |
| 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 Arruda | bc2b461 | 2019-05-13 09:13:07 -0700 | [diff] [blame] | 23 | prebuilt_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 | |
| 32 | prebuilt_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 Fuller | 6b84e74 | 2019-06-07 14:19:18 +0100 | [diff] [blame] | 45 | // /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 Arruda | bc2b461 | 2019-05-13 09:13:07 -0700 | [diff] [blame] | 47 | // support the Runtime APEX (see b/121117762). This module should never |
Neil Fuller | 6b84e74 | 2019-06-07 14:19:18 +0100 | [diff] [blame] | 48 | // be shipped by default (i.e. should never be part of `PRODUCT_PACKAGE`.) |
Neil Fuller | 0cb7180 | 2019-06-06 16:47:11 +0100 | [diff] [blame] | 49 | |
| 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. |
| 52 | prebuilt_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 | } |