forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated rollback of commit dc0d036b7dac011fc7aae9cbf2e4427d6d62d63a.
*** Reason for rollback *** Relies on bazelbuild@ecd3ff1, which removes src/tools/benchmark/BUILD file: see bazelbuild@ecd3ff1 *** Original change description *** Auto-export src/tools/benchmark/**/BUILD This and further changes may contain minor modifications to BUILD files that don't serve any apparent purpose. The reason for these changes is that we're switching from checked-in BUILD files to generated BUILD files, and there may be small differences between these files. PiperOrigin-RevId: 163196332
- Loading branch information
Showing
5 changed files
with
196 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
src/tools/benchmark/java/com/google/devtools/build/benchmark/BUILD
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,50 @@ | ||
package(default_visibility = ["//src/tools/benchmark:__subpackages__"]) | ||
|
||
java_proto_library( | ||
name = "build_data_java_proto", | ||
deps = [":build_data_proto"], | ||
) | ||
|
||
proto_library( | ||
name = "build_data_proto", | ||
srcs = ["build_data.proto"], | ||
) | ||
|
||
java_binary( | ||
name = "benchmark", | ||
srcs = glob(["*.java"]), | ||
main_class = "com.google.devtools.build.benchmark.Main", | ||
deps = [ | ||
":build_data_java_proto", | ||
"//src/main/java/com/google/devtools/build/lib:shell", | ||
"//src/main/java/com/google/devtools/build/lib:vfs", | ||
"//src/main/java/com/google/devtools/common/options", | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark/codegenerator:codegenerator_lib", | ||
"//third_party:auto_value", | ||
"//third_party:guava", | ||
"//third_party/protobuf:protobuf_java", | ||
"//third_party/protobuf:protobuf_java_util", | ||
], | ||
) | ||
|
||
java_library( | ||
name = "benchmark_lib", | ||
testonly = 1, | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
":build_data_java_proto", | ||
"//src/main/java/com/google/devtools/build/lib:shell", | ||
"//src/main/java/com/google/devtools/build/lib:vfs", | ||
"//src/main/java/com/google/devtools/common/options", | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark/codegenerator:codegenerator_lib", | ||
"//third_party:auto_value", | ||
"//third_party:guava", | ||
"//third_party/protobuf:protobuf_java", | ||
"//third_party/protobuf:protobuf_java_util", | ||
], | ||
) | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
) |
27 changes: 27 additions & 0 deletions
27
src/tools/benchmark/java/com/google/devtools/build/benchmark/codegenerator/BUILD
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,27 @@ | ||
package(default_visibility = ["//src/tools/benchmark:__subpackages__"]) | ||
|
||
java_binary( | ||
name = "codegenerator", | ||
srcs = glob(["*.java"]), | ||
main_class = "com.google.devtools.build.benchmark.codegenerator.Main", | ||
deps = [ | ||
"//src/main/java/com/google/devtools/common/options", | ||
"//third_party:guava", | ||
"//third_party/java/javapoet", | ||
], | ||
) | ||
|
||
java_library( | ||
name = "codegenerator_lib", | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
"//src/main/java/com/google/devtools/common/options", | ||
"//third_party:guava", | ||
"//third_party/java/javapoet", | ||
], | ||
) | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
) |
42 changes: 42 additions & 0 deletions
42
src/tools/benchmark/javatests/com/google/devtools/build/benchmark/BUILD
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,42 @@ | ||
package(default_visibility = ["//src/tools/benchmark:__subpackages__"]) | ||
|
||
java_test( | ||
name = "MainTest", | ||
srcs = ["MainTest.java"], | ||
deps = [ | ||
"//src/main/java/com/google/devtools/common/options", | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark:benchmark_lib", | ||
"//third_party:junit4", | ||
"//third_party:truth", | ||
], | ||
) | ||
|
||
java_test( | ||
name = "BazelBuildCaseTest", | ||
srcs = ["BazelBuildCaseTest.java"], | ||
deps = [ | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark:benchmark_lib", | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark:build_data_java_proto", | ||
"//third_party:guava", | ||
"//third_party:junit4", | ||
"//third_party:truth", | ||
], | ||
) | ||
|
||
java_test( | ||
name = "BazelBuilderTest", | ||
srcs = ["BazelBuilderTest.java"], | ||
deps = [ | ||
"//src/main/java/com/google/devtools/build/lib:shell", | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark:benchmark_lib", | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark:build_data_java_proto", | ||
"//third_party:guava", | ||
"//third_party:junit4", | ||
"//third_party:truth", | ||
], | ||
) | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
) |
61 changes: 61 additions & 0 deletions
61
src/tools/benchmark/javatests/com/google/devtools/build/benchmark/codegenerator/BUILD
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,61 @@ | ||
package(default_visibility = ["//src/tools/benchmark:__subpackages__"]) | ||
|
||
java_test( | ||
name = "JavaCodeGeneratorHelperTest", | ||
srcs = ["JavaCodeGeneratorHelperTest.java"], | ||
deps = [ | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark/codegenerator:codegenerator_lib", | ||
"//third_party:guava", | ||
"//third_party:junit4", | ||
"//third_party:truth", | ||
], | ||
) | ||
|
||
java_test( | ||
name = "JavaCodeGeneratorTest", | ||
srcs = ["JavaCodeGeneratorTest.java"], | ||
deps = [ | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark/codegenerator:codegenerator_lib", | ||
"//third_party:guava", | ||
"//third_party:junit4", | ||
"//third_party:truth", | ||
], | ||
) | ||
|
||
java_test( | ||
name = "CppCodeGeneratorHelperTest", | ||
srcs = ["CppCodeGeneratorHelperTest.java"], | ||
deps = [ | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark/codegenerator:codegenerator_lib", | ||
"//third_party:guava", | ||
"//third_party:junit4", | ||
"//third_party:truth", | ||
], | ||
) | ||
|
||
java_test( | ||
name = "CppCodeGeneratorTest", | ||
srcs = ["CppCodeGeneratorTest.java"], | ||
deps = [ | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark/codegenerator:codegenerator_lib", | ||
"//third_party:guava", | ||
"//third_party:junit4", | ||
"//third_party:truth", | ||
], | ||
) | ||
|
||
java_test( | ||
name = "MainTest", | ||
srcs = ["MainTest.java"], | ||
deps = [ | ||
"//src/main/java/com/google/devtools/common/options", | ||
"//src/tools/benchmark/java/com/google/devtools/build/benchmark/codegenerator:codegenerator_lib", | ||
"//third_party:junit4", | ||
"//third_party:truth", | ||
], | ||
) | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
) |
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,16 @@ | ||
package(default_visibility = ["//src/tools/benchmark:__pkg__"]) | ||
|
||
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
) | ||
|
||
pkg_tar( | ||
name = "site", | ||
files = [ | ||
"draw_chart.js", | ||
"index.html", | ||
], | ||
) |