| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/locales.gni") | 5 import("//build/config/locales.gni") |
| 6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 7 | 7 |
| 8 # Meta target that includes both ui_strings and app_locale_settings. Most | 8 # Meta target that includes both ui_strings and app_locale_settings. Most |
| 9 # targets want both. You can depend on the individually if you need to. | 9 # targets want both. You can depend on the individually if you need to. |
| 10 group("strings") { | 10 group("strings") { |
| 11 public_deps = [ | 11 public_deps = [ |
| 12 ":app_locale_settings", | 12 ":app_locale_settings", |
| 13 ":ui_strings", | 13 ":ui_strings", |
| 14 ] | 14 ] |
| 15 } | 15 } |
| 16 | 16 |
| 17 grit("ui_strings") { | 17 grit("ui_strings") { |
| 18 source = "ui_strings.grd" | 18 source = "ui_strings.grd" |
| 19 use_qualified_include = true | |
| 20 outputs = [ | 19 outputs = [ |
| 21 "grit/ui_strings.h", | 20 "grit/ui_strings.h", |
| 22 ] | 21 ] |
| 23 foreach(locale, locales_with_fake_bidi) { | 22 foreach(locale, locales_with_fake_bidi) { |
| 24 outputs += [ "ui_strings_$locale.pak" ] | 23 outputs += [ "ui_strings_$locale.pak" ] |
| 25 } | 24 } |
| 26 } | 25 } |
| 27 | 26 |
| 28 grit("app_locale_settings") { | 27 grit("app_locale_settings") { |
| 29 source = "app_locale_settings.grd" | 28 source = "app_locale_settings.grd" |
| 30 use_qualified_include = true | |
| 31 outputs = [ | 29 outputs = [ |
| 32 "grit/app_locale_settings.h", | 30 "grit/app_locale_settings.h", |
| 33 ] | 31 ] |
| 34 foreach(locale, locales_with_fake_bidi) { | 32 foreach(locale, locales_with_fake_bidi) { |
| 35 outputs += [ "app_locale_settings_$locale.pak" ] | 33 outputs += [ "app_locale_settings_$locale.pak" ] |
| 36 } | 34 } |
| 37 } | 35 } |
| OLD | NEW |