Skip to content

Commit

Permalink
Automated rollback of commit dc0d036b7dac011fc7aae9cbf2e4427d6d62d63a.
Browse files Browse the repository at this point in the history
*** 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
damienmg authored and buchgr committed Jul 26, 2017
1 parent bb86c8a commit ed6f653
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/tools/benchmark/java/com/google/devtools/build/benchmark/BUILD
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(["**"]),
)
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(["**"]),
)
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(["**"]),
)
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(["**"]),
)
16 changes: 16 additions & 0 deletions src/tools/benchmark/webapp/BUILD
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",
],
)

0 comments on commit ed6f653

Please sign in to comment.