OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 7 import("//ios/chrome/app/resources/ios_chrome_repack.gni") |
6 | 8 |
7 grit("resources") { | 9 grit("resources") { |
8 source = "ios_resources.grd" | 10 source = "ios_resources.grd" |
9 output_dir = "$root_gen_dir/ios/chrome" | 11 output_dir = "$root_gen_dir/ios/chrome" |
10 use_qualified_include = true | 12 use_qualified_include = true |
11 outputs = [ | 13 outputs = [ |
12 "grit/ios_resources.h", | 14 "grit/ios_resources.h", |
13 "ios_resources.pak", | 15 "ios_resources.pak", |
14 ] | 16 ] |
15 } | 17 } |
| 18 |
| 19 group("packed_resources") { |
| 20 public_deps = [ |
| 21 ":repack_locales", |
| 22 ":repack_scalable_resources", |
| 23 ":repack_unscaled_resources", |
| 24 ] |
| 25 } |
| 26 |
| 27 ios_chrome_repack_locales("repack_locales") { |
| 28 visibility = [ ":packed_resources" ] |
| 29 input_locales = ios_packed_locales |
| 30 output_locales = ios_packed_locales_as_mac_outputs |
| 31 } |
| 32 |
| 33 ios_chrome_repack_all_scales("repack_scalable_resources") { |
| 34 visibility = [ ":packed_resources" ] |
| 35 scales = [ |
| 36 "100", |
| 37 "200", |
| 38 "300", |
| 39 ] |
| 40 } |
| 41 |
| 42 ios_repack("repack_unscaled_resources") { |
| 43 visibility = [ ":packed_resources" ] |
| 44 sources = [ |
| 45 "$root_gen_dir/components/components_resources.pak", |
| 46 "$root_gen_dir/ios/chrome/ios_resources.pak", |
| 47 "$root_gen_dir/ios/web/ios_web_resources.pak", |
| 48 "$root_gen_dir/net/net_resources.pak", |
| 49 "$root_gen_dir/ui/resources/webui_resources.pak", |
| 50 ] |
| 51 deps = [ |
| 52 ":resources", |
| 53 "//components/resources", |
| 54 "//ios/web:resources", |
| 55 "//net:net_resources", |
| 56 "//ui/resources", |
| 57 ] |
| 58 output = "$target_gen_dir/resources.pak" |
| 59 bundle_output = "{{bundle_resources_dir}}/{{source_file_part}}" |
| 60 } |
OLD | NEW |