| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 74 |
| 75 # This needs to be a separate target from ui_test_pak as ui_base_unittests | 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 | 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. | 77 # while components_unittests wants it to be named ui_test.pak. |
| 78 bundle_data("ui_test_pak_bundle_data") { | 78 bundle_data("ui_test_pak_bundle_data_locale") { |
| 79 testonly = true | 79 testonly = true |
| 80 visibility = [ ":ui_test_pak_bundle_data" ] |
| 80 public_deps = [ | 81 public_deps = [ |
| 81 ":ui_test_pak", | 82 ":ui_test_pak", |
| 82 ] | 83 ] |
| 83 sources = [ | 84 sources = [ |
| 84 "$root_out_dir/ui_test.pak", | 85 "$root_out_dir/ui_test.pak", |
| 85 ] | 86 ] |
| 86 outputs = [ | 87 outputs = [ |
| 87 "{{bundle_resources_dir}}/en.lproj/locale.pak", | 88 "{{bundle_resources_dir}}/en.lproj/locale.pak", |
| 88 ] | 89 ] |
| 89 } | 90 } |
| 91 |
| 92 bundle_data("ui_test_pak_bundle_data_test_pak") { |
| 93 testonly = true |
| 94 visibility = [ ":ui_test_pak_bundle_data" ] |
| 95 public_deps = [ |
| 96 ":ui_test_pak", |
| 97 ] |
| 98 sources = [ |
| 99 "$root_out_dir/ui_test.pak", |
| 100 ] |
| 101 outputs = [ |
| 102 "{{bundle_resources_dir}}/ui_test.pak", |
| 103 ] |
| 104 } |
| 105 |
| 106 bundle_data("ui_test_pak_bundle_data_100_percent") { |
| 107 testonly = true |
| 108 visibility = [ ":ui_test_pak_bundle_data" ] |
| 109 public_deps = [ |
| 110 ":ui_test_pak", |
| 111 ] |
| 112 sources = [ |
| 113 "$root_out_dir/ui_test.pak", |
| 114 ] |
| 115 outputs = [ |
| 116 "{{bundle_resources_dir}}/chrome_100_percent.pak", |
| 117 ] |
| 118 } |
| 119 |
| 120 group("ui_test_pak_bundle_data") { |
| 121 testonly = true |
| 122 public_deps = [ |
| 123 ":ui_test_pak_bundle_data_100_percent", |
| 124 ":ui_test_pak_bundle_data_locale", |
| 125 ":ui_test_pak_bundle_data_test_pak", |
| 126 ] |
| 127 } |
| 90 } else { | 128 } else { |
| 91 copy("ui_test_pak") { | 129 copy("ui_test_pak") { |
| 92 sources = [ | 130 sources = [ |
| 93 "$root_out_dir/ui_test.pak", | 131 "$root_out_dir/ui_test.pak", |
| 94 ] | 132 ] |
| 95 outputs = [ | 133 outputs = [ |
| 96 "$root_out_dir/ui/en-US.pak", | 134 "$root_out_dir/ui/en-US.pak", |
| 97 ] | 135 ] |
| 98 public_deps = [ | 136 public_deps = [ |
| 99 ":repack_ui_test_pak", | 137 ":repack_ui_test_pak", |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 219 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
| 182 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 220 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
| 183 ] | 221 ] |
| 184 | 222 |
| 185 output = "$root_out_dir/ui/en.lproj/locale.pak" | 223 output = "$root_out_dir/ui/en.lproj/locale.pak" |
| 186 | 224 |
| 187 deps = [ | 225 deps = [ |
| 188 "//ui/strings", | 226 "//ui/strings", |
| 189 ] | 227 ] |
| 190 } | 228 } |
| OLD | NEW |