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

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

Issue 2746033005: MD Settings: Separate code to be loaded lazily to its own lazy_load.html (Closed)
Patch Set: Fix crisper output. Created 3 years, 9 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 | « no previous file | chrome/browser/resources/settings/basic_page/basic_page.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import("../vulcanize.gni") 1 import("../vulcanize.gni")
2 import("//tools/grit/grit_rule.gni") 2 import("//tools/grit/grit_rule.gni")
3 import("//chrome/common/features.gni") 3 import("//chrome/common/features.gni")
4 4
5 vulcanized_unbuilt = "vulcanized.unbuilt.html" 5 app_unbuilt = "vulcanized.unbuilt.html"
6 lazy_load_unbuilt = "lazy_load.vulcanized.unbuilt.html"
6 settings_pak_file = "settings_resources.pak" 7 settings_pak_file = "settings_resources.pak"
7 unpak_folder = "settings_resources.unpak" 8 unpak_folder = "settings_resources.unpak"
8 9
9 vulcanize("vulcanize") { 10 vulcanize("vulcanize_app") {
10 host = "md-settings" 11 host = "md-settings"
11 html_in_file = "settings.html" 12 html_in_file = "settings.html"
12 html_out_file = vulcanized_unbuilt 13 html_out_file = app_unbuilt
13 insert_in_head = "<base href=\"chrome://\$i18n{hostname}\">" 14 insert_in_head = "<base href=\"chrome://\$i18n{hostname}\">"
14 input = rebase_path("$target_gen_dir/$unpak_folder", root_build_dir) 15 input = rebase_path("$target_gen_dir/$unpak_folder", root_build_dir)
15 js_out_file = "crisper.js" 16 js_out_file = "crisper.js"
16 17
17 deps = [ 18 deps = [
18 ":unpak", 19 ":unpak",
19 ] 20 ]
20 } 21 }
21 22
23 vulcanize("vulcanize_lazy_load") {
24 host = "md-settings"
25 html_in_file = "lazy_load.html"
26 html_out_file = lazy_load_unbuilt
27 insert_in_head = "<base href=\"chrome://\$i18n{hostname}\">"
28 input = rebase_path("$target_gen_dir/$unpak_folder", root_build_dir)
29 js_out_file = "lazy_load.crisper.js"
30
31 excludes = [ "/settings.html" ]
32
33 deps = [
34 ":unpak",
35 ]
36 }
37
22 unpak("unpak") { 38 unpak("unpak") {
23 pak_file = settings_pak_file 39 pak_file = settings_pak_file
24 out_folder = unpak_folder 40 out_folder = unpak_folder
25 41
26 deps = [ 42 deps = [
27 ":flattened_resources", 43 ":flattened_resources",
28 ] 44 ]
29 } 45 }
30 46
31 polymer_css_build("build") { 47 polymer_css_build("build") {
32 input_files = [ vulcanized_unbuilt ] 48 input_files = [
33 output_files = [ "vulcanized.html" ] 49 app_unbuilt,
50 lazy_load_unbuilt,
51 ]
52 output_files = [
53 "vulcanized.html",
54 "lazy_load.vulcanized.html",
55 ]
34 deps = [ 56 deps = [
35 ":vulcanize", 57 ":vulcanize_app",
58 ":vulcanize_lazy_load",
36 ] 59 ]
37 } 60 }
38 61
39 grit("flattened_resources") { 62 grit("flattened_resources") {
40 source = "settings_resources.grd" 63 source = "settings_resources.grd"
41 defines = chrome_grit_defines 64 defines = chrome_grit_defines
42 outputs = [ 65 outputs = [
43 "grit/settings_resources.h", 66 "grit/settings_resources.h",
44 "grit/settings_resources_map.cc", 67 "grit/settings_resources_map.cc",
45 "grit/settings_resources_map.h", 68 "grit/settings_resources_map.h",
46 settings_pak_file, 69 settings_pak_file,
47 ] 70 ]
48 output_dir = "$root_gen_dir/chrome/browser/resources/settings" 71 output_dir = "$root_gen_dir/chrome/browser/resources/settings"
49 } 72 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/basic_page/basic_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698