Cchenxin128多语言支持
0f3fd3cf创建于 2024年8月28日历史提交
# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/locales.gni")
import("//tools/grit/grit_rule.gni")

# Meta target that includes both ax/ui_strings and app_locale_settings. Most
# targets want them all. You can depend on the individually if you need to.
group("strings") {
  public_deps = [
    ":app_locale_settings",
    ":ax_strings",
    ":ui_strings",
  ]
}

grit("ax_strings") {
  source = "ax_strings.grd"
  outputs = [ "grit/ax_strings.h" ]

  #ifdef ohos_i18n
  if (is_ohos && ohos_i18n) {
    all_chrome_locales += extra_locales
  }

  #endif
  foreach(locale, all_chrome_locales) {
    outputs += [ "ax_strings_$locale.pak" ]
  }
}

grit("ui_strings") {
  source = "ui_strings.grd"
  outputs = [ "grit/ui_strings.h" ]

  #ifdef ohos_i18n
  if (is_ohos && ohos_i18n) {
    all_chrome_locales += extra_locales
  }

  #endif
  foreach(locale, all_chrome_locales) {
    outputs += [ "ui_strings_$locale.pak" ]
  }
}

grit("app_locale_settings") {
  source = "app_locale_settings.grd"
  outputs = [ "grit/app_locale_settings.h" ]

  #ifdef ohos_i18n
  if (is_ohos && ohos_i18n) {
    all_chrome_locales += extra_locales
  }

  #endif
  foreach(locale, all_chrome_locales) {
    outputs += [ "app_locale_settings_$locale.pak" ]
  }
}