blob: 99969bc5d430c484e7eab8595821db72d37f7ecd [file] [log] [blame]
load("//tools/base/bazel:bazel.bzl", "iml_module")
iml_module(
name = "studio.analyzer",
srcs = ["src/main/java"],
iml_files = ["analyzer.iml"],
tags = ["managed"],
test_resources = ["src/test/resources"],
test_srcs = ["src/test/java"],
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"//tools/base/annotations:studio.android-annotations[module]",
"//tools/base/common:studio.common[module]",
"//tools/idea/.idea/libraries:Guava",
"//prebuilts/tools/common/archive-patcher:explainer",
"//prebuilts/tools/common/archive-patcher:generator",
"//prebuilts/tools/common/archive-patcher:shared",
"//tools/idea/.idea/libraries:dexlib2",
"//tools/idea/.idea/libraries:baksmali",
"//tools/base/testutils:studio.testutils[module, test]",
"//tools/idea/.idea/libraries:JUnit4[test]",
"//tools/idea/.idea/libraries:truth[test]",
"//tools/idea/.idea/libraries:jimfs[test]",
"//tools/base/apkparser:studio.binary-resources[module]",
"//tools/base/sdk-common:studio.sdk-common[module]",
],
)
java_library(
name = "tools.analyzer",
srcs = glob(["src/main/java/**"]),
visibility = ["//visibility:public"],
deps = [
"//prebuilts/tools/common/archive-patcher:explainer",
"//prebuilts/tools/common/archive-patcher:generator",
"//prebuilts/tools/common/archive-patcher:shared",
"//tools/base/annotations",
"//tools/base/apkparser:tools.binary-resources",
"//tools/base/common:tools.common",
"//tools/base/sdk-common:tools.sdk-common",
"//tools/base/sdklib:tools.sdklib",
"//tools/base/testutils:tools.testutils",
"//tools/base/third_party:com.google.guava_guava",
"//tools/base/third_party:org.smali_baksmali",
"//tools/base/third_party:org.smali_dexlib2",
],
)
java_test(
name = "tools.tests",
srcs = glob(["src/test/java/**"]),
jvm_flags = ["-Dtest.suite.jar=tools.tests.jar"],
resources = glob(["src/test/resources/**"]),
test_class = "com.android.testutils.JarTestSuite",
deps = [
":tools.analyzer",
"//tools/base/annotations",
"//tools/base/common:tools.common",
"//tools/base/testutils:tools.testutils",
"//tools/base/third_party:com.google.jimfs_jimfs",
"//tools/base/third_party:com.google.truth_truth",
"//tools/base/third_party:junit_junit",
"//tools/base/third_party:org.smali_dexlib2",
],
)