blob: 10eb897f19ae236268274ebfb6eda2962964efb0 [file] [log] [blame]
load("//tools/base/bazel:utils.bzl", "flat_archive", "java_jarjar")
java_library(
name = "transform",
srcs = glob(["src/main/java/**/*.java"]),
resources = glob(["src/main/resources/**"]),
visibility = ["//visibility:public"],
runtime_deps = [":dependencies.jar"],
deps = [
"@maven//:org.ow2.asm.asm",
],
)
java_jarjar(
name = "profilers-transform",
srcs = [
":dependencies.jar",
":transform",
"@maven//:org.ow2.asm.asm",
],
rules = "jarjar_rules.txt",
visibility = ["//visibility:public"],
)
flat_archive(
name = "dependencies",
deps = {
"//tools/base/profiler/app:studio-profiler": "dependencies",
"//tools/base/profiler/app:perfa_okhttp_java": "dependencies",
},
)
java_test(
name = "test",
srcs = glob([
"testSrc/com/android/tools/profiler/transform/*.java",
]),
data = glob(["testData/**"]),
test_class = "com.android.tools.profiler.transform.TransformTest",
deps = [
":transform",
"//tools/base/testutils:tools.testutils",
"@maven//:junit.junit",
],
)