Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: ios/chrome/app/resources/BUILD.gn

Issue 2119433002: Convert "ios_packed_resources" gyp target to gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/chrome/BUILD.gn ('k') | ios/chrome/app/resources/ios_chrome_repack.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « ios/chrome/BUILD.gn ('k') | ios/chrome/app/resources/ios_chrome_repack.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698