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

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

Issue 1157733004: [DevTools] Cleanup frontend-in-iframe support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/devtools.gyp » ('j') | 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 6
7 gypi_values = exec_script( 7 gypi_values = exec_script(
8 "//build/gypi_to_gn.py", 8 "//build/gypi_to_gn.py",
9 [ rebase_path("devtools.gypi") ], 9 [ rebase_path("devtools.gypi") ],
10 "scope", 10 "scope",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 resources_out_dir + "InspectorBackendCommands.js", 71 resources_out_dir + "InspectorBackendCommands.js",
72 resources_out_dir + "SupportedCSSProperties.js", 72 resources_out_dir + "SupportedCSSProperties.js",
73 ] 73 ]
74 74
75 #------------------------------------------------------------------------------- 75 #-------------------------------------------------------------------------------
76 76
77 visibility = [ "//third_party/WebKit/*" ] 77 visibility = [ "//third_party/WebKit/*" ]
78 78
79 group("devtools_frontend_resources") { 79 group("devtools_frontend_resources") {
80 deps = [ 80 deps = [
81 ":copy_devtools_html", 81 ":copy_compatibility_scripts",
82 ":copy_inspector_images", 82 ":copy_inspector_images",
83 ":devtools_extension_api", 83 ":devtools_extension_api",
84 ":frontend_protocol_sources", 84 ":frontend_protocol_sources",
85 ":supported_css_properties", 85 ":supported_css_properties",
86 ":build_applications", 86 ":build_applications",
87 ] 87 ]
88 88
89 if (!debug_devtools) { 89 if (!debug_devtools) {
90 # This overwrites application-specific core CSS (devtools.css), 90 # This overwrites application-specific core CSS (devtools.css),
91 # and thus should be guarded out in Debug builds. 91 # and thus should be guarded out in Debug builds.
92 deps += [ 92 deps += [
93 ":concatenated_inspector_css", 93 ":concatenated_inspector_css",
94 ":concatenated_toolbox_css", 94 ":concatenated_toolbox_css",
95 ] 95 ]
96 } 96 }
97 } 97 }
98 98
99 copy("copy_devtools_html") { 99 copy("copy_compatibility_scripts") {
100 sources = [ "front_end/devtools.html", "front_end/devtools.js" ] 100 sources = gypi_values.devtools_compatibility_scripts
101 outputs = [ resources_out_dir + "{{source_file_part}}" ] 101 outputs = [ resources_out_dir + "{{source_file_part}}" ]
102 } 102 }
103 103
104 copy("copy_inspector_images") { 104 copy("copy_inspector_images") {
105 sources = gypi_values.devtools_image_files 105 sources = gypi_values.devtools_image_files
106 outputs = [ resources_out_dir + "Images/{{source_file_part}}" ] 106 outputs = [ resources_out_dir + "Images/{{source_file_part}}" ]
107 } 107 }
108 108
109 action("generate_devtools_grd") { 109 action("generate_devtools_grd") {
110 script = "scripts/generate_devtools_grd.py" 110 script = "scripts/generate_devtools_grd.py"
111 111
112 deps = [ ":devtools_frontend_resources" ] 112 deps = [ ":devtools_frontend_resources" ]
113 static_files_list = "$target_gen_dir/devtools_static_grd_files.tmp" 113 static_files_list = "$target_gen_dir/devtools_static_grd_files.tmp"
114 inputs = gypi_values.devtools_image_files + all_devtools_files + [ 114 inputs = gypi_values.devtools_image_files + all_devtools_files
115 static_files_list 115 inputs += gypi_values.devtools_compatibility_scripts
116 ] 116 inputs += [ static_files_list ]
117 117
118 static_files = [] 118 static_files = []
119 119
120 if (debug_devtools) { 120 if (debug_devtools) {
121 # Debug: all files are picked as-is. 121 # Debug: all files are picked as-is.
122 generated_files = generated_scripts + [ 122 generated_files = generated_scripts + [
123 resources_out_dir + "devtools.html",
124 resources_out_dir + "devtools.js",
125 resources_out_dir + "inspector.html", 123 resources_out_dir + "inspector.html",
126 resources_out_dir + "toolbox.html", 124 resources_out_dir + "toolbox.html",
127 ] 125 ]
128 static_files += all_devtools_files + [ "front_end/Runtime.js" ] 126 static_files += all_devtools_files + [ "front_end/Runtime.js" ]
129 } else { 127 } else {
130 # Release: pick compiled non-remote files and lazy-loaded CSS. 128 # Release: pick compiled non-remote files and lazy-loaded CSS.
131 # TODO(dgozman): remove remote modules from here once experiment is over. 129 # TODO(dgozman): remove remote modules from here once experiment is over.
132 generated_files = [ 130 generated_files = [
133 resources_out_dir + "devtools.html",
134 resources_out_dir + "devtools.js",
135 resources_out_dir + "inspector.css", 131 resources_out_dir + "inspector.css",
136 resources_out_dir + "inspector.html", 132 resources_out_dir + "inspector.html",
137 resources_out_dir + "inspector.js", 133 resources_out_dir + "inspector.js",
138 resources_out_dir + "toolbox.css", 134 resources_out_dir + "toolbox.css",
139 resources_out_dir + "toolbox.html", 135 resources_out_dir + "toolbox.html",
140 resources_out_dir + "toolbox.js", 136 resources_out_dir + "toolbox.js",
141 resources_out_dir + "accessibility_module.js", 137 resources_out_dir + "accessibility_module.js",
142 resources_out_dir + "audits_module.js", 138 resources_out_dir + "audits_module.js",
143 resources_out_dir + "cm_modes_module.js", 139 resources_out_dir + "cm_modes_module.js",
144 resources_out_dir + "components_lazy_module.js", 140 resources_out_dir + "components_lazy_module.js",
(...skipping 25 matching lines...) Expand all
170 166
171 outfile = "$root_gen_dir/devtools/devtools_resources.grd" 167 outfile = "$root_gen_dir/devtools/devtools_resources.grd"
172 outputs = [ outfile ] 168 outputs = [ outfile ]
173 169
174 relative_path_dirs = [ 170 relative_path_dirs = [
175 resources_out_dir_no_slash, 171 resources_out_dir_no_slash,
176 "front_end", 172 "front_end",
177 ] 173 ]
178 174
179 args = rebase_path(generated_files, root_build_dir) + 175 args = rebase_path(generated_files, root_build_dir) +
180 rebase_path(generated_files, root_build_dir) + [ 176 rebase_path(generated_files, root_build_dir) +
177 rebase_path(gypi_values.devtools_compatibility_scripts, root_build_dir) + [
181 "--static_files_list", rebase_path(static_files_list, root_build_dir), 178 "--static_files_list", rebase_path(static_files_list, root_build_dir),
182 "--relative_path_dirs" ] + 179 "--relative_path_dirs" ] +
183 rebase_path(relative_path_dirs, root_build_dir) + [ 180 rebase_path(relative_path_dirs, root_build_dir) + [
184 "--images", rebase_path(images_path, root_build_dir), 181 "--images", rebase_path(images_path, root_build_dir),
185 "--output", rebase_path(outfile, root_build_dir), 182 "--output", rebase_path(outfile, root_build_dir),
186 ] 183 ]
187 } 184 }
188 185
189 action("devtools_extension_api") { 186 action("devtools_extension_api") {
190 script = "scripts/generate_devtools_extension_api.py" 187 script = "scripts/generate_devtools_extension_api.py"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 328 }
332 329
333 concatenate_css("concatenated_inspector_css") { 330 concatenate_css("concatenated_inspector_css") {
334 app_name = "inspector" 331 app_name = "inspector"
335 } 332 }
336 333
337 concatenate_css("concatenated_toolbox_css") { 334 concatenate_css("concatenated_toolbox_css") {
338 app_name = "toolbox" 335 app_name = "toolbox"
339 } 336 }
340 } 337 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/devtools.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698