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

Unified Diff: third_party/cacheinvalidation/cacheinvalidation.gyp

Issue 185013002: Roll cacheinvalidation DEPS to r330 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 | « third_party/cacheinvalidation/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cacheinvalidation/cacheinvalidation.gyp
diff --git a/third_party/cacheinvalidation/cacheinvalidation.gyp b/third_party/cacheinvalidation/cacheinvalidation.gyp
index 5a38bb2d6934c667eaf16e9d0c2d5f4c4b3d5936..568f40220de31664af7163ef110d278335e155ae 100644
--- a/third_party/cacheinvalidation/cacheinvalidation.gyp
+++ b/third_party/cacheinvalidation/cacheinvalidation.gyp
@@ -24,6 +24,8 @@
'proto_out_dir': '<(proto_dir_relpath)',
},
'sources': [
+ '<(proto_in_dir)/android_channel.proto',
+ '<(proto_in_dir)/channel_common.proto',
'<(proto_in_dir)/client.proto',
'<(proto_in_dir)/client_gateway.proto',
'<(proto_in_dir)/client_protocol.proto',
@@ -38,6 +40,17 @@
},
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
+ # channel_common.proto contains definition of ANDROID constant which on
+ # android build conflicts with compiler option -DANDROID. Remove protos
+ # from android build.
+ 'conditions': [
+ ['OS=="android"', {
+ 'sources!': [
+ '<(proto_in_dir)/android_channel.proto',
+ '<(proto_in_dir)/channel_common.proto',
+ ],
+ }],
+ ],
},
# The main cache invalidation library. External clients should depend
# only on this.
@@ -193,7 +206,6 @@
'<(proto_in_dir)/android_listener.proto',
'<(proto_in_dir)/android_service.proto',
'<(proto_in_dir)/android_state.proto',
- '<(proto_in_dir)/channel.proto',
'<(proto_in_dir)/channel_common.proto',
'<(proto_in_dir)/client.proto',
'<(proto_in_dir)/client_protocol.proto',
@@ -203,12 +215,25 @@
'includes': [ '../../build/protoc_java.gypi' ],
},
{
+ 'target_name': 'cacheinvalidation_example_proto_java',
+ 'type': 'none',
+ 'variables': {
+ 'cacheinvalidation_in_dir': '../../third_party/cacheinvalidation/src',
+ 'proto_in_dir' : '<(cacheinvalidation_in_dir)/java/com/google/ipc/invalidation/examples/android2',
+ },
+ 'sources': [
+ '<(proto_in_dir)/example_listener.proto',
+ ],
+ 'includes': [ '../../build/protoc_java.gypi' ],
+ },
+ {
'target_name': 'cacheinvalidation_javalib',
'type': 'none',
'dependencies': [
'../../third_party/android_tools/android_tools.gyp:android_gcm',
'../../third_party/guava/guava.gyp:guava_javalib',
'cacheinvalidation_aidl_javalib',
+ 'cacheinvalidation_example_proto_java',
'cacheinvalidation_proto_java',
],
'variables': {
« no previous file with comments | « third_party/cacheinvalidation/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698