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

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: add unittest 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/*",
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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 "$blink_core_output_dir/PrivateScriptSourcesForTesting.h", 954 "$blink_core_output_dir/PrivateScriptSourcesForTesting.h",
952 ] 955 ]
953 956
954 args = [ "--for-testing" ] 957 args = [ "--for-testing" ]
955 args += rebase_path(outputs, root_build_dir) 958 args += rebase_path(outputs, root_build_dir)
956 args += rebase_path(inputs, root_build_dir) 959 args += rebase_path(inputs, root_build_dir)
957 960
958 deps = make_core_generated_deps 961 deps = make_core_generated_deps
959 } 962 }
960 963
964 action("make_minimized_css") {
965 script = "../build/scripts/minimize_css.py"
966
967 inputs = [
968 "css/html.css",
969 ]
970 outputs = [
971 "$blink_core_output_dir/html.css",
972 ]
973
974 args = [
975 "--output_dir",
976 rel_blink_core_gen_dir,
977 ]
978 args += rebase_path(inputs, root_build_dir)
979
980 deps = make_core_generated_deps
981 }
982
961 # "HTMLEntityTable" in make_core_generated from GYP. 983 # "HTMLEntityTable" in make_core_generated from GYP.
962 action("make_core_generated_html_entity_table") { 984 action("make_core_generated_html_entity_table") {
963 visibility = [] # Allow re-assignment of list. 985 visibility = [] # Allow re-assignment of list.
964 visibility = [ ":make_core_generated" ] 986 visibility = [ ":make_core_generated" ]
965 script = "html/parser/create-html-entity-table" 987 script = "html/parser/create-html-entity-table"
966 988
967 inputs = [ 989 inputs = [
968 "html/parser/HTMLEntityNames.in", 990 "html/parser/HTMLEntityNames.in",
969 ] 991 ]
970 outputs = [ 992 outputs = [
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 "$blink_core_output_dir/{{source_name_part}}.h", 1100 "$blink_core_output_dir/{{source_name_part}}.h",
1079 ] 1101 ]
1080 args = [ 1102 args = [
1081 "{{source}}", 1103 "{{source}}",
1082 rel_blink_core_gen_dir, 1104 rel_blink_core_gen_dir,
1083 bison_exe, 1105 bison_exe,
1084 ] 1106 ]
1085 1107
1086 deps = make_core_generated_deps 1108 deps = make_core_generated_deps
1087 } 1109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698