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

Side by Side Diff: chrome/browser/resources/BUILD.gn

Issue 2573943002: WebUI: Vulcanize MD Settings at compile time. (Closed)
Patch Set: Rename cr:settings icon to cr:settings_icon to fix global settings object. Created 3 years, 10 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
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("//chrome/common/features.gni") 5 import("//chrome/common/features.gni")
6 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
7 7
8 grit("net_internals_resources") { 8 grit("net_internals_resources") {
9 source = "net_internals_resources.grd" 9 source = "net_internals_resources.grd"
10 use_qualified_include = true 10 use_qualified_include = true
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 outputs = [ 87 outputs = [
88 "grit/component_extension_resources.h", 88 "grit/component_extension_resources.h",
89 "grit/component_extension_resources_map.cc", 89 "grit/component_extension_resources_map.cc",
90 "grit/component_extension_resources_map.h", 90 "grit/component_extension_resources_map.h",
91 "component_extension_resources.pak", 91 "component_extension_resources.pak",
92 ] 92 ]
93 output_dir = "$root_gen_dir/chrome" 93 output_dir = "$root_gen_dir/chrome"
94 } 94 }
95 95
96 grit("settings_resources") { 96 grit("settings_resources") {
97 source = "settings/settings_resources.grd" 97 if (use_vulcanize) {
98 source = "settings/settings_resources_vulcanized.grd"
99 deps = [
100 "//chrome/browser/resources/settings:vulcanize",
101 ]
102 grit_flags = [
103 "-E",
104 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
105 ]
106 } else {
107 source = "settings/settings_resources.grd"
108 }
98 109
99 # TODO(thestig): use_qualified_include = true 110 # TODO(thestig): use_qualified_include = true
100 defines = chrome_grit_defines 111 defines = chrome_grit_defines
101 outputs = [ 112 outputs = [
102 "grit/settings_resources.h", 113 "grit/settings_resources.h",
103 "grit/settings_resources_map.cc", 114 "grit/settings_resources_map.cc",
104 "grit/settings_resources_map.h", 115 "grit/settings_resources_map.h",
105 "settings_resources.pak", 116 "settings_resources.pak",
106 ] 117 ]
107 output_dir = "$root_gen_dir/chrome" 118 output_dir = "$root_gen_dir/chrome"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 source = "sync_file_system_internals_resources.grd" 155 source = "sync_file_system_internals_resources.grd"
145 use_qualified_include = true 156 use_qualified_include = true
146 defines = chrome_grit_defines 157 defines = chrome_grit_defines
147 outputs = [ 158 outputs = [
148 "grit/sync_file_system_internals_resources.h", 159 "grit/sync_file_system_internals_resources.h",
149 "sync_file_system_internals_resources.pak", 160 "sync_file_system_internals_resources.pak",
150 ] 161 ]
151 output_dir = "$root_gen_dir/chrome" 162 output_dir = "$root_gen_dir/chrome"
152 } 163 }
153 } 164 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/BUILD.gn » ('j') | ui/webui/resources/html/i18n_template.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698