-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the Windows JNI C++ sources to a separate package and separate namespace. This no-op refactoring allows other build rules than Bazel's client library to depend on file I/O and/or JNI functionality. A follow-up commit will split the //src/main/native/windows:processes library into :jni-processes and :jni-file. Change-Id: I33c5f8ebd8961cc440db3b4a95ff78024d7c1d74 PiperOrigin-RevId: 160404298
- Loading branch information
1 parent
1e0628d
commit f070234
Showing
16 changed files
with
195 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package(default_visibility = ["//visibility:private"]) | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
visibility = ["//src/main/native:__pkg__"], | ||
) | ||
|
||
# TODO(xingao): verify that this filegroup contains exactly what it has to wrt. | ||
# where it is used (//src/main/native:embedded_tools). | ||
# Context: https://github.com/bazelbuild/bazel/commit/33d05f6b551cf2fdb257cb536a5e864d095144a1 | ||
filegroup( | ||
name = "embedded_tools", | ||
srcs = [":srcs"], | ||
visibility = ["//src/main/native:__pkg__"], | ||
) | ||
|
||
filegroup( | ||
name = "raw-sources", | ||
srcs = glob([ | ||
"*.cc", | ||
"*.h", | ||
]), | ||
visibility = ["//src/main/native:__pkg__"], | ||
) | ||
|
||
cc_library( | ||
name = "lib-file", | ||
srcs = ["file.cc"], | ||
hdrs = ["file.h"], | ||
visibility = [ | ||
"//src/main/cpp:__subpackages__", | ||
"//src/test/cpp:__subpackages__", | ||
"//src/test/native:__subpackages__", | ||
], | ||
deps = [":lib-util"], | ||
) | ||
|
||
cc_library( | ||
name = "lib-util", | ||
srcs = ["util.cc"], | ||
hdrs = ["util.h"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.