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
bc4fd152
Commit
bc4fd152
authored
Oct 20, 2015
by
Jisi Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename copeid_src to internal_copied_filegroup
parent
14c8f8ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
BUILD
BUILD
+3
-3
protobuf.bzl
protobuf.bzl
+7
-7
No files found.
BUILD
View file @
bc4fd152
...
@@ -22,7 +22,7 @@ load(
...
@@ -22,7 +22,7 @@ load(
"protobuf",
"protobuf",
"cc_proto_library",
"cc_proto_library",
"py_proto_library",
"py_proto_library",
"
copied_srcs
",
"
internal_copied_filegroup
",
"internal_protobuf_py_tests",
"internal_protobuf_py_tests",
)
)
...
@@ -487,7 +487,7 @@ java_library(
...
@@ -487,7 +487,7 @@ java_library(
# project. Otherwise, bazel disallows generated files out of the current
# project. Otherwise, bazel disallows generated files out of the current
# package, thus we won't be able to copy protobuf runtime files into
# package, thus we won't be able to copy protobuf runtime files into
# //google/protobuf/.
# //google/protobuf/.
copied_srcs
(
internal_copied_filegroup
(
name = "python_srcs",
name = "python_srcs",
srcs = glob(
srcs = glob(
[
[
...
@@ -511,7 +511,7 @@ py_proto_library(
...
@@ -511,7 +511,7 @@ py_proto_library(
visibility = ["//visibility:public"],
visibility = ["//visibility:public"],
)
)
copied_srcs
(
internal_copied_filegroup
(
name = "python_test_srcs",
name = "python_test_srcs",
srcs = glob(
srcs = glob(
[
[
...
...
protobuf.bzl
View file @
bc4fd152
...
@@ -160,7 +160,7 @@ def cc_proto_library(
...
@@ -160,7 +160,7 @@ def cc_proto_library(
**
kargs
)
**
kargs
)
def
copied_srcs
(
def
internal_copied_filegroup
(
name
,
name
,
srcs
,
srcs
,
include
,
include
,
...
@@ -168,8 +168,8 @@ def copied_srcs(
...
@@ -168,8 +168,8 @@ def copied_srcs(
"""Bazel rule to fix sources file to workaround with python path issues.
"""Bazel rule to fix sources file to workaround with python path issues.
Args:
Args:
name: the name of the
copied_srcs rule, which will be the name of
the
name: the name of the
internal_copied_filegroup rule, which will be
the
generated filegroup.
name of the
generated filegroup.
srcs: the source files to be copied.
srcs: the source files to be copied.
include: the expected import root of the source.
include: the expected import root of the source.
**kargs: extra arguments that will be passed into the filegroup.
**kargs: extra arguments that will be passed into the filegroup.
...
@@ -232,12 +232,12 @@ def py_proto_library(
...
@@ -232,12 +232,12 @@ def py_proto_library(
if
include
!=
None
:
if
include
!=
None
:
# Copy the output files to the desired location to make the import work.
# Copy the output files to the desired location to make the import work.
copied_srcs_name
=
name
+
"_copied_srcs
"
internal_copied_filegroup_name
=
name
+
"_internal_copied_filegroup
"
copied_srcs
(
internal_copied_filegroup
(
name
=
copied_srcs
_name
,
name
=
internal_copied_filegroup
_name
,
srcs
=
outs
,
srcs
=
outs
,
include
=
include
)
include
=
include
)
outs
=
[
copied_srcs
_name
]
outs
=
[
internal_copied_filegroup
_name
]
native
.
py_library
(
native
.
py_library
(
name
=
name
,
name
=
name
,
...
...
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