blob: bbc08c7f1b9709a1916a2abbef3f3a561fc997c0 [file] [log] [blame]
# Copyright 2023 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.
# NOTE: icu_git_info was already declared in BUILDCONFIG.gni.
# The unflavored dependencies that must be replaced with flavored ones when
# compiling flavored targets. Defined because the correct contents are
# annoying to remember but must be specified exactly.
icu_fixup_deps_no_testonly = [
"//src/lib/icu:data",
"//src/lib/icu:icudtl",
"//src/lib/icu:lib",
]
icu_fixup_deps = icu_fixup_deps_no_testonly + [ "//src/lib/icu" ]
# These can not be directly inserted in the assignments of
# `icu_flavor_major_versions` below, that is a GN limitation.
icu_default_config = read_file("//third_party/icu/default/version.json", "json")
icu_latest_config = read_file("//third_party/icu/latest/version.json", "json")
# The major version numbers per each ICU flavor.
# Automatically extracted from `version.json` in the ICU repo.
icu_flavor_major_versions = {
default = icu_default_config.major_version
latest = icu_latest_config.major_version
}
# A registry of the ICU flavors known to the build system.
#
# Each entry is a scope of:
# - name[string]: one of "default", "latest",
# - commit_id[string]: the git commit ID at which the flavor currently is.
# - major_version[string]: a string-formatted number, such as "73".
icu_flavors = [
{
name = "default"
commit_id = icu_git_info.default
major_version = icu_flavor_major_versions.default
},
{
name = "latest"
commit_id = icu_git_info.latest
major_version = icu_flavor_major_versions.latest
},
]