Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
| 8 | 8 |
| 9 source_set("app") { | 9 source_set("app") { |
| 10 sources = [ | 10 sources = [ |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 grit("chromecast_settings") { | 105 grit("chromecast_settings") { |
| 106 source = "//chromecast/app/resources/chromecast_settings.grd" | 106 source = "//chromecast/app/resources/chromecast_settings.grd" |
| 107 resource_ids = "//chromecast/app/resources/resource_ids" | 107 resource_ids = "//chromecast/app/resources/resource_ids" |
| 108 | 108 |
| 109 outputs = [ | 109 outputs = [ |
| 110 "grit/chromecast_settings.h", | 110 "grit/chromecast_settings.h", |
| 111 ] | 111 ] |
| 112 foreach(locale, locales_with_fake_bidi) { | 112 foreach(locale, locales_with_fake_bidi) { |
| 113 outputs += [ "chromecast_settings_${locale}.pak" ] | 113 outputs += [ "chromecast_settings_${locale}.pak" ] |
| 114 } | 114 } |
| 115 | |
| 116 deps = [ | |
| 117 ":verify_cast_locales", | |
| 118 ] | |
| 115 } | 119 } |
| 120 | |
| 121 # This target ensures that Chromecast developers are notified when locales | |
| 122 # change. If this target is breaking the build, the CAST_LOCALES list in | |
| 123 # //chromecast/app/verify_cast_locales.py must be updated to match | |
| 124 # |locales_with_fake_bidi|. Please see that file for more details. This action | |
| 125 # will be run on fresh builds, and whenever |locales_with_fake_bidi| is updated. | |
| 126 action("verify_cast_locales") { | |
| 127 script = "//chromecast/app/verify_cast_locales.py" | |
| 128 | |
| 129 # This file will be touched on success, preventing an unecessary rebuild. | |
|
Nico
2017/03/30 15:31:47
typo unecessary. These files are usually called "s
slan
2017/03/30 15:49:01
Done. Comments and arg updated.
| |
| 130 touch_file = "$target_gen_dir/cast_locales_verified" | |
| 131 args = [ | |
| 132 "-t", | |
| 133 rebase_path(touch_file, "$root_out_dir"), | |
| 134 ] | |
| 135 | |
| 136 args += locales_with_fake_bidi | |
| 137 | |
| 138 outputs = [ | |
| 139 touch_file, | |
| 140 ] | |
| 141 } | |
| OLD | NEW |