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

Side by Side Diff: components/data_reduction_proxy/core/common/version.gni

Issue 949233003: Fix official build in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@random
Patch Set: remove ppapi dep Created 5 years, 9 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 | « components/data_reduction_proxy/core/common/BUILD.gn ('k') | crypto/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 # Runs the version processing script over the given template file to produce
6 # an output file. This is used for generating various forms of files that
7 # incorporate the product name and version.
8 #
9 # This template automatically includes VERSION,
10 #
11 # Parameters:
12 # source:
13 # File name of source template file to read.
14 #
15 # output:
16 # File name of file to write.
17 #
18 # visibility (optional)
19 #
20 # Example:
21 # process_version("myversion") {
22 # source = "myfile.h.in"
23 # output = "$target_gen_dir/myfile.h"
24 # }
25 template("process_version") {
26 assert(defined(invoker.source), "Source must be defined for $target_name")
27 assert(defined(invoker.output), "Output must be defined for $target_name")
28
29 action(target_name) {
30 if (defined(invoker.visibility)) {
31 visibility = invoker.visibility
32 }
33 script = "//build/util/version.py"
34
35 version_path = "//chrome/VERSION"
36
37 inputs = [
38 version_path,
39 invoker.source,
40 ]
41
42 outputs = [
43 invoker.output,
44 ]
45
46 args = [
47 "-f",
48 rebase_path(version_path, root_build_dir),
49 rebase_path(invoker.source, root_build_dir),
50 rebase_path(invoker.output, root_build_dir),
51 ]
52 }
53 }
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/core/common/BUILD.gn ('k') | crypto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698