aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/j2objc
diff options
context:
space:
mode:
authorGravatar Rumou Duan <rduan@google.com>2016-09-27 15:28:06 +0000
committerGravatar Yun Peng <pcloudy@google.com>2016-09-27 16:25:07 +0000
commiteedb41ec3f1b3e3ac597aad7243a7779eb732ebf (patch)
tree1972de45f1b87e83ddc91f84f6552b9c510f0b29 /tools/j2objc
parent326c698dbab89fde97a234586efef75c5f8b7111 (diff)
In J2ObjC proto aspect, add a proto file blacklist to filter out unnecessary protos from linking into the final binary.
-- MOS_MIGRATED_REVID=134409481
Diffstat (limited to 'tools/j2objc')
-rw-r--r--tools/j2objc/BUILD5
-rw-r--r--tools/j2objc/dummy.proto21
2 files changed, 26 insertions, 0 deletions
diff --git a/tools/j2objc/BUILD b/tools/j2objc/BUILD
index 3334dfe35e..705b377310 100644
--- a/tools/j2objc/BUILD
+++ b/tools/j2objc/BUILD
@@ -17,3 +17,8 @@ filegroup(
name = "j2objc_wrapper",
srcs = ["j2objc_wrapper.py"],
)
+
+filegroup(
+ name = "j2objc_proto_blacklist",
+ srcs = ["dummy.proto"],
+)
diff --git a/tools/j2objc/dummy.proto b/tools/j2objc/dummy.proto
new file mode 100644
index 0000000000..9d90b3dcdb
--- /dev/null
+++ b/tools/j2objc/dummy.proto
@@ -0,0 +1,21 @@
+// Copyright 2016 The Bazel Authors. 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.
+
+syntax = "proto2";
+
+package third_party.bazel.tools.j2objc;
+
+message Dummy {
+ optional string dummy = 1;
+}