diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2015-03-24 09:05:08 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-03-24 16:41:48 +0000 |
commit | adeef73a97cf191301a7b563883a075caed733b7 (patch) | |
tree | c06734cbffa4160b156779da7c87dbf5cc2b6f94 /examples/proto | |
parent | 5247ff53465afc6ad9db889d1ec3f106ec09a3d6 (diff) |
Move all examples into Bazel workspace
Those examples will be used for Bazel integration tests and their
sources should be available directly to the Bazel workspace itself.
--
MOS_MIGRATED_REVID=89380736
Diffstat (limited to 'examples/proto')
-rw-r--r-- | examples/proto/BUILD | 8 | ||||
-rw-r--r-- | examples/proto/test.proto | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/examples/proto/BUILD b/examples/proto/BUILD new file mode 100644 index 0000000000..2228fc4398 --- /dev/null +++ b/examples/proto/BUILD @@ -0,0 +1,8 @@ +package(default_visibility = ["//visibility:public"]) + +load("/tools/build_rules/genproto", "genproto") + +genproto( + name = "test_proto", + src = "test.proto", +) diff --git a/examples/proto/test.proto b/examples/proto/test.proto new file mode 100644 index 0000000000..16a6dc335a --- /dev/null +++ b/examples/proto/test.proto @@ -0,0 +1,10 @@ +syntax = "proto2"; + +package test; + +option java_package = "com.google.test"; + +message KeyVal { + optional string key = 1; + optional string val = 2; +} |