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

Side by Side Diff: build/util/BUILD.gn

Issue 1982423002: Get rid of LASTCHANGE.blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try to fix devtools Created 3 years, 8 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 | « DEPS ('k') | build/util/lastchange.py » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 action("webkit_version") { 5 action("webkit_version") {
6 script = "version.py" 6 script = "version.py"
7 7
8 lastchange_file = "LASTCHANGE.blink" 8 lastchange_file = "LASTCHANGE"
9 9
10 template_file = "webkit_version.h.in" 10 template_file = "webkit_version.h.in"
11 inputs = [ 11 inputs = [
12 lastchange_file, 12 lastchange_file,
13 template_file, 13 template_file,
14 ] 14 ]
15 15
16 output_file = "$target_gen_dir/webkit_version.h" 16 output_file = "$target_gen_dir/webkit_version.h"
17 outputs = [ 17 outputs = [
18 output_file, 18 output_file,
19 ] 19 ]
20 20
21 args = [ 21 args = [
22 # LASTCHANGE contains "<build hash>-<ref>". The user agent only wants the
23 # "<build hash>" bit, so chop off everything after it.
24 "-e",
25 "LASTCHANGE=LASTCHANGE[:LASTCHANGE.find('-')]",
22 "-f", 26 "-f",
23 rebase_path(lastchange_file, root_build_dir), 27 rebase_path(lastchange_file, root_build_dir),
24 rebase_path(template_file, root_build_dir), 28 rebase_path(template_file, root_build_dir),
25 rebase_path(output_file, root_build_dir), 29 rebase_path(output_file, root_build_dir),
26 ] 30 ]
27 } 31 }
28 32
29 action("chrome_version_json") { 33 action("chrome_version_json") {
30 script = "version.py" 34 script = "version.py"
31 _chrome_version_path = "//chrome/VERSION" 35 _chrome_version_path = "//chrome/VERSION"
32 inputs = [ 36 inputs = [
33 _chrome_version_path, 37 _chrome_version_path,
34 ] 38 ]
35 _output_file = "$root_gen_dir/CHROME_VERSION.json" 39 _output_file = "$root_gen_dir/CHROME_VERSION.json"
36 outputs = [ 40 outputs = [
37 _output_file, 41 _output_file,
38 ] 42 ]
39 args = [ 43 args = [
40 "--file", 44 "--file",
41 rebase_path(_chrome_version_path, root_build_dir), 45 rebase_path(_chrome_version_path, root_build_dir),
42 "--template", 46 "--template",
43 "{\"full-quoted\": \"\\\"@MAJOR@.@MINOR@.@BUILD@.@PATCH@\\\"\"}", 47 "{\"full-quoted\": \"\\\"@MAJOR@.@MINOR@.@BUILD@.@PATCH@\\\"\"}",
44 "--output", 48 "--output",
45 rebase_path(_output_file, root_build_dir), 49 rebase_path(_output_file, root_build_dir),
46 ] 50 ]
47 } 51 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/util/lastchange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698