diff options
author | rharrison@chromium.org <rharrison@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 18:14:08 +0000 |
---|---|---|
committer | rharrison@chromium.org <rharrison@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 18:14:08 +0000 |
commit | c033c5087d504ce089ec51763292b11bc1c6850d (patch) | |
tree | 8016ffc595f4106afd4c9c950e920d88f7a6d0cf /dbus/dbus.gyp | |
parent | b23c3bce93b8749c5b8c9b37e8859f4dd66e7b36 (diff) | |
download | chromium_src-c033c5087d504ce089ec51763292b11bc1c6850d.zip chromium_src-c033c5087d504ce089ec51763292b11bc1c6850d.tar.gz chromium_src-c033c5087d504ce089ec51763292b11bc1c6850d.tar.bz2 |
Adding support for sending/receiving proto bufs to dbus library.
This CL add in support to dbus wrapping classes to send and receive protocol
buffers. They take in a generic MessageLite, which all protocol buffers inherit
from. It will then serialize the buffer and send it out as an array of bytes. On
receiving the array of bytes will be parsed back into a protocol buffer. The
operations for doing this are very canned and these methods are designed to
allow devs to skip writing boilerplate. The methods are just wrappers around the
appopriate byte array methods.
BUG=chromium:112127
TEST=Ran new unittests
Review URL: http://codereview.chromium.org/9315006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/dbus.gyp')
-rw-r--r-- | dbus/dbus.gyp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/dbus/dbus.gyp b/dbus/dbus.gyp index ce2fbd4..2dc8fee 100644 --- a/dbus/dbus.gyp +++ b/dbus/dbus.gyp @@ -1,4 +1,4 @@ -# Copyright (c) 2011 The Chromium Authors. All rights reserved. +# Copyright (c) 2012 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. @@ -13,6 +13,7 @@ 'dependencies': [ '../base/base.gyp:base', '../build/linux/system.gyp:dbus', + '../third_party/protobuf/protobuf.gyp:protobuf_lite', ], 'export_dependent_settings': [ '../base/base.gyp:base', @@ -30,6 +31,16 @@ ], }, { + # Protobuf compiler / generator test protocol buffer + 'target_name': 'dbus_test_proto', + 'type': 'static_library', + 'sources': [ 'test_proto.proto' ], + 'variables': { + 'proto_out_dir': 'dbus', + }, + 'includes': [ '../build/protoc.gypi' ], + }, + { # This target contains mocks that can be used to write unit tests # without issuing actual D-Bus calls. 'target_name': 'dbus_test_support', @@ -60,6 +71,7 @@ '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', 'dbus', + 'dbus_test_proto', 'dbus_test_support', ], 'sources': [ |