From da239ae7de63454ff5fab71616902ce17ae7ee75 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Wed, 16 Jul 2014 01:09:38 -0400 Subject: [PATCH] Add genzip proto --- compile.sh | 6 +---- src/main/protobuf/genzip_controlfile.proto | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 src/main/protobuf/genzip_controlfile.proto diff --git a/compile.sh b/compile.sh index 2efc1f493fc07c..950d1b95a15101 100755 --- a/compile.sh +++ b/compile.sh @@ -45,11 +45,7 @@ linux) esac # Compile .proto files using protoc -PROTO_FILES=( -src/main/protobuf/build.proto -src/main/protobuf/extra_actions.proto -src/main/protobuf/testing_api.proto -) +PROTO_FILES=(src/main/protobuf/*.proto) # TODO: CC target architecture needs to match JAVA_HOME. diff --git a/src/main/protobuf/genzip_controlfile.proto b/src/main/protobuf/genzip_controlfile.proto new file mode 100644 index 00000000000000..e303a1b9759c76 --- /dev/null +++ b/src/main/protobuf/genzip_controlfile.proto @@ -0,0 +1,31 @@ +// Copyright 2014 Google Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Control file for building .zip files by way of pkg_library rules. + +syntax = "proto2"; +package tools_genzip; + +option java_package = "com.google.protos.tools_genzip"; +option java_outer_classname = "Controlfile"; + +message Entry { + required string zip_path = 1; + optional string exec_path = 2; +} + +message ControlFile { + required string output_filename = 1; + repeated Entry entry = 2; +}