| 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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
| 6 import("//tools/grit/repack.gni") | 6 import("//tools/grit/repack.gni") |
| 7 | 7 |
| 8 # GYP version: ui/resources/ui_resources.gyp:ui_resources | 8 # GYP version: ui/resources/ui_resources.gyp:ui_resources |
| 9 group("resources") { | 9 group("resources") { |
| 10 public_deps = [ | 10 public_deps = [ |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 # | 64 # |
| 65 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak | 65 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak |
| 66 # (copy_ui_test_pak action) | 66 # (copy_ui_test_pak action) |
| 67 if (is_ios || is_mac) { | 67 if (is_ios || is_mac) { |
| 68 group("ui_test_pak") { | 68 group("ui_test_pak") { |
| 69 public_deps = [ | 69 public_deps = [ |
| 70 ":repack_ui_test_mac_locale_pack", | 70 ":repack_ui_test_mac_locale_pack", |
| 71 ":repack_ui_test_pak", | 71 ":repack_ui_test_pak", |
| 72 ] | 72 ] |
| 73 } | 73 } |
| 74 |
| 75 # This needs to be a separate target from ui_test_pak as ui_base_unittests |
| 76 # wants the generate .pak file in the bundle to be named en.lpro/locale.pak |
| 77 # while components_unittests wants it to be named ui_test.pak. |
| 78 bundle_data("ui_test_pak_bundle_data") { |
| 79 public_deps = [ |
| 80 ":ui_test_pak", |
| 81 ] |
| 82 sources = [ |
| 83 "$root_out_dir/ui_test.pak", |
| 84 ] |
| 85 outputs = [ |
| 86 "{{bundle_resources_dir}}/en.lproj/locale.pak", |
| 87 ] |
| 88 } |
| 74 } else { | 89 } else { |
| 75 copy("ui_test_pak") { | 90 copy("ui_test_pak") { |
| 76 sources = [ | 91 sources = [ |
| 77 "$root_out_dir/ui_test.pak", | 92 "$root_out_dir/ui_test.pak", |
| 78 ] | 93 ] |
| 79 outputs = [ | 94 outputs = [ |
| 80 "$root_out_dir/ui/en-US.pak", | 95 "$root_out_dir/ui/en-US.pak", |
| 81 ] | 96 ] |
| 82 public_deps = [ | 97 public_deps = [ |
| 83 ":repack_ui_test_pak", | 98 ":repack_ui_test_pak", |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 180 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
| 166 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 181 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
| 167 ] | 182 ] |
| 168 | 183 |
| 169 output = "$root_out_dir/ui/en.lproj/locale.pak" | 184 output = "$root_out_dir/ui/en.lproj/locale.pak" |
| 170 | 185 |
| 171 deps = [ | 186 deps = [ |
| 172 "//ui/strings", | 187 "//ui/strings", |
| 173 ] | 188 ] |
| 174 } | 189 } |
| OLD | NEW |