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

Unified Diff: build/secondary/third_party/cacheinvalidation/BUILD.gn

Issue 580343002: Add proto_java_library to gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: = Created 6 years, 3 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/protoc_java.py ('k') | third_party/android_protobuf/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/secondary/third_party/cacheinvalidation/BUILD.gn
diff --git a/build/secondary/third_party/cacheinvalidation/BUILD.gn b/build/secondary/third_party/cacheinvalidation/BUILD.gn
index 15e2aa4371eac969d32d84bf646294003e4c6051..53d847296b5622352419a4b5481a50cf29961be7 100644
--- a/build/secondary/third_party/cacheinvalidation/BUILD.gn
+++ b/build/secondary/third_party/cacheinvalidation/BUILD.gn
@@ -112,4 +112,33 @@ test("cacheinvalidation_unittests") {
]
}
-# TODO(GYP) A bunch of Android-specific stuff.
+# TODO(GYP) Test isolation stuff.
+if (is_android) {
+ import("//build/config/android/rules.gni")
+
+ # GYP: //third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_java
+ proto_java_library("cacheinvalidation_proto_java") {
+ proto_path = "src/proto"
+ sources = [
+ "$proto_path/android_channel.proto",
+ "$proto_path/android_listener.proto",
+ "$proto_path/android_service.proto",
+ "$proto_path/channel_common.proto",
+ "$proto_path/client.proto",
+ "$proto_path/client_protocol.proto",
+ "$proto_path/java_client.proto",
+ "$proto_path/types.proto",
+ ]
+ }
+
+ # GYP: //third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_javalib
+ android_library("cacheinvalidation_javalib") {
+ deps = [
+ ":cacheinvalidation_proto_java",
+ "//third_party/android_protobuf:protobuf_nano_javalib",
+ "//third_party/android_tools:android_gcm_java",
+ ]
+
+ DEPRECATED_java_in_dir = "src/java"
+ }
+}
« no previous file with comments | « build/protoc_java.py ('k') | third_party/android_protobuf/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698