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

Unified Diff: tools/gn/BUILD.gn

Issue 46003002: Add a target in GN that generates a last_change.h file for the SVN revision. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 7 years, 1 month 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/lastchange.py ('k') | tools/gn/command_help.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 6195ff36c0dc1b02873968440ed4040718b12c2e..c5cc1cb5971918392d8799dc2f7067620aaa1286 100644
--- a/tools/gn/BUILD.gn
+++ b/tools/gn/BUILD.gn
@@ -4,6 +4,10 @@
gyp_file = "gn.gyp"
+# Not defined when doing a pure GYP build, this lets the code key off of
+# GN-specific features (the last change target).
+defines = [ "GN_BUILD" ]
+
static_library("gn_lib") {
sources = [
"args.cc",
@@ -151,9 +155,11 @@ static_library("gn_lib") {
"variables.cc",
"variables.h",
]
+
deps = [
"//base",
"//base/third_party/dynamic_annotations",
+ "//build/util:last_change",
]
}
@@ -161,6 +167,7 @@ executable("gn") {
sources = [
"gn_main.cc",
]
+
deps = [
":gn_lib",
]
« no previous file with comments | « build/util/lastchange.py ('k') | tools/gn/command_help.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698