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
60880a7e
Commit
60880a7e
authored
9 years ago
by
Ming Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "java_proto" target in bazel BUILD file to provide Java runtime
library.
parent
0e5686a7
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
BUILD
BUILD
+22
-1
No files found.
BUILD
View file @
60880a7e
...
...
@@ -252,6 +252,28 @@ cc_binary(
deps = [":protoc_lib"],
)
################################################################################
# Java support
################################################################################
genrule(
name = "generate_java_descriptor_proto",
tools = [":protoc"],
srcs = [ "src/google/protobuf/descriptor.proto", ],
outs = [ "com/google/protobuf/DescriptorProtos.java" ],
cmd = "$(location :protoc) --java_out=$(@D)/../../.. $<",
)
java_library(
name = "java_proto",
visibility = ["//visibility:public"],
srcs = glob([
"java/src/main/java/com/google/protobuf/*.java"
]) + [
":generate_java_descriptor_proto",
]
)
################################################################################
# Tests
################################################################################
...
...
@@ -429,4 +451,3 @@ cc_test(
"//external:gtest_main",
],
)
This diff is collapsed.
Click to expand it.
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