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

Side by Side Diff: tools/grit/repack.gni

Issue 2134433002: Add public_deps support to the GN repack template (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 declare_args() { 5 declare_args() {
6 # Absolute path to a resource whitelist (generated using 6 # Absolute path to a resource whitelist (generated using
7 # //tools/resources/find_used_resources.py). 7 # //tools/resources/find_used_resources.py).
8 repack_whitelist = "" 8 repack_whitelist = ""
9 } 9 }
10 10
11 # This file defines a template to invoke grit repack in a consistent manner. 11 # This file defines a template to invoke grit repack in a consistent manner.
12 # 12 #
13 # Parameters: 13 # Parameters:
14 # sources [required] 14 # sources [required]
15 # List of pak files that need to be combined. 15 # List of pak files that need to be combined.
16 # 16 #
17 # output [required] 17 # output [required]
18 # File name (single string) of the output file. 18 # File name (single string) of the output file.
19 # 19 #
20 # deps [optional] 20 # deps [optional]
21 # public_deps [optional]
21 # visibility [optional] 22 # visibility [optional]
22 # Normal meaning. 23 # Normal meaning.
23 template("repack") { 24 template("repack") {
24 action(target_name) { 25 action(target_name) {
25 forward_variables_from(invoker, 26 forward_variables_from(invoker,
26 [ 27 [
27 "deps", 28 "deps",
29 "public_deps",
28 "testonly", 30 "testonly",
29 "visibility", 31 "visibility",
30 ]) 32 ])
31 assert(defined(invoker.sources), "Need sources for $target_name") 33 assert(defined(invoker.sources), "Need sources for $target_name")
32 assert(defined(invoker.output), "Need output for $target_name") 34 assert(defined(invoker.output), "Need output for $target_name")
33 35
34 script = "//tools/grit/grit/format/repack.py" 36 script = "//tools/grit/grit/format/repack.py"
35 37
36 inputs = invoker.sources 38 inputs = invoker.sources
37 outputs = [ 39 outputs = [
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 outputs = [ 103 outputs = [
102 invoker.bundle_output, 104 invoker.bundle_output,
103 ] 105 ]
104 } else { 106 } else {
105 outputs = [ 107 outputs = [
106 "{{bundle_resources_dir}}/{{source_file_part}}", 108 "{{bundle_resources_dir}}/{{source_file_part}}",
107 ] 109 ]
108 } 110 }
109 } 111 }
110 } 112 }
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