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

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

Issue 283883002: Remove the hard_dep flag in GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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 # This target generates a "last_change.h" header file in the generated files 5 # This target generates a "last_change.h" header file in the generated files
6 # directory that contains a define of the last revision of the source tree 6 # directory that contains a define of the last revision of the source tree
7 # of the form: 7 # of the form:
8 # #define LAST_CHANGE "123456" 8 # #define LAST_CHANGE "123456"
9 # 9 #
10 # The version is a string rather than an integer for extra flexibility (for 10 # The version is a string rather than an integer for extra flexibility (for
11 # example, we may require git hashes in the future). 11 # example, we may require git hashes in the future).
12 # 12 #
13 # All you need to do is depend on this target, and then from your source code: 13 # All you need to do is depend on this target, and then from your source code:
14 # #include "build/util/last_change.h" 14 # #include "build/util/last_change.h"
15 action("last_change") { 15 action("last_change") {
16 script = "//build/util/lastchange.py" 16 script = "//build/util/lastchange.py"
17 17
18 # This script must be run before targets depending on us.
19 hard_dep = true
20
21 # Rerun the script any time this file changes. 18 # Rerun the script any time this file changes.
22 source_prereqs = [ "//build/util/LASTCHANGE" ] 19 source_prereqs = [ "//build/util/LASTCHANGE" ]
23 20
24 output_header = "$target_gen_dir/last_change.h" 21 output_header = "$target_gen_dir/last_change.h"
25 outputs = [ output_header ] 22 outputs = [ output_header ]
26 23
27 build_relative_src = rebase_path("//", root_build_dir) 24 build_relative_src = rebase_path("//", root_build_dir)
28 build_relative_outputs = rebase_path(output_header, root_build_dir) 25 build_relative_outputs = rebase_path(output_header, root_build_dir)
29 26
30 args = [ 27 args = [
31 "--source-dir=$build_relative_src", 28 "--source-dir=$build_relative_src",
32 "--header=$build_relative_outputs", 29 "--header=$build_relative_outputs",
33 "--version-macro=LAST_CHANGE", 30 "--version-macro=LAST_CHANGE",
34 ] 31 ]
35 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698