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

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

Issue 2354683002: DevTools: clean up BUILD.gn (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 ] 900 ]
901 901
902 generated_remote_modules = [ 902 generated_remote_modules = [
903 "$resources_out_dir/accessibility/accessibility_module.js", 903 "$resources_out_dir/accessibility/accessibility_module.js",
904 "$resources_out_dir/cm_modes/cm_modes_module.js", 904 "$resources_out_dir/cm_modes/cm_modes_module.js",
905 "$resources_out_dir/emulated_devices/emulated_devices_module.js", 905 "$resources_out_dir/emulated_devices/emulated_devices_module.js",
906 "$resources_out_dir/gonzales/gonzales_module.js", 906 "$resources_out_dir/gonzales/gonzales_module.js",
907 "$resources_out_dir/screencast/screencast_module.js", 907 "$resources_out_dir/screencast/screencast_module.js",
908 ] 908 ]
909 909
910 devtools_applications = [
911 "inspector",
912 "toolbox",
913 "formatter_worker",
914 "heap_snapshot_worker",
915 "temp_storage_shared_worker",
916 ]
917
910 #------------------------------------------------------------------------------- 918 #-------------------------------------------------------------------------------
911 919
912 visibility = [ "//third_party/WebKit/*" ] 920 visibility = [ "//third_party/WebKit/*" ]
913 921
914 group("devtools_frontend_resources") { 922 group("devtools_frontend_resources") {
915 public_deps = [ 923 public_deps = [
916 ":build_release_devtools", 924 ":build_release_devtools",
917 ":copy_embedder_scripts", 925 ":copy_embedder_scripts",
918 ":copy_emulated_devices_images", 926 ":copy_emulated_devices_images",
919 ":copy_inspector_images", 927 ":copy_inspector_images",
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 ] 1054 ]
1047 1055
1048 inputs = helper_scripts + all_devtools_files + generated_scripts + [ 1056 inputs = helper_scripts + all_devtools_files + generated_scripts + [
1049 "front_end/inspector.html", 1057 "front_end/inspector.html",
1050 "front_end/toolbox.html", 1058 "front_end/toolbox.html",
1051 ] 1059 ]
1052 1060
1053 outputs = generated_entry_files + generated_workers + 1061 outputs = generated_entry_files + generated_workers +
1054 generated_bundled_modules + generated_remote_modules 1062 generated_bundled_modules + generated_remote_modules
1055 1063
1056 debug_mode = "0" 1064 args = devtools_applications + [
1057 1065 "--input_path",
1058 args = [ 1066 rebase_path("front_end", root_build_dir),
1059 "inspector", 1067 "--output_path",
1060 "toolbox", 1068 rebase_path(resources_out_dir, root_build_dir),
1061 "formatter_worker", 1069 ]
1062 "heap_snapshot_worker",
1063 "temp_storage_shared_worker",
1064 "--input_path",
1065 rebase_path("front_end", root_build_dir),
1066 "--output_path",
1067 rebase_path(resources_out_dir, root_build_dir),
1068 "--debug",
1069 debug_mode,
1070 ]
1071 } 1070 }
1072 1071
1073 if (debug_devtools) { 1072 if (debug_devtools) {
1074 resources_out_debug_dir = "$root_out_dir/resources/inspector/debug" 1073 resources_out_debug_dir = "$root_out_dir/resources/inspector/debug"
1075 1074
1076 action("build_debug_devtools") { 1075 action("build_debug_devtools") {
1077 script = "scripts/build_debug_applications.py" 1076 script = "scripts/build_debug_applications.py"
1078 1077
1079 deps = [ 1078 deps = [
1080 ":copy_generated_scripts", 1079 ":copy_generated_scripts",
1081 ] 1080 ]
1082 1081
1083 inputs = all_devtools_files + [ 1082 inputs = all_devtools_files + [
1084 "front_end/inspector.html", 1083 "front_end/inspector.html",
1085 "front_end/toolbox.html", 1084 "front_end/toolbox.html",
1086 ] 1085 ]
1087 1086
1088 outputs = [ 1087 outputs = [
1089 "$resources_out_debug_dir/inspector.html", 1088 "$resources_out_debug_dir/inspector.html",
1090 "$resources_out_debug_dir/toolbox.html", 1089 "$resources_out_debug_dir/toolbox.html",
1091 ] 1090 ]
1092 1091
1093 debug_mode = "1" 1092 args = devtools_applications + [
1094 1093 "--input_path",
1095 args = [ 1094 rebase_path("front_end", root_build_dir),
1096 "inspector", 1095 "--output_path",
1097 "toolbox", 1096 rebase_path(resources_out_debug_dir, root_build_dir),
1098 "formatter_worker", 1097 ]
1099 "heap_snapshot_worker",
1100 "temp_storage_shared_worker",
1101 "--input_path",
1102 rebase_path("front_end", root_build_dir),
1103 "--output_path",
1104 rebase_path(resources_out_debug_dir, root_build_dir),
1105 "--debug",
1106 debug_mode,
1107 ]
1108 } 1098 }
1109 1099
1110 copy("copy_generated_scripts") { 1100 copy("copy_generated_scripts") {
1111 deps = [ 1101 deps = [
1112 ":frontend_protocol_sources", 1102 ":frontend_protocol_sources",
1113 ":supported_css_properties", 1103 ":supported_css_properties",
1114 ] 1104 ]
1115 sources = generated_scripts 1105 sources = generated_scripts
1116 outputs = [ 1106 outputs = [
1117 "$resources_out_debug_dir/{{source_file_part}}", 1107 "$resources_out_debug_dir/{{source_file_part}}",
1118 ] 1108 ]
1119 } 1109 }
1120 } 1110 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698