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

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

Issue 2464463002: Revert of DevTools: clean up scripts folder (Closed)
Patch Set: Created 4 years, 1 month 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/features.gni") 5 import("//build/config/features.gni")
6 import("//third_party/WebKit/Source/core/core.gni") 6 import("//third_party/WebKit/Source/core/core.gni")
7 7
8 devtools_embedder_scripts = [ 8 devtools_embedder_scripts = [
9 "front_end/devtools.js", 9 "front_end/devtools.js",
10 "front_end/Tests.js", 10 "front_end/Tests.js",
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 } 996 }
997 997
998 copy("copy_emulated_devices_images") { 998 copy("copy_emulated_devices_images") {
999 sources = devtools_emulated_devices_images 999 sources = devtools_emulated_devices_images
1000 outputs = [ 1000 outputs = [
1001 "$resources_out_dir/emulated_devices/{{source_file_part}}", 1001 "$resources_out_dir/emulated_devices/{{source_file_part}}",
1002 ] 1002 ]
1003 } 1003 }
1004 1004
1005 action("generate_devtools_grd") { 1005 action("generate_devtools_grd") {
1006 script = "scripts/build/generate_devtools_grd.py" 1006 script = "scripts/generate_devtools_grd.py"
1007 1007
1008 deps = [ 1008 deps = [
1009 ":devtools_frontend_resources", 1009 ":devtools_frontend_resources",
1010 ] 1010 ]
1011 inputs = devtools_image_files + all_devtools_files 1011 inputs = devtools_image_files + all_devtools_files
1012 inputs += devtools_embedder_scripts 1012 inputs += devtools_embedder_scripts
1013 1013
1014 generated_files = 1014 generated_files =
1015 generated_entry_files + generated_workers + generated_bundled_modules + 1015 generated_entry_files + generated_workers + generated_bundled_modules +
1016 [ "$resources_out_dir/devtools_extension_api.js" ] 1016 [ "$resources_out_dir/devtools_extension_api.js" ]
(...skipping 19 matching lines...) Expand all
1036 rebase_path(relative_path_dirs, root_build_dir) + 1036 rebase_path(relative_path_dirs, root_build_dir) +
1037 [ 1037 [
1038 "--images", 1038 "--images",
1039 rebase_path(images_path, root_build_dir), 1039 rebase_path(images_path, root_build_dir),
1040 "--output", 1040 "--output",
1041 rebase_path(outfile, root_build_dir), 1041 rebase_path(outfile, root_build_dir),
1042 ] 1042 ]
1043 } 1043 }
1044 1044
1045 action("devtools_extension_api") { 1045 action("devtools_extension_api") {
1046 script = "scripts/build/generate_devtools_extension_api.py" 1046 script = "scripts/generate_devtools_extension_api.py"
1047 1047
1048 inputs = devtools_extension_api_files 1048 inputs = devtools_extension_api_files
1049 outputs = [ 1049 outputs = [
1050 "$resources_out_dir/devtools_extension_api.js", 1050 "$resources_out_dir/devtools_extension_api.js",
1051 ] 1051 ]
1052 1052
1053 args = rebase_path(outputs, root_build_dir) + 1053 args = rebase_path(outputs, root_build_dir) +
1054 rebase_path(devtools_extension_api_files, root_build_dir) 1054 rebase_path(devtools_extension_api_files, root_build_dir)
1055 } 1055 }
1056 1056
1057 action("supported_css_properties") { 1057 action("supported_css_properties") {
1058 script = "scripts/build/generate_supported_css.py" 1058 script = "scripts/generate_supported_css.py"
1059 1059
1060 inputs = [ 1060 inputs = [
1061 "../core/css/CSSProperties.in", 1061 "../core/css/CSSProperties.in",
1062 ] 1062 ]
1063 1063
1064 outputs = [ 1064 outputs = [
1065 "$resources_out_dir/SupportedCSSProperties.js", 1065 "$resources_out_dir/SupportedCSSProperties.js",
1066 ] 1066 ]
1067 1067
1068 args = 1068 args =
1069 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) 1069 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir)
1070 } 1070 }
1071 1071
1072 action("frontend_protocol_sources") { 1072 action("frontend_protocol_sources") {
1073 script = "scripts/build/code_generator_frontend.py" 1073 script = "scripts/CodeGeneratorFrontend.py"
1074 deps = [ 1074 deps = [
1075 "../core/inspector:protocol_version", 1075 "../core/inspector:protocol_version",
1076 ] 1076 ]
1077 inputs = [ 1077 inputs = [
1078 "$blink_core_output_dir/inspector/protocol.json", 1078 "$blink_core_output_dir/inspector/protocol.json",
1079 ] 1079 ]
1080 outputs = [ 1080 outputs = [
1081 "$resources_out_dir/InspectorBackendCommands.js", 1081 "$resources_out_dir/InspectorBackendCommands.js",
1082 ] 1082 ]
1083 1083
1084 args = rebase_path(inputs, root_build_dir) + [ 1084 args = rebase_path(inputs, root_build_dir) + [
1085 "--output_js_dir", 1085 "--output_js_dir",
1086 rebase_path(resources_out_dir, root_build_dir), 1086 rebase_path(resources_out_dir, root_build_dir),
1087 ] 1087 ]
1088 } 1088 }
1089 1089
1090 action("build_release_devtools") { 1090 action("build_release_devtools") {
1091 script = "scripts/build/build_release_applications.py" 1091 script = "scripts/build_release_applications.py"
1092 1092
1093 deps = [ 1093 deps = [
1094 ":frontend_protocol_sources", 1094 ":frontend_protocol_sources",
1095 ":supported_css_properties", 1095 ":supported_css_properties",
1096 ] 1096 ]
1097 1097
1098 helper_scripts = [ 1098 helper_scripts = [
1099 "scripts/build/modular_build.py", 1099 "scripts/modular_build.py",
1100 "scripts/build/rjsmin.py", 1100 "scripts/rjsmin.py",
1101 ] 1101 ]
1102 1102
1103 inputs = helper_scripts + all_devtools_files + generated_scripts + [ 1103 inputs = helper_scripts + all_devtools_files + generated_scripts + [
1104 "front_end/inspector.html", 1104 "front_end/inspector.html",
1105 "front_end/toolbox.html", 1105 "front_end/toolbox.html",
1106 ] 1106 ]
1107 1107
1108 outputs = generated_entry_files + generated_workers + 1108 outputs = generated_entry_files + generated_workers +
1109 generated_bundled_modules + generated_remote_modules 1109 generated_bundled_modules + generated_remote_modules
1110 1110
1111 args = devtools_applications + [ 1111 args = devtools_applications + [
1112 "--input_path", 1112 "--input_path",
1113 rebase_path("front_end", root_build_dir), 1113 rebase_path("front_end", root_build_dir),
1114 "--output_path", 1114 "--output_path",
1115 rebase_path(resources_out_dir, root_build_dir), 1115 rebase_path(resources_out_dir, root_build_dir),
1116 ] 1116 ]
1117 } 1117 }
1118 1118
1119 if (debug_devtools) { 1119 if (debug_devtools) {
1120 resources_out_debug_dir = "$root_out_dir/resources/inspector/debug" 1120 resources_out_debug_dir = "$root_out_dir/resources/inspector/debug"
1121 1121
1122 action("build_debug_devtools") { 1122 action("build_debug_devtools") {
1123 script = "scripts/build/build_debug_applications.py" 1123 script = "scripts/build_debug_applications.py"
1124 1124
1125 deps = [ 1125 deps = [
1126 ":copy_generated_scripts", 1126 ":copy_generated_scripts",
1127 ] 1127 ]
1128 1128
1129 inputs = all_devtools_files + [ 1129 inputs = all_devtools_files + [
1130 "front_end/inspector.html", 1130 "front_end/inspector.html",
1131 "front_end/toolbox.html", 1131 "front_end/toolbox.html",
1132 ] 1132 ]
1133 1133
(...skipping 14 matching lines...) Expand all
1148 deps = [ 1148 deps = [
1149 ":frontend_protocol_sources", 1149 ":frontend_protocol_sources",
1150 ":supported_css_properties", 1150 ":supported_css_properties",
1151 ] 1151 ]
1152 sources = generated_scripts 1152 sources = generated_scripts
1153 outputs = [ 1153 outputs = [
1154 "$resources_out_debug_dir/{{source_file_part}}", 1154 "$resources_out_debug_dir/{{source_file_part}}",
1155 ] 1155 ]
1156 } 1156 }
1157 } 1157 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/run_jsbundler.gni ('k') | third_party/WebKit/Source/devtools/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698