Damien Martin-Guillerez
76547e5190
Make protobuf Skylark extension appends the workspace root
...
This change make protobuf skylark extension works when using
remote repository.
Note that this make the Skylark extension unusable prior
to Bazel 0.1.4 because the workspace_root is not available
on prior version.
Tested with Bazel 0.1.4rc2.
Fixes https://github.com/bazelbuild/bazel/issues/784 .
9 years ago
Martin Maly
8e0c9a3f11
Making _genproto rules public.
...
This enables other xx_proto_library targets to depend on xx_proto_library
targets in different packages, and specifically on xx_wkt_protos.
9 years ago
Andrew Harp
38f131fd8c
Build protoc for host platform to enable cross-compilation.
...
This is necessary to run protoc on the host as a dependency for Android BUILD targets with Bazel.
9 years ago
Jisi Liu
d4bef7d41b
add warning notes for cc|py_proto_library rules.
...
To mention that the interface may change or be removed when bazel has
support it natively.
9 years ago
Jisi Liu
be92ffbf74
add default_runtime attribute to cc|py rules.
...
This adds implicit dependencies to the coressponding runtime libraries.
9 years ago
Jisi Liu
6ddcae225c
Use && for internal_copied_filegroup.
...
So that the rule fails if one or more files cannot be copied.
9 years ago
Jisi Liu
bc4fd15209
Rename copeid_src to internal_copied_filegroup
9 years ago
Jisi Liu
a33fa8eddc
fix sources for python target and add needed dependencies.
9 years ago
Jisi Liu
53a56be4c4
Change the impl rule include to includes.
...
We need to use the list to indicate field presense.
The field must only contain 0 or 1 string element.
9 years ago
Jisi Liu
04658a3c24
Change default value of protoc on xx_proto_library rules.
9 years ago
Jisi Liu
7b948cc7c5
Support python for bazel.
9 years ago
Jisi Liu
993fb7013e
Python bazel support.
9 years ago
Jisi Liu
6dac0822c4
Allow include to be None.
...
This enables the use case where all the paths are relative to the
workspace root, e.g.
foo/bar/BUILD
/foo.proto -- package foo.bar
would generate the message correctly.
9 years ago
Jisi Liu
3101e7337c
Change prefix to include, and add docs
9 years ago
Jisi Liu
d8701b5741
Rename deps/proto_deps to cc_libs/deps
9 years ago
Jisi Liu
9c7d9c0925
style/naming fix
9 years ago
Jisi Liu
25d75b5665
make cc_out and py_out internal.
9 years ago
Jisi Liu
125a91be08
Format code.
9 years ago
Jisi Liu
ee8131a62f
buildifier the file
9 years ago
Jisi Liu
39362b35b2
Extract protoc action into .bzl for cc.
...
This is needed to support python bazel build.
9 years ago