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

Side by Side Diff: build/secondary/tools/grit/grit_rule.gni

Issue 450483004: Set the grit .d file dir in GN build properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | 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 # Instantiate grit. This will produce a script target to run grit, and a 5 # Instantiate grit. This will produce a script target to run grit, and a
6 # static library that compiles the .cc files. 6 # static library that compiles the .cc files.
7 # 7 #
8 # Parameters 8 # Parameters
9 # 9 #
10 # source (required) 10 # source (required)
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 config(grit_config) { 249 config(grit_config) {
250 include_dirs = [ output_dir ] 250 include_dirs = [ output_dir ]
251 visibility = target_visibility 251 visibility = target_visibility
252 } 252 }
253 253
254 grit_custom_target = target_name + "_grit" 254 grit_custom_target = target_name + "_grit"
255 action(grit_custom_target) { 255 action(grit_custom_target) {
256 script = "//tools/grit/grit.py" 256 script = "//tools/grit/grit.py"
257 inputs = grit_inputs 257 inputs = grit_inputs
258 outputs = grit_outputs 258 outputs = grit_outputs
259 depfile = "$target_out_dir/${target_name}.d" 259 depfile = "$output_dir/${target_name}.d"
260 260
261 args = [ 261 args = [
262 "-i", source_path, "build", 262 "-i", source_path, "build",
263 "-f", resource_ids, 263 "-f", resource_ids,
264 "-o", rebased_output_dir, 264 "-o", rebased_output_dir,
265 "--depdir", ".", 265 "--depdir", ".",
266 "--depfile", rebase_path(depfile, root_build_dir), 266 "--depfile", rebase_path(depfile, root_build_dir),
267 ] + grit_defines 267 ] + grit_defines
268 268
269 # Add extra defines with -D flags. 269 # Add extra defines with -D flags.
(...skipping 26 matching lines...) Expand all
296 direct_dependent_configs = [ ":$grit_config" ] 296 direct_dependent_configs = [ ":$grit_config" ]
297 297
298 if (defined(invoker.visibility)) { 298 if (defined(invoker.visibility)) {
299 visibility = invoker.visibility 299 visibility = invoker.visibility
300 } 300 }
301 if (defined(invoker.output_name)) { 301 if (defined(invoker.output_name)) {
302 output_name = invoker.output_name 302 output_name = invoker.output_name
303 } 303 }
304 } 304 }
305 } 305 }
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