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

Side by Side Diff: ui/resources/BUILD.gn

Issue 544423002: Convert GN visibility variables to lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 3 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 | « ui/keyboard/webui/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 deps = [ 10 deps = [
11 ":ui_resources_grd", 11 ":ui_resources_grd",
12 ":ui_unscaled_resources_grd", 12 ":ui_unscaled_resources_grd",
13 ":webui_resources_grd", 13 ":webui_resources_grd",
14 ] 14 ]
15 } 15 }
16 16
17 grit("ui_resources_grd") { 17 grit("ui_resources_grd") {
18 visibility = ":resources"
19 source = "ui_resources.grd" 18 source = "ui_resources.grd"
20 outputs = [ 19 outputs = [
21 "grit/ui_resources.h", 20 "grit/ui_resources.h",
22 "grit/ui_resources_map.cc", 21 "grit/ui_resources_map.cc",
23 "grit/ui_resources_map.h", 22 "grit/ui_resources_map.h",
24 "ui_resources_100_percent.pak", 23 "ui_resources_100_percent.pak",
25 "ui_resources_200_percent.pak", 24 "ui_resources_200_percent.pak",
26 ] 25 ]
27 } 26 }
28 27
29 grit("ui_unscaled_resources_grd") { 28 grit("ui_unscaled_resources_grd") {
30 visibility = ":resources"
31 source = "ui_unscaled_resources.grd" 29 source = "ui_unscaled_resources.grd"
32 outputs = [ 30 outputs = [
33 "grit/ui_unscaled_resources.h", 31 "grit/ui_unscaled_resources.h",
34 "ui_unscaled_resources.rc", 32 "ui_unscaled_resources.rc",
35 ] 33 ]
36 } 34 }
37 35
38 grit("webui_resources_grd") { 36 grit("webui_resources_grd") {
39 visibility = ":resources"
40 source = "../webui/resources/webui_resources.grd" 37 source = "../webui/resources/webui_resources.grd"
41 outputs = [ 38 outputs = [
42 "grit/webui_resources.h", 39 "grit/webui_resources.h",
43 "grit/webui_resources_map.cc", 40 "grit/webui_resources_map.cc",
44 "grit/webui_resources_map.h", 41 "grit/webui_resources_map.h",
45 "webui_resources.pak", 42 "webui_resources.pak",
46 ] 43 ]
47 } 44 }
48 45
49 if (!is_mac) { 46 if (!is_mac) {
(...skipping 17 matching lines...) Expand all
67 } 64 }
68 } else { 65 } else {
69 group("ui_test_pak") { 66 group("ui_test_pak") {
70 deps = [ ":repack_ui_test_pak" ] 67 deps = [ ":repack_ui_test_pak" ]
71 } 68 }
72 } 69 }
73 70
74 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak 71 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak
75 repack("repack_ui_test_pak") { 72 repack("repack_ui_test_pak") {
76 # Depend on ui_test_pak instead of this one. 73 # Depend on ui_test_pak instead of this one.
77 visibility = ":ui_test_pak" 74 visibility = [ ":ui_test_pak" ]
78 75
79 sources = [ 76 sources = [
80 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", 77 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
81 "$root_gen_dir/ui/resources/webui_resources.pak", 78 "$root_gen_dir/ui/resources/webui_resources.pak",
82 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", 79 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
83 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", 80 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
84 ] 81 ]
85 82
86 output = "$root_out_dir/ui_test.pak" 83 output = "$root_out_dir/ui_test.pak"
87 84
88 deps = [ 85 deps = [
89 "//ui/resources", 86 "//ui/resources",
90 "//ui/strings", 87 "//ui/strings",
91 ] 88 ]
92 89
93 if (!is_mac) { 90 if (!is_mac) {
94 deps += [ ":copy_ui_resources_100_percent" ] 91 deps += [ ":copy_ui_resources_100_percent" ]
95 } 92 }
96 } 93 }
97 94
OLDNEW
« no previous file with comments | « ui/keyboard/webui/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698