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

Unified Diff: third_party/cacheinvalidation/cacheinvalidation.gyp

Issue 11146005: Add support for generating jars from protos and add cacheinvalidation_java. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused target Created 8 years, 2 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: third_party/cacheinvalidation/cacheinvalidation.gyp
diff --git a/third_party/cacheinvalidation/cacheinvalidation.gyp b/third_party/cacheinvalidation/cacheinvalidation.gyp
index 2e71733aabf06f89ae73704f1d7380aa00334bd7..1ecf623bf173bc1fa92ebd30ff1be11740f15493 100644
--- a/third_party/cacheinvalidation/cacheinvalidation.gyp
+++ b/third_party/cacheinvalidation/cacheinvalidation.gyp
@@ -7,19 +7,22 @@
# This library should build cleanly with the extra warnings turned on
# for Chromium.
'chromium_code': 1,
- # The relative path of the cacheinvalidation proto files from 'src'.
- # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so
- # we don't need this variable.
- 'proto_dir_relpath': 'google/cacheinvalidation',
- # Where files generated from proto files are put.
- 'proto_in_dir': 'src/<(proto_dir_relpath)',
- 'proto_out_dir': '<(proto_dir_relpath)',
},
'targets': [
# The C++ files generated from the cache invalidation protocol buffers.
{
'target_name': 'cacheinvalidation_proto_cpp',
'type': 'static_library',
+ 'variables': {
+ # The relative path of the cacheinvalidation proto files from this
+ # gyp-file.
+ # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so
+ # we don't need this variable.
+ 'proto_dir_relpath': 'google/cacheinvalidation',
+ # Where files generated from proto files are put.
+ 'proto_in_dir': 'src/<(proto_dir_relpath)',
+ 'proto_out_dir': '<(proto_dir_relpath)',
+ },
'sources': [
'<(proto_in_dir)/client.proto',
'<(proto_in_dir)/client_gateway.proto',
@@ -120,6 +123,54 @@
'../../base/base.gyp:base',
],
},
+ {
+ 'target_name': 'cacheinvalidation_proto_java',
+ 'type': 'none',
+ 'variables': {
+ 'proto_in_dir': '../../third_party/cacheinvalidation/src',
+ 'proto_sources': '../../third_party/cacheinvalidation/src/proto',
+ },
+ 'sources': [
+ '<(proto_sources)/android_channel.proto',
+ '<(proto_sources)/android_state.proto',
+ '<(proto_sources)/channel_common.proto',
+ '<(proto_sources)/channel.proto',
+ '<(proto_sources)/client.proto',
+ '<(proto_sources)/client_protocol.proto',
+ '<(proto_sources)/types.proto',
+ ],
+ 'includes': [ '../../build/protoc_java.gypi' ],
+ },
+ {
+ 'target_name': 'cacheinvalidation_java',
+ 'type': 'none',
+ 'dependencies': [
+ 'cacheinvalidation_aidl',
+ 'cacheinvalidation_proto_java',
+ '../../third_party/android_tools/android_tools.gyp:android_guava',
+ ],
+ 'variables': {
+ 'package_name': 'cacheinvalidation_java',
+ 'java_in_dir': '../../build/android/empty',
+ 'additional_src_dirs': [ 'src/java/' ],
+ },
+ 'includes': [ '../../build/java.gypi' ],
+ },
+ {
+ 'target_name': 'cacheinvalidation_aidl',
+ 'type': 'none',
+ 'variables': {
+ 'package_name': 'cacheinvalidation_aidl',
+ # TODO(shashishekhar): aidl_interface_file should be made optional.
+ 'aidl_interface_file':'<(android_sdk)/framework.aidl'
+ },
+ 'sources': [
+ 'src/java/com/google/ipc/invalidation/external/client/android/service/InvalidationService.aidl',
+ 'src/java/com/google/ipc/invalidation/external/client/android/service/ListenerService.aidl',
+ 'src/java/com/google/ipc/invalidation/testing/android/InvalidationTest.aidl',
+ ],
+ 'includes': [ '../../build/java_aidl.gypi' ],
+ },
# Unittests for the cache invalidation library.
# TODO(ghc): Write native tests and include them here.
{

Powered by Google App Engine
This is Rietveld 408576698