| Index: third_party/cacheinvalidation/cacheinvalidation.gyp
|
| diff --git a/third_party/cacheinvalidation/cacheinvalidation.gyp b/third_party/cacheinvalidation/cacheinvalidation.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e400bcfeaf4a77a0de7e207c3916c34e15c0e8f6
|
| --- /dev/null
|
| +++ b/third_party/cacheinvalidation/cacheinvalidation.gyp
|
| @@ -0,0 +1,143 @@
|
| +# Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +{
|
| + 'variables': {
|
| + # The root directory for the proto files.
|
| + 'proto_dir_root': 'files/src',
|
| + # The relative path of the cacheinvalidation proto files from
|
| + # proto_dir_root.
|
| + # 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.
|
| + 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
|
| + },
|
| + 'targets': [
|
| + # The rule/action to generate files from the cacheinvalidation proto
|
| + # files.
|
| + {
|
| + 'target_name': 'cacheinvalidation_proto',
|
| + 'type': 'none',
|
| + 'sources': [
|
| + '<(proto_dir_root)/google/cacheinvalidation/types.proto',
|
| + ],
|
| + # TODO(akalin): This block was copied from the sync_proto target
|
| + # from chrome.gyp. Decomp the shared blocks out somehow.
|
| + 'rules': [
|
| + {
|
| + 'rule_name': 'genproto',
|
| + 'extension': 'proto',
|
| + 'inputs': [
|
| + '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
|
| + ],
|
| + 'outputs': [
|
| + '<(protoc_out_dir)/<(proto_dir_relpath)/<(RULE_INPUT_ROOT).pb.h',
|
| + '<(protoc_out_dir)/<(proto_dir_relpath)/<(RULE_INPUT_ROOT).pb.cc',
|
| + ],
|
| + 'action': [
|
| + '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
|
| + '--proto_path=<(proto_dir_root)',
|
| + '<(RULE_INPUT_PATH)',
|
| + '--cpp_out=<(protoc_out_dir)',
|
| + ],
|
| + 'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
|
| + },
|
| + ],
|
| + 'dependencies': [
|
| + '../../third_party/protobuf2/protobuf.gyp:protoc#host',
|
| + ],
|
| + },
|
| + # The library created from the generated c++ cacheinvalidation proto
|
| + # files.
|
| + {
|
| + 'target_name': 'cacheinvalidation_proto_cc',
|
| + 'type': '<(library)',
|
| + 'sources': [
|
| + '<(protoc_out_dir)/<(proto_dir_relpath)/types.pb.h',
|
| + '<(protoc_out_dir)/<(proto_dir_relpath)/types.pb.cc',
|
| + ],
|
| + 'include_dirs': [
|
| + '<(protoc_out_dir)',
|
| + ],
|
| + 'dependencies': [
|
| + '../../third_party/protobuf2/protobuf.gyp:protobuf_lite',
|
| + 'cacheinvalidation_proto',
|
| + ],
|
| + 'direct_dependent_settings': {
|
| + 'include_dirs': [
|
| + '<(protoc_out_dir)',
|
| + ],
|
| + },
|
| + 'export_dependent_settings': [
|
| + '../../third_party/protobuf2/protobuf.gyp:protobuf_lite',
|
| + ],
|
| + },
|
| + # The main cache invalidation library. External clients should depend
|
| + # only on this.
|
| + {
|
| + 'target_name': 'cacheinvalidation',
|
| + 'type': '<(library)',
|
| + 'sources': [
|
| + 'overrides/google/cacheinvalidation/callback.h',
|
| + 'overrides/google/cacheinvalidation/googletest.h',
|
| + 'overrides/google/cacheinvalidation/logging.h',
|
| + 'overrides/google/cacheinvalidation/mutex.h',
|
| + 'overrides/google/cacheinvalidation/stl-namespace.h'
|
| + 'overrides/google/cacheinvalidation/string_util.h'
|
| + 'overrides/google/cacheinvalidation/time.h',
|
| + 'files/src/google/cacheinvalidation/invalidation-client-impl.cc',
|
| + 'files/src/google/cacheinvalidation/invalidation-client-impl.h',
|
| + 'files/src/google/cacheinvalidation/invalidation-client.cc',
|
| + 'files/src/google/cacheinvalidation/invalidation-client.h',
|
| + 'files/src/google/cacheinvalidation/log-macro.h',
|
| + 'files/src/google/cacheinvalidation/network-manager.cc',
|
| + 'files/src/google/cacheinvalidation/network-manager.h',
|
| + 'files/src/google/cacheinvalidation/registration-update-manager.cc',
|
| + 'files/src/google/cacheinvalidation/registration-update-manager.h',
|
| + 'files/src/google/cacheinvalidation/session-manager.cc',
|
| + 'files/src/google/cacheinvalidation/session-manager.h',
|
| + ],
|
| + 'include_dirs': [
|
| + './overrides',
|
| + './files/src',
|
| + ],
|
| + 'dependencies': [
|
| + '../../base/base.gyp:base',
|
| + 'cacheinvalidation_proto_cc',
|
| + ],
|
| + 'direct_dependent_settings': {
|
| + 'include_dirs': [
|
| + './overrides',
|
| + './files/src',
|
| + ],
|
| + },
|
| + 'export_dependent_settings': [
|
| + 'cacheinvalidation_proto_cc',
|
| + ],
|
| + },
|
| + # Unittests for the cache invalidation library.
|
| + # TODO(akalin): Add these to build/all.gyp.
|
| + {
|
| + 'target_name': 'cacheinvalidation_unittests',
|
| + 'type': 'executable',
|
| + 'sources': [
|
| + 'files/src/google/cacheinvalidation/system-resources-for-test.h',
|
| + 'files/src/google/cacheinvalidation/invalidation-client-impl_test.cc',
|
| + ],
|
| + 'dependencies': [
|
| + '../../base/base.gyp:base',
|
| + '../../testing/gtest.gyp:gtest',
|
| + '../../testing/gtest.gyp:gtestmain',
|
| + 'cacheinvalidation',
|
| + ],
|
| + },
|
| + ],
|
| +}
|
| +
|
| +# Local Variables:
|
| +# tab-width:2
|
| +# indent-tabs-mode:nil
|
| +# End:
|
| +# vim: set expandtab tabstop=2 shiftwidth=2:
|
|
|