Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
60f7fc51
Commit
60f7fc51
authored
Jan 22, 2016
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1169 from LuminateWireless/bazel-build
Fix bazel BUILD for Java.
parents
c65be832
4fe03816
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
BUILD
BUILD
+10
-6
No files found.
BUILD
View file @
60f7fc51
...
...
@@ -459,19 +459,23 @@ cc_test(
# Java support
################################################################################
genrule(
name = "generate_java_descriptor_proto",
srcs = ["src/google/protobuf/descriptor.proto"],
outs = ["com/google/protobuf/DescriptorProtos.java"],
cmd = "$(location :protoc) --java_out=$(@D)/../../.. $<",
name = "gen_well_known_protos_java",
srcs = WELL_KNOWN_PROTOS,
outs = [
"wellknown.srcjar"
],
cmd = "$(location :protoc) --java_out=$(@D)/wellknown.jar" +
" -Isrc $(SRCS) " +
" && mv $(@D)/wellknown.jar $(@D)/wellknown.srcjar",
tools = [":protoc"],
)
java_library(
name = "protobuf_java",
srcs = glob([
"java/src/main/java/com/google/protobuf/*.java",
"java/
core/
src/main/java/com/google/protobuf/*.java",
]) + [
":gen
erate_java_descriptor_proto
",
":gen
_well_known_protos_java
",
],
visibility = ["//visibility:public"],
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment