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

Side by Side Diff: third_party/WebKit/Source/core/BUILD.gn

Issue 2088123002: Minimize bundled user-agent CSS: html.css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perf try 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
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("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//third_party/WebKit/Source/bindings/bindings.gni") 7 import("//third_party/WebKit/Source/bindings/bindings.gni")
8 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni") 8 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni")
9 import("//third_party/WebKit/Source/bindings/modules/modules.gni") 9 import("//third_party/WebKit/Source/bindings/modules/modules.gni")
10 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") 10 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni")
11 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") 11 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni")
12 import("//third_party/WebKit/Source/config.gni") 12 import("//third_party/WebKit/Source/config.gni")
13 import("//third_party/WebKit/Source/core/core.gni") 13 import("//third_party/WebKit/Source/core/core.gni")
14 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 14 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
15 import("//third_party/WebKit/Source/platform/platform_generated.gni") 15 import("//third_party/WebKit/Source/platform/platform_generated.gni")
16 16
17 visibility = [ "//third_party/WebKit/Source/*" ] 17 visibility = [
18 "//third_party/WebKit/Source/*",
19 "//third_party/WebKit/public/*",
esprehn 2016/06/27 05:17:31 Hmm this makes public capable of including core he
kouhei (in TOK) 2016/06/27 05:39:22 Agreed, but I'm not sure about the alternatives. T
20 ]
18 21
19 rel_blink_core_gen_dir = rebase_path(blink_core_output_dir, root_build_dir) 22 rel_blink_core_gen_dir = rebase_path(blink_core_output_dir, root_build_dir)
20 23
21 # Compute the optimization level. The GYP code sets "optimize: max" which sets 24 # Compute the optimization level. The GYP code sets "optimize: max" which sets
22 # speed-over-size optimization for official builds on Windows only. The GN's 25 # speed-over-size optimization for official builds on Windows only. The GN's
23 # build optimize_max config applies this optimization on all platforms, so 26 # build optimize_max config applies this optimization on all platforms, so
24 # compute how to modify the config list to duplicate the GYP behavior. 27 # compute how to modify the config list to duplicate the GYP behavior.
25 if (is_debug || !is_win || !is_official_build) { 28 if (is_debug || !is_win || !is_official_build) {
26 # NOP. 29 # NOP.
27 core_config_add = [] 30 core_config_add = []
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 "$blink_core_output_dir/PrivateScriptSourcesForTesting.h", 953 "$blink_core_output_dir/PrivateScriptSourcesForTesting.h",
951 ] 954 ]
952 955
953 args = [ "--for-testing" ] 956 args = [ "--for-testing" ]
954 args += rebase_path(outputs, root_build_dir) 957 args += rebase_path(outputs, root_build_dir)
955 args += rebase_path(inputs, root_build_dir) 958 args += rebase_path(inputs, root_build_dir)
956 959
957 deps = make_core_generated_deps 960 deps = make_core_generated_deps
958 } 961 }
959 962
963 action("make_minimized_css") {
964 script = "../build/scripts/minimize_css.py"
965
966 inputs = [
967 "css/html.css",
968 ]
969 outputs = [
970 "$blink_core_output_dir/html.css",
971 ]
972
973 args = [
974 "--output_dir",
975 rel_blink_core_gen_dir,
976 ]
977 args += rebase_path(inputs, root_build_dir)
978
979 deps = make_core_generated_deps
980 }
981
960 # "HTMLEntityTable" in make_core_generated from GYP. 982 # "HTMLEntityTable" in make_core_generated from GYP.
961 action("make_core_generated_html_entity_table") { 983 action("make_core_generated_html_entity_table") {
962 visibility = [] # Allow re-assignment of list. 984 visibility = [] # Allow re-assignment of list.
963 visibility = [ ":make_core_generated" ] 985 visibility = [ ":make_core_generated" ]
964 script = "html/parser/create-html-entity-table" 986 script = "html/parser/create-html-entity-table"
965 987
966 inputs = [ 988 inputs = [
967 "html/parser/HTMLEntityNames.in", 989 "html/parser/HTMLEntityNames.in",
968 ] 990 ]
969 outputs = [ 991 outputs = [
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 "$blink_core_output_dir/{{source_name_part}}.h", 1099 "$blink_core_output_dir/{{source_name_part}}.h",
1078 ] 1100 ]
1079 args = [ 1101 args = [
1080 "{{source}}", 1102 "{{source}}",
1081 rel_blink_core_gen_dir, 1103 rel_blink_core_gen_dir,
1082 bison_exe, 1104 bison_exe,
1083 ] 1105 ]
1084 1106
1085 deps = make_core_generated_deps 1107 deps = make_core_generated_deps
1086 } 1108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698