Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1029 "$resources_out_dir/InspectorBackendCommands.js", | 1029 "$resources_out_dir/InspectorBackendCommands.js", |
| 1030 ] | 1030 ] |
| 1031 | 1031 |
| 1032 args = rebase_path(inputs, root_build_dir) + [ | 1032 args = rebase_path(inputs, root_build_dir) + [ |
| 1033 "--output_js_dir", | 1033 "--output_js_dir", |
| 1034 rebase_path(resources_out_dir, root_build_dir), | 1034 rebase_path(resources_out_dir, root_build_dir), |
| 1035 ] | 1035 ] |
| 1036 } | 1036 } |
| 1037 | 1037 |
| 1038 action("build_release_devtools") { | 1038 action("build_release_devtools") { |
| 1039 script = "scripts/build_applications.py" | 1039 script = "scripts/build_release_applications.py" |
| 1040 | 1040 |
| 1041 deps = [ | 1041 deps = [ |
| 1042 ":frontend_protocol_sources", | 1042 ":frontend_protocol_sources", |
| 1043 ":supported_css_properties", | 1043 ":supported_css_properties", |
| 1044 ] | 1044 ] |
| 1045 | 1045 |
| 1046 helper_scripts = [ | 1046 helper_scripts = [ |
| 1047 "scripts/modular_build.py", | 1047 "scripts/modular_build.py", |
| 1048 "scripts/concatenate_application_code.py", | |
| 1049 "scripts/rjsmin.py", | 1048 "scripts/rjsmin.py", |
| 1050 ] | 1049 ] |
| 1051 | 1050 |
| 1052 inputs = helper_scripts + all_devtools_files + generated_scripts + [ | 1051 inputs = helper_scripts + all_devtools_files + generated_scripts + [ |
| 1053 "front_end/inspector.html", | 1052 "front_end/inspector.html", |
| 1054 "front_end/toolbox.html", | 1053 "front_end/toolbox.html", |
| 1055 ] | 1054 ] |
| 1056 | 1055 |
| 1057 outputs = generated_entry_files + generated_workers + | 1056 outputs = generated_entry_files + generated_workers + |
| 1058 generated_bundled_modules + generated_remote_modules | 1057 generated_bundled_modules + generated_remote_modules |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 1071 rebase_path(resources_out_dir, root_build_dir), | 1070 rebase_path(resources_out_dir, root_build_dir), |
| 1072 "--debug", | 1071 "--debug", |
| 1073 debug_mode, | 1072 debug_mode, |
| 1074 ] | 1073 ] |
| 1075 } | 1074 } |
| 1076 | 1075 |
| 1077 if (debug_devtools) { | 1076 if (debug_devtools) { |
| 1078 resources_out_debug_dir = "$root_out_dir/resources/inspector/debug" | 1077 resources_out_debug_dir = "$root_out_dir/resources/inspector/debug" |
| 1079 | 1078 |
| 1080 action("build_debug_devtools") { | 1079 action("build_debug_devtools") { |
| 1081 script = "scripts/build_applications.py" | 1080 script = "scripts/build_debug_applications.py" |
| 1082 | 1081 |
| 1083 deps = [ | 1082 deps = [ |
| 1084 ":copy_debug_files", | 1083 ":copy_generated_scripts", |
| 1085 ] | 1084 ] |
| 1086 | 1085 |
| 1087 inputs = all_devtools_files + [ | 1086 inputs = all_devtools_files + [ |
| 1088 "front_end/inspector.html", | 1087 "front_end/inspector.html", |
| 1089 "front_end/toolbox.html", | 1088 "front_end/toolbox.html", |
| 1090 ] | 1089 ] |
| 1091 | 1090 |
| 1092 outputs = [ | 1091 outputs = [ |
| 1093 "$resources_out_debug_dir/inspector.html", | 1092 "$resources_out_debug_dir/inspector.html", |
| 1094 "$resources_out_debug_dir/toolbox.html", | 1093 "$resources_out_debug_dir/toolbox.html", |
| 1095 ] | 1094 ] |
| 1096 | 1095 |
| 1097 debug_mode = "1" | 1096 debug_mode = "1" |
| 1098 | 1097 |
| 1099 args = [ | 1098 args = [ |
| 1100 "inspector", | 1099 "inspector", |
| 1101 "toolbox", | 1100 "toolbox", |
| 1102 "formatter_worker", | 1101 "formatter_worker", |
| 1103 "heap_snapshot_worker", | 1102 "heap_snapshot_worker", |
| 1104 "temp_storage_shared_worker", | 1103 "temp_storage_shared_worker", |
| 1105 "--input_path", | 1104 "--input_path", |
| 1106 rebase_path("front_end", root_build_dir), | 1105 rebase_path("front_end", root_build_dir), |
| 1107 "--output_path", | 1106 "--output_path", |
| 1108 rebase_path(resources_out_debug_dir, root_build_dir), | 1107 rebase_path(resources_out_debug_dir, root_build_dir), |
| 1109 "--debug", | 1108 "--debug", |
| 1110 debug_mode, | 1109 debug_mode, |
| 1111 ] | 1110 ] |
| 1112 } | 1111 } |
| 1113 | 1112 |
| 1114 group("copy_debug_files") { | |
| 1115 public_deps = [ | |
| 1116 ":copy_acorn_js_files", | |
| 1117 ":copy_codemirror_files", | |
| 1118 ":copy_emulated_devices_images_debug", | |
| 1119 ":copy_generated_scripts", | |
| 1120 ":copy_inspector_images_debug", | |
| 1121 ":copy_runtime_core", | |
| 1122 ] | |
| 1123 } | |
| 1124 | |
| 1125 copy("copy_runtime_core") { | |
|
pfeldman
2016/09/14 00:22:15
Where did these go?
chenwilliam
2016/09/14 01:07:53
In the DebugBuilder, rather than parsing through t
| |
| 1126 sources = devtools_core_base_files | |
| 1127 outputs = [ | |
| 1128 "$resources_out_debug_dir/{{source_file_part}}", | |
| 1129 ] | |
| 1130 } | |
| 1131 | |
| 1132 copy("copy_acorn_js_files") { | |
| 1133 sources = devtools_acorn_files | |
| 1134 outputs = [ | |
| 1135 "$resources_out_debug_dir/acorn/{{source_file_part}}", | |
| 1136 ] | |
| 1137 } | |
| 1138 | |
| 1139 copy("copy_codemirror_files") { | |
| 1140 sources = devtools_cm_js_files + devtools_cm_css_files | |
| 1141 outputs = [ | |
| 1142 "$resources_out_debug_dir/cm/{{source_file_part}}", | |
| 1143 ] | |
| 1144 } | |
| 1145 | |
| 1146 copy("copy_generated_scripts") { | 1113 copy("copy_generated_scripts") { |
| 1147 deps = [ | 1114 deps = [ |
| 1148 ":frontend_protocol_sources", | 1115 ":frontend_protocol_sources", |
| 1149 ":supported_css_properties", | 1116 ":supported_css_properties", |
| 1150 ] | 1117 ] |
| 1151 sources = generated_scripts | 1118 sources = generated_scripts |
| 1152 outputs = [ | 1119 outputs = [ |
| 1153 "$resources_out_debug_dir/{{source_file_part}}", | 1120 "$resources_out_debug_dir/{{source_file_part}}", |
| 1154 ] | 1121 ] |
| 1155 } | 1122 } |
| 1156 copy("copy_inspector_images_debug") { | |
| 1157 sources = devtools_image_files | |
| 1158 outputs = [ | |
| 1159 "$resources_out_debug_dir/Images/{{source_file_part}}", | |
| 1160 ] | |
| 1161 } | |
| 1162 | |
| 1163 copy("copy_emulated_devices_images_debug") { | |
| 1164 sources = devtools_emulated_devices_images | |
| 1165 outputs = [ | |
| 1166 "$resources_out_debug_dir/emulated_devices/{{source_file_part}}", | |
| 1167 ] | |
| 1168 } | |
| 1169 } | 1123 } |
| OLD | NEW |