Colin Cross | 1354008 | 2017-12-05 13:49:23 -0800 | [diff] [blame] | 1 | // Copyright (C) 2015 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 | // SPDX-license-identifier-Apache-2.0 |
| 20 | default_applicable_licenses: ["system_timezone_license"], |
| 21 | } |
| 22 | |
Colin Cross | 1354008 | 2017-12-05 13:49:23 -0800 | [diff] [blame] | 23 | // Library of classes for handling time zone distros. Used on-device for |
| 24 | // handling distros and within CTS tests. |
| 25 | // |
| 26 | // This is distinct from time_zone_distro_unbundled. It should be used |
| 27 | // for platform code as it avoids circular dependencies when stubs targets |
| 28 | // need to build framework (as appears to be the case in aosp/master). |
Neil Fuller | 3d77332 | 2018-11-16 15:37:27 +0000 | [diff] [blame] | 29 | // Also used from host-side tests and tools. |
| 30 | java_library { |
Colin Cross | 1354008 | 2017-12-05 13:49:23 -0800 | [diff] [blame] | 31 | name: "time_zone_distro", |
| 32 | host_supported: true, |
| 33 | |
| 34 | srcs: ["src/main/**/*.java"], |
Neil Fuller | 3d77332 | 2018-11-16 15:37:27 +0000 | [diff] [blame] | 35 | target: { |
| 36 | host: { |
| 37 | static_libs: ["timezone-host"], |
| 38 | }, |
| 39 | }, |
Colin Cross | 1354008 | 2017-12-05 13:49:23 -0800 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | // Library of classes for handling time zone distros. Used in unbundled |
| 43 | // cases. Same as above, except dependent on system_current stubs. |
Neil Fuller | 3d77332 | 2018-11-16 15:37:27 +0000 | [diff] [blame] | 44 | java_library { |
Colin Cross | 1354008 | 2017-12-05 13:49:23 -0800 | [diff] [blame] | 45 | name: "time_zone_distro_unbundled", |
| 46 | |
| 47 | srcs: ["src/main/**/*.java"], |
| 48 | sdk_version: "system_current", |
| 49 | } |
| 50 | |
Neil Fuller | f85e814 | 2019-10-28 17:21:55 +0000 | [diff] [blame] | 51 | // Tests for time_zone_distro code (see CtsLibcoreTestCases) |
Neil Fuller | 3d77332 | 2018-11-16 15:37:27 +0000 | [diff] [blame] | 52 | java_library { |
Colin Cross | 1354008 | 2017-12-05 13:49:23 -0800 | [diff] [blame] | 53 | name: "time_zone_distro-tests", |
| 54 | |
| 55 | srcs: ["src/test/**/*.java"], |
| 56 | static_libs: [ |
| 57 | "time_zone_distro", |
Neil Fuller | 06ceead | 2018-10-02 17:29:09 +0100 | [diff] [blame] | 58 | "core-tests-support", |
Colin Cross | 1354008 | 2017-12-05 13:49:23 -0800 | [diff] [blame] | 59 | "junit", |
| 60 | ], |
| 61 | } |