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

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

Issue 665083002: DevTools: Fix Windows debug_devtools=1 builds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix variable type on command line in gyp Created 6 years, 2 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 copy("copy_inspector_images") { 103 copy("copy_inspector_images") {
104 sources = gypi_values.devtools_image_files 104 sources = gypi_values.devtools_image_files
105 outputs = [ resources_out_dir + "Images/{{source_file_part}}" ] 105 outputs = [ resources_out_dir + "Images/{{source_file_part}}" ]
106 } 106 }
107 107
108 action("generate_devtools_grd") { 108 action("generate_devtools_grd") {
109 script = "scripts/generate_devtools_grd.py" 109 script = "scripts/generate_devtools_grd.py"
110 110
111 deps = [ ":devtools_frontend_resources" ] 111 deps = [ ":devtools_frontend_resources" ]
112 static_files_list = "$target_gen_dir/devtools_static_grd_files.tmp"
113 inputs = [ static_files_list ]
112 114
113 if (debug_devtools) { 115 if (debug_devtools) {
114 # Debug: all files are picked as-is. 116 # Debug: all files are picked as-is.
115 input_pages = all_devtools_files + generated_scripts + [ 117 generated_files = generated_scripts + [
116 resources_out_dir + "devtools.html", 118 resources_out_dir + "devtools.html",
117 resources_out_dir + "toolbox.html", 119 resources_out_dir + "toolbox.html",
118 ] 120 ]
121 static_files = all_devtools_files + [ "front_end/Runtime.js" ]
119 } else { 122 } else {
120 # Release: pick compiled files and lazy-loaded CSS. 123 # Release: pick compiled files and lazy-loaded CSS.
121 input_pages = [ 124 generated_files = [
122 resources_out_dir + "devtools.css", 125 resources_out_dir + "devtools.css",
123 resources_out_dir + "devtools.html", 126 resources_out_dir + "devtools.html",
124 resources_out_dir + "devtools.js", 127 resources_out_dir + "devtools.js",
125 resources_out_dir + "toolbox.css", 128 resources_out_dir + "toolbox.css",
126 resources_out_dir + "toolbox.html", 129 resources_out_dir + "toolbox.html",
127 resources_out_dir + "toolbox.js", 130 resources_out_dir + "toolbox.js",
128 resources_out_dir + "audits_module.js", 131 resources_out_dir + "audits_module.js",
129 resources_out_dir + "console_module.js", 132 resources_out_dir + "console_module.js",
130 resources_out_dir + "devices_module.js", 133 resources_out_dir + "devices_module.js",
131 resources_out_dir + "documentation_module.js", 134 resources_out_dir + "documentation_module.js",
132 resources_out_dir + "elements_module.js", 135 resources_out_dir + "elements_module.js",
133 resources_out_dir + "extensions_module.js",
134 resources_out_dir + "heap_snapshot_worker_module.js", 136 resources_out_dir + "heap_snapshot_worker_module.js",
135 resources_out_dir + "layers_module.js", 137 resources_out_dir + "layers_module.js",
136 resources_out_dir + "network_module.js", 138 resources_out_dir + "network_module.js",
137 resources_out_dir + "profiler_module.js", 139 resources_out_dir + "profiler_module.js",
138 resources_out_dir + "promises_module.js", 140 resources_out_dir + "promises_module.js",
139 resources_out_dir + "resources_module.js", 141 resources_out_dir + "resources_module.js",
140 resources_out_dir + "script_formatter_worker_module.js", 142 resources_out_dir + "script_formatter_worker_module.js",
141 resources_out_dir + "settings_module.js", 143 resources_out_dir + "settings_module.js",
142 resources_out_dir + "source_frame_module.js", 144 resources_out_dir + "source_frame_module.js",
143 resources_out_dir + "sources_module.js", 145 resources_out_dir + "sources_module.js",
144 resources_out_dir + "temp_storage_shared_worker_module.js", 146 resources_out_dir + "temp_storage_shared_worker_module.js",
145 resources_out_dir + "timeline_module.js", 147 resources_out_dir + "timeline_module.js",
146 resources_out_dir + "devtools_extension_api.js", 148 resources_out_dir + "devtools_extension_api.js",
147 ] 149 ]
148 input_pages += gypi_values.devtools_standalone_files + 150 static_files = gypi_values.devtools_standalone_files +
149 gypi_values.devtools_cm_css_files 151 gypi_values.devtools_cm_css_files
150 } 152 }
151 153
154 write_file(static_files_list, rebase_path(static_files, root_build_dir))
152 images = gypi_values.devtools_image_files 155 images = gypi_values.devtools_image_files
153 images_path = "front_end/Images" 156 images_path = "front_end/Images"
154 157
155 inputs = input_pages + images 158 inputs += generated_files + images
156 159
157 outfile = "$root_gen_dir/devtools/devtools_resources.grd" 160 outfile = "$root_gen_dir/devtools/devtools_resources.grd"
158 outputs = [ outfile ] 161 outputs = [ outfile ]
159 162
160 relative_path_dirs = [ 163 relative_path_dirs = [
161 resources_out_dir_no_slash, 164 resources_out_dir_no_slash,
162 "front_end", 165 "front_end",
163 ] 166 ]
164 167
165 args = rebase_path(input_pages, root_build_dir) + [ 168 args = rebase_path(generated_files, root_build_dir) +
169 rebase_path(generated_files, root_build_dir) + [
170 "--static_files_list", rebase_path(static_files_list, root_build_dir),
166 "--relative_path_dirs" ] + 171 "--relative_path_dirs" ] +
167 rebase_path(relative_path_dirs, root_build_dir) + [ 172 rebase_path(relative_path_dirs, root_build_dir) + [
168 "--images", rebase_path(images_path, root_build_dir), 173 "--images", rebase_path(images_path, root_build_dir),
169 "--output", rebase_path(outfile, root_build_dir), 174 "--output", rebase_path(outfile, root_build_dir),
170 ] 175 ]
171 } 176 }
172 177
173 action("devtools_extension_api") { 178 action("devtools_extension_api") {
174 script = "scripts/generate_devtools_extension_api.py" 179 script = "scripts/generate_devtools_extension_api.py"
175 180
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 deps = [ ":copy_debug_non_modules" ] 228 deps = [ ":copy_debug_non_modules" ]
224 229
225 debug_mode = "1" 230 debug_mode = "1"
226 } else { 231 } else {
227 outputs += [ 232 outputs += [
228 resources_out_dir + "audits_module.js", 233 resources_out_dir + "audits_module.js",
229 resources_out_dir + "console_module.js", 234 resources_out_dir + "console_module.js",
230 resources_out_dir + "devices_module.js", 235 resources_out_dir + "devices_module.js",
231 resources_out_dir + "documentation_module.js", 236 resources_out_dir + "documentation_module.js",
232 resources_out_dir + "elements_module.js", 237 resources_out_dir + "elements_module.js",
233 resources_out_dir + "extensions_module.js",
234 resources_out_dir + "heap_snapshot_worker_module.js", 238 resources_out_dir + "heap_snapshot_worker_module.js",
235 resources_out_dir + "layers_module.js", 239 resources_out_dir + "layers_module.js",
236 resources_out_dir + "network_module.js", 240 resources_out_dir + "network_module.js",
237 resources_out_dir + "profiler_module.js", 241 resources_out_dir + "profiler_module.js",
238 resources_out_dir + "promises_module.js", 242 resources_out_dir + "promises_module.js",
239 resources_out_dir + "resources_module.js", 243 resources_out_dir + "resources_module.js",
240 resources_out_dir + "script_formatter_worker_module.js", 244 resources_out_dir + "script_formatter_worker_module.js",
241 resources_out_dir + "settings_module.js", 245 resources_out_dir + "settings_module.js",
242 resources_out_dir + "source_frame_module.js", 246 resources_out_dir + "source_frame_module.js",
243 resources_out_dir + "sources_module.js", 247 resources_out_dir + "sources_module.js",
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 324 }
321 325
322 concatenate_css("concatenated_devtools_css") { 326 concatenate_css("concatenated_devtools_css") {
323 app_name = "devtools" 327 app_name = "devtools"
324 } 328 }
325 329
326 concatenate_css("concatenated_toolbox_css") { 330 concatenate_css("concatenated_toolbox_css") {
327 app_name = "toolbox" 331 app_name = "toolbox"
328 } 332 }
329 } 333 }
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