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

Unified Diff: tools/gn/BUILD.gn

Issue 483403005: GN build improvemenst (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/util/BUILD.gn ('k') | tools/gn/gn_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/BUILD.gn
diff --git a/tools/gn/BUILD.gn b/tools/gn/BUILD.gn
index e3724ad9425da6aa4f75f8e138f653ce5fbad05e..1e9391fb3e802d56490229986b48bec0af51e7a4 100644
--- a/tools/gn/BUILD.gn
+++ b/tools/gn/BUILD.gn
@@ -174,6 +174,22 @@ static_library("gn_lib") {
]
}
+action("last_commit_position") {
+ script = "last_commit_position.py"
+
+ # This dependency forces a re-run when the code is synced.
+ inputs = [ "//build/util/LASTCHANGE" ]
+
+ outfile = "$target_gen_dir/last_commit_position.h"
+ outputs = [ outfile ]
+
+ args = [
+ rebase_path("//", root_build_dir),
+ rebase_path(outfile, root_build_dir),
+ "TOOLS_GN_LAST_COMMIT_POSITION_H_",
+ ]
+}
+
executable("gn") {
sources = [
"gn_main.cc",
@@ -181,7 +197,7 @@ executable("gn") {
deps = [
":gn_lib",
- "//build/util:last_change",
+ ":last_commit_position",
]
}
« no previous file with comments | « build/util/BUILD.gn ('k') | tools/gn/gn_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698