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 | |
| 15 | prebuilt_usr_share { |
| 16 | name: "tz_version", |
| 17 | src: "tz_version", |
| 18 | sub_dir: "zoneinfo", |
| 19 | } |
| 20 | |
| 21 | // A host version of the tz_version module for use by |
| 22 | // hostdex rules. |
| 23 | |
| 24 | prebuilt_usr_share_host { |
| 25 | name: "tz_version_host", |
| 26 | src: "tz_version", |
| 27 | filename_from_src: true, |
| 28 | sub_dir: "zoneinfo", |
| 29 | target: { |
| 30 | darwin: { |
| 31 | enabled: false, |
| 32 | }, |
| 33 | }, |
| 34 | } |
| 35 | |
| 36 | // Module definition producing a tz_version prebuilt file in |
Neil Fuller | 6b84e74 | 2019-06-07 14:19:18 +0100 | [diff] [blame] | 37 | // /system/etc/tzdata_module/etc/tz for standalone ART testing purposes. |
| 38 | // 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] | 39 | // support the Runtime APEX (see b/121117762). This module should never |
Neil Fuller | 6b84e74 | 2019-06-07 14:19:18 +0100 | [diff] [blame] | 40 | // 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] | 41 | |
| 42 | // TODO(b/121117762, b/129332183): Remove this module definition when |
| 43 | // the ART Buildbot and Golem have full support for the Time Zone Data APEX. |
| 44 | prebuilt_etc { |
| 45 | name: "tz_version-art-test-tzdata", |
| 46 | src: "tz_version", |
| 47 | filename_from_src: true, |
| 48 | sub_dir: "tzdata_module/etc/tz", |
| 49 | } |