summaryrefslogtreecommitdiffstats
path: root/remoting/proto/chromotocol.gyp
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-18 20:09:50 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-18 20:09:50 +0000
commite976a17124ab2fc3df0947867ca1941e9245e627 (patch)
treedf335eb26b1822d135964fe14a6ec6ef72692dd7 /remoting/proto/chromotocol.gyp
parent41dd4a311c4c683367201bfe876a2d6f220e5319 (diff)
downloadchromium_src-e976a17124ab2fc3df0947867ca1941e9245e627.zip
chromium_src-e976a17124ab2fc3df0947867ca1941e9245e627.tar.gz
chromium_src-e976a17124ab2fc3df0947867ca1941e9245e627.tar.bz2
Move chromotocol.proto to remoting/protocol
Move the proto file and split it into multiple smaller proto files. BUG=None TEST=None Review URL: http://codereview.chromium.org/3808002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto/chromotocol.gyp')
-rw-r--r--remoting/proto/chromotocol.gyp83
1 files changed, 83 insertions, 0 deletions
diff --git a/remoting/proto/chromotocol.gyp b/remoting/proto/chromotocol.gyp
new file mode 100644
index 0000000..3d55d21
--- /dev/null
+++ b/remoting/proto/chromotocol.gyp
@@ -0,0 +1,83 @@
+# 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': {
+ 'chromium_code': 1,
+ 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out/remoting/proto',
+ },
+ 'targets': [
+ {
+ # Protobuf compiler / generate rule for chromoting.proto.
+ 'target_name': 'chromotocol_proto',
+ 'type': 'none',
+ 'sources': [
+ 'control.proto',
+ 'event.proto',
+ 'internal.proto',
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'genproto',
+ 'extension': 'proto',
+ 'inputs': [
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
+ ],
+ 'outputs': [
+ '<(out_dir)/<(RULE_INPUT_ROOT).pb.cc',
+ '<(out_dir)/<(RULE_INPUT_ROOT).pb.h',
+ ],
+ 'action': [
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
+ '--proto_path=.',
+ './<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
+ '--cpp_out=<(out_dir)',
+ ],
+ 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
+ },
+ ],
+ 'dependencies': [
+ '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
+ ],
+ },
+ # This target exports a hard dependency because it generates header
+ # files.
+ 'hard_dependency': 1,
+ },
+
+ {
+ 'target_name': 'chromotocol_proto_lib',
+ 'type': '<(library)',
+ 'export_dependent_settings': [
+ '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
+ 'chromotocol_proto',
+ ],
+ 'dependencies': [
+ '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
+ 'chromotocol_proto',
+ ],
+ # This target exports a hard dependency because depedents require
+ # chromotocol_proto to compile.
+ 'hard_dependency': 1,
+ 'sources': [
+ '<(out_dir)/control.pb.cc',
+ '<(out_dir)/control.pb.h',
+ '<(out_dir)/event.pb.cc',
+ '<(out_dir)/event.pb.h',
+ '<(out_dir)/internal.pb.cc',
+ '<(out_dir)/internal.pb.h',
+ ],
+ },
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: