blob: efe7c0e9d1099347d754946691be18a5806819fb [file] [log] [blame]
Colin Cross13540082017-12-05 13:49:23 -08001// 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
15// Library of classes for handling time zone distros. Used on-device for
16// handling distros and within CTS tests.
17//
18// This is distinct from time_zone_distro_unbundled. It should be used
19// for platform code as it avoids circular dependencies when stubs targets
20// need to build framework (as appears to be the case in aosp/master).
Neil Fuller3d773322018-11-16 15:37:27 +000021// Also used from host-side tests and tools.
22java_library {
Colin Cross13540082017-12-05 13:49:23 -080023 name: "time_zone_distro",
24 host_supported: true,
25
26 srcs: ["src/main/**/*.java"],
Neil Fuller3d773322018-11-16 15:37:27 +000027 target: {
28 host: {
29 static_libs: ["timezone-host"],
30 },
31 },
Colin Cross13540082017-12-05 13:49:23 -080032}
33
34// Library of classes for handling time zone distros. Used in unbundled
35// cases. Same as above, except dependent on system_current stubs.
Neil Fuller3d773322018-11-16 15:37:27 +000036java_library {
Colin Cross13540082017-12-05 13:49:23 -080037 name: "time_zone_distro_unbundled",
38
39 srcs: ["src/main/**/*.java"],
40 sdk_version: "system_current",
41}
42
Neil Fullerf85e8142019-10-28 17:21:55 +000043// Tests for time_zone_distro code (see CtsLibcoreTestCases)
Neil Fuller3d773322018-11-16 15:37:27 +000044java_library {
Colin Cross13540082017-12-05 13:49:23 -080045 name: "time_zone_distro-tests",
46
47 srcs: ["src/test/**/*.java"],
48 static_libs: [
49 "time_zone_distro",
Neil Fuller06ceead2018-10-02 17:29:09 +010050 "core-tests-support",
Colin Cross13540082017-12-05 13:49:23 -080051 "junit",
52 ],
53}