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 import("//chrome/version.gni") | |
|
brettw
2016/09/13 22:43:47
These should be sorted like we do in C++.
luoe
2016/09/14 21:16:05
Done.
| |
| 7 | 8 |
| 8 devtools_embedder_scripts = [ | 9 devtools_embedder_scripts = [ |
| 9 "front_end/devtools.js", | 10 "front_end/devtools.js", |
| 10 "front_end/Tests.js", | 11 "front_end/Tests.js", |
| 11 ] | 12 ] |
| 12 devtools_core_base_files = [ | 13 devtools_core_base_files = [ |
| 13 "front_end/inspector.js", | 14 "front_end/inspector.js", |
| 14 "front_end/inspector.json", | 15 "front_end/inspector.json", |
| 15 "front_end/formatter_worker.js", | 16 "front_end/formatter_worker.js", |
| 16 "front_end/formatter_worker.json", | 17 "front_end/formatter_worker.json", |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 853 devtools_core_files + devtools_module_json_files + | 854 devtools_core_files + devtools_module_json_files + |
| 854 devtools_modules_js_files + devtools_acorn_files | 855 devtools_modules_js_files + devtools_acorn_files |
| 855 | 856 |
| 856 resources_out_dir = "$root_out_dir/resources/inspector" | 857 resources_out_dir = "$root_out_dir/resources/inspector" |
| 857 | 858 |
| 858 generated_scripts = [ | 859 generated_scripts = [ |
| 859 "$resources_out_dir/InspectorBackendCommands.js", | 860 "$resources_out_dir/InspectorBackendCommands.js", |
| 860 "$resources_out_dir/SupportedCSSProperties.js", | 861 "$resources_out_dir/SupportedCSSProperties.js", |
| 861 ] | 862 ] |
| 862 | 863 |
| 864 generated_version_info_script = | |
| 865 [ "$resources_out_dir/CurrentBrowserVersion.js" ] | |
| 866 | |
| 863 generated_entry_files = [ | 867 generated_entry_files = [ |
| 864 "$resources_out_dir/inspector.html", | 868 "$resources_out_dir/inspector.html", |
| 865 "$resources_out_dir/inspector.js", | 869 "$resources_out_dir/inspector.js", |
| 866 "$resources_out_dir/toolbox.html", | 870 "$resources_out_dir/toolbox.html", |
| 867 "$resources_out_dir/toolbox.js", | 871 "$resources_out_dir/toolbox.js", |
| 868 ] | 872 ] |
| 869 | 873 |
| 870 generated_workers = [ | 874 generated_workers = [ |
| 871 "$resources_out_dir/formatter_worker.js", | 875 "$resources_out_dir/formatter_worker.js", |
| 872 "$resources_out_dir/heap_snapshot_worker.js", | 876 "$resources_out_dir/heap_snapshot_worker.js", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 911 visibility = [ "//third_party/WebKit/*" ] | 915 visibility = [ "//third_party/WebKit/*" ] |
| 912 | 916 |
| 913 group("devtools_frontend_resources") { | 917 group("devtools_frontend_resources") { |
| 914 public_deps = [ | 918 public_deps = [ |
| 915 ":build_release_devtools", | 919 ":build_release_devtools", |
| 916 ":copy_embedder_scripts", | 920 ":copy_embedder_scripts", |
| 917 ":copy_emulated_devices_images", | 921 ":copy_emulated_devices_images", |
| 918 ":copy_inspector_images", | 922 ":copy_inspector_images", |
| 919 ":devtools_extension_api", | 923 ":devtools_extension_api", |
| 920 ":frontend_protocol_sources", | 924 ":frontend_protocol_sources", |
| 925 ":generate_version_info", | |
| 921 ":supported_css_properties", | 926 ":supported_css_properties", |
| 922 ] | 927 ] |
| 923 if (debug_devtools) { | 928 if (debug_devtools) { |
| 924 public_deps += [ ":build_debug_devtools" ] | 929 public_deps += [ ":build_debug_devtools" ] |
| 925 } | 930 } |
| 926 } | 931 } |
| 927 | 932 |
| 928 copy("copy_embedder_scripts") { | 933 copy("copy_embedder_scripts") { |
| 929 sources = devtools_embedder_scripts | 934 sources = devtools_embedder_scripts |
| 930 outputs = [ | 935 outputs = [ |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1024 outputs = [ | 1029 outputs = [ |
| 1025 "$resources_out_dir/InspectorBackendCommands.js", | 1030 "$resources_out_dir/InspectorBackendCommands.js", |
| 1026 ] | 1031 ] |
| 1027 | 1032 |
| 1028 args = rebase_path(inputs, root_build_dir) + [ | 1033 args = rebase_path(inputs, root_build_dir) + [ |
| 1029 "--output_js_dir", | 1034 "--output_js_dir", |
| 1030 rebase_path(resources_out_dir, root_build_dir), | 1035 rebase_path(resources_out_dir, root_build_dir), |
| 1031 ] | 1036 ] |
| 1032 } | 1037 } |
| 1033 | 1038 |
| 1039 process_version("generate_version_info") { | |
| 1040 template_file = "scripts/CurrentBrowserVersion.js" | |
| 1041 output = "$resources_out_dir/CurrentBrowserVersion.js" | |
| 1042 process_only = true | |
| 1043 } | |
| 1044 | |
| 1034 action("build_release_devtools") { | 1045 action("build_release_devtools") { |
| 1035 script = "scripts/build_applications.py" | 1046 script = "scripts/build_applications.py" |
| 1036 | 1047 |
| 1037 deps = [ | 1048 deps = [ |
| 1038 ":frontend_protocol_sources", | 1049 ":frontend_protocol_sources", |
| 1050 ":generate_version_info", | |
| 1039 ":supported_css_properties", | 1051 ":supported_css_properties", |
| 1040 ] | 1052 ] |
| 1041 | 1053 |
| 1042 helper_scripts = [ | 1054 helper_scripts = [ |
| 1043 "scripts/modular_build.py", | 1055 "scripts/modular_build.py", |
| 1044 "scripts/concatenate_application_code.py", | 1056 "scripts/concatenate_application_code.py", |
| 1045 "scripts/rjsmin.py", | 1057 "scripts/rjsmin.py", |
| 1046 ] | 1058 ] |
| 1047 | 1059 |
| 1048 inputs = helper_scripts + all_devtools_files + generated_scripts + [ | 1060 inputs = helper_scripts + all_devtools_files + generated_scripts + |
| 1061 generated_version_info_script + | |
| 1062 [ | |
| 1049 "front_end/inspector.html", | 1063 "front_end/inspector.html", |
| 1050 "front_end/toolbox.html", | 1064 "front_end/toolbox.html", |
| 1051 ] | 1065 ] |
| 1052 | 1066 |
| 1053 outputs = generated_entry_files + generated_workers + | 1067 outputs = generated_entry_files + generated_workers + |
| 1054 generated_bundled_modules + generated_remote_modules | 1068 generated_bundled_modules + generated_remote_modules |
| 1055 | 1069 |
| 1056 debug_mode = "0" | 1070 debug_mode = "0" |
| 1057 | 1071 |
| 1058 args = [ | 1072 args = [ |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1108 } | 1122 } |
| 1109 | 1123 |
| 1110 group("copy_debug_files") { | 1124 group("copy_debug_files") { |
| 1111 public_deps = [ | 1125 public_deps = [ |
| 1112 ":copy_acorn_js_files", | 1126 ":copy_acorn_js_files", |
| 1113 ":copy_codemirror_files", | 1127 ":copy_codemirror_files", |
| 1114 ":copy_emulated_devices_images_debug", | 1128 ":copy_emulated_devices_images_debug", |
| 1115 ":copy_generated_scripts", | 1129 ":copy_generated_scripts", |
| 1116 ":copy_inspector_images_debug", | 1130 ":copy_inspector_images_debug", |
| 1117 ":copy_runtime_core", | 1131 ":copy_runtime_core", |
| 1132 ":generate_version_info_debug", | |
| 1118 ] | 1133 ] |
| 1119 } | 1134 } |
| 1120 | 1135 |
| 1121 copy("copy_runtime_core") { | 1136 copy("copy_runtime_core") { |
| 1122 sources = devtools_core_base_files | 1137 sources = devtools_core_base_files |
| 1123 outputs = [ | 1138 outputs = [ |
| 1124 "$resources_out_debug_dir/{{source_file_part}}", | 1139 "$resources_out_debug_dir/{{source_file_part}}", |
| 1125 ] | 1140 ] |
| 1126 } | 1141 } |
| 1127 | 1142 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 1142 copy("copy_generated_scripts") { | 1157 copy("copy_generated_scripts") { |
| 1143 deps = [ | 1158 deps = [ |
| 1144 ":frontend_protocol_sources", | 1159 ":frontend_protocol_sources", |
| 1145 ":supported_css_properties", | 1160 ":supported_css_properties", |
| 1146 ] | 1161 ] |
| 1147 sources = generated_scripts | 1162 sources = generated_scripts |
| 1148 outputs = [ | 1163 outputs = [ |
| 1149 "$resources_out_debug_dir/{{source_file_part}}", | 1164 "$resources_out_debug_dir/{{source_file_part}}", |
| 1150 ] | 1165 ] |
| 1151 } | 1166 } |
| 1167 | |
| 1152 copy("copy_inspector_images_debug") { | 1168 copy("copy_inspector_images_debug") { |
| 1153 sources = devtools_image_files | 1169 sources = devtools_image_files |
| 1154 outputs = [ | 1170 outputs = [ |
| 1155 "$resources_out_debug_dir/Images/{{source_file_part}}", | 1171 "$resources_out_debug_dir/Images/{{source_file_part}}", |
| 1156 ] | 1172 ] |
| 1157 } | 1173 } |
| 1158 | 1174 |
| 1159 copy("copy_emulated_devices_images_debug") { | 1175 copy("copy_emulated_devices_images_debug") { |
| 1160 sources = devtools_emulated_devices_images | 1176 sources = devtools_emulated_devices_images |
| 1161 outputs = [ | 1177 outputs = [ |
| 1162 "$resources_out_debug_dir/emulated_devices/{{source_file_part}}", | 1178 "$resources_out_debug_dir/emulated_devices/{{source_file_part}}", |
| 1163 ] | 1179 ] |
| 1164 } | 1180 } |
| 1181 | |
| 1182 process_version("generate_version_info_debug") { | |
| 1183 template_file = "scripts/CurrentBrowserVersion.js" | |
| 1184 output = "$resources_out_debug_dir/CurrentBrowserVersion.js" | |
| 1185 process_only = true | |
| 1186 } | |
| 1165 } | 1187 } |
| OLD | NEW |