| # Copyright 2022 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/components.gni") |
| import("//src/lib/icu/tzdata/icu_tzdata_resource.gni") |
| import("//src/lib/intl/tz/zoneinfo_resource.gni") |
| import("//src/sys/core/build/core_shard.gni") |
| |
| group("tzdata_provider") { |
| testonly = true |
| deps = [ |
| ":tests", |
| ":tzdata_provider_pkg", |
| ":zoneinfo_provider_pkg", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ "test" ] |
| } |
| |
| icu_tzdata_resource("icu_tzdata_44_le") { |
| data_version = "44" |
| format = "le" |
| } |
| |
| fuchsia_component("component") { |
| component_name = "tzdata-provider" |
| manifest = "meta/tzdata_provider.cml" |
| } |
| |
| fuchsia_package("tzdata_provider_pkg") { |
| package_name = "tzdata-provider" |
| deps = [ |
| ":component", |
| ":icu_tzdata_44_le_for_tzdata_provider", |
| ] |
| } |
| |
| # The zoneinfo tzif files provider. See the component manifest for details. |
| # |
| # While it would have been nice to add this information to tzdata_provider, |
| # the zoneinfo files are large, so we'll need to have an assembly option to |
| # include it into the product where necessary. |
| fuchsia_component("zoneinfo_component") { |
| component_name = "zoneinfo-provider" |
| manifest = "meta/zoneinfo_provider.cml" |
| } |
| |
| fuchsia_package("zoneinfo_provider_pkg") { |
| package_name = "zoneinfo-provider" |
| deps = [ |
| ":zoneinfo", |
| ":zoneinfo_component", |
| ] |
| } |
| |
| zoneinfo_resource("zoneinfo") { |
| visibility = [ ":*" ] |
| } |