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
04658a3c
Commit
04658a3c
authored
Oct 20, 2015
by
Jisi Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default value of protoc on xx_proto_library rules.
parent
7b948cc7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
BUILD
BUILD
+12
-2
protobuf.bzl
protobuf.bzl
+2
-2
No files found.
BUILD
View file @
04658a3c
...
...
@@ -18,8 +18,13 @@ COPTS = [
# Bazel should provide portable link_opts for pthread.
LINK_OPTS = ["-lpthread"]
load("protobuf", "cc_proto_library", "py_proto_library", "copied_srcs",
"internal_protobuf_py_tests")
load(
"protobuf",
"cc_proto_library",
"py_proto_library",
"copied_srcs",
"internal_protobuf_py_tests",
)
cc_library(
name = "protobuf_lite",
...
...
@@ -151,6 +156,7 @@ cc_proto_library(
include = "src",
cc_libs = [":protobuf"],
internal_bootstrap_hack = 1,
protoc = ":protoc",
)
################################################################################
...
...
@@ -327,6 +333,7 @@ cc_proto_library(
name = "cc_test_protos",
srcs = LITE_TEST_PROTOS + TEST_PROTOS,
include = "src",
protoc = ":protoc",
deps = [":cc_wkt_protos"],
)
...
...
@@ -497,6 +504,7 @@ py_proto_library(
name = "python_proto",
srcs = WELL_KNOWN_PROTOS,
include = "src",
protoc = ":protoc",
py_extra_srcs = [":python_srcs"],
visibility = ["//visibility:public"],
)
...
...
@@ -516,6 +524,7 @@ py_proto_library(
name = "python_common_test_protos",
srcs = LITE_TEST_PROTOS + TEST_PROTOS,
include = "src",
protoc = ":protoc",
deps = [":python_proto"],
)
...
...
@@ -523,6 +532,7 @@ py_proto_library(
name = "python_specific_test_protos",
srcs = glob(["python/google/protobuf/internal/*.proto"]),
include = "python",
protoc = ":protoc",
deps = [":python_common_test_protos"],
)
...
...
protobuf.bzl
View file @
04658a3c
...
...
@@ -95,7 +95,7 @@ def cc_proto_library(
deps
=
[],
cc_libs
=
[],
include
=
None
,
protoc
=
":protoc"
,
protoc
=
"
//google/protobuf
:protoc"
,
internal_bootstrap_hack
=
False
,
**
kargs
):
"""Bazel rule to create a C++ protobuf library from proto source files
...
...
@@ -192,7 +192,7 @@ def py_proto_library(
py_libs
=
[],
py_extra_srcs
=
[],
include
=
None
,
protoc
=
":protoc"
,
protoc
=
"
//google/protobuf
:protoc"
,
**
kargs
):
"""Bazel rule to create a Python protobuf library from proto source files
...
...
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