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

Unified Diff: headless/BUILD.gn

Issue 2695663002: headless: Add generated version header (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | headless/public/version.h.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/BUILD.gn
diff --git a/headless/BUILD.gn b/headless/BUILD.gn
index f57c63262098640062cd57ffbc01bbb2d8b66e93..1927eb256b9326fa95cc13799524bb02fa4b52b9 100644
--- a/headless/BUILD.gn
+++ b/headless/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/chrome_build.gni")
import("//headless/headless.gni")
+import("//build/util/process_version.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")
import("//tools/grit/grit_rule.gni")
@@ -273,6 +274,7 @@ static_library("headless_lib") {
deps = [
":gen_devtools_client_api",
+ ":version_header",
"//base",
"//components/security_state/content",
"//components/security_state/core",
@@ -448,3 +450,12 @@ executable("headless_shell") {
configs += [ ":headless_implementation" ]
}
+
+process_version("version_header") {
+ template_file = "public/version.h.in"
+ sources = [
+ "//build/util/LASTCHANGE",
+ "//chrome/VERSION",
+ ]
+ output = "$target_gen_dir/public/version.h"
+}
« no previous file with comments | « no previous file | headless/public/version.h.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698