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