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

Unified Diff: blimp/common/BUILD.gn

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add disconnection message and unit-tests Created 4 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 side-by-side diff with in-line comments
Download patch
Index: blimp/common/BUILD.gn
diff --git a/blimp/common/BUILD.gn b/blimp/common/BUILD.gn
index 6548853d326066e0c8770e17d68e2f201996de1f..66263ac4280cf1aff8b6d1714657aeb57686ceac 100644
--- a/blimp/common/BUILD.gn
+++ b/blimp/common/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//testing/test.gni")
Kevin M 2016/04/22 21:12:54 Alphabetic order for imports?
+import("//chrome/version.gni")
component("blimp_common") {
sources = [
@@ -22,12 +23,13 @@ component("blimp_common") {
"create_blimp_message.h",
"logging.cc",
"logging.h",
- "protocol_version.h",
+ "version_info.h",
Kevin M 2016/04/22 21:12:54 Are we missing version_info.cc?
]
defines = [ "BLIMP_COMMON_IMPLEMENTATION=1" ]
deps = [
+ ":generate_version_info",
"//base",
"//blimp/common/proto",
"//cc",
@@ -54,3 +56,8 @@ source_set("unit_tests") {
"//testing/gtest",
]
}
+
+process_version("generate_version_info") {
+ template_file = "version_info.cc.version"
+ output = "$target_gen_dir/version_info.cc"
+}

Powered by Google App Engine
This is Rietveld 408576698