| load("@rules_java//java:defs.bzl", "java_library") |
| load("//tools/base/bazel:bazel.bzl", "iml_module") |
| |
| # managed by go/iml_to_build |
| iml_module( |
| name = "intellij.android.layoutlib-loader", |
| srcs = ["src"], |
| iml_files = ["intellij.android.layoutlib-loader.iml"], |
| resources = ["resources"], |
| visibility = ["//visibility:public"], |
| # do not sort: must match IML order |
| deps = [ |
| "@intellij//:intellij-sdk", |
| "@intellij//:com.intellij.java", |
| "//tools/base/sdk-common:studio.android.sdktools.sdk-common", |
| "//tools/base/layoutlib-api:studio.android.sdktools.layoutlib-api", |
| "//tools/base/environment-services:studio.intellij.android.environment-services", |
| ], |
| ) |
| |
| # Build target to verify that layoutlib-loader builds for tools/base |
| java_library( |
| name = "tools.layoutlib-loader", |
| srcs = glob( |
| ["src/**/*.java"], |
| ), |
| resource_strip_prefix = "tools/adt/idea/layoutlib-loader/resources", |
| resources = glob(["resources/**"]), |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//tools/base/common:tools.common", |
| "//tools/base/environment-services:tools.environment-services", |
| "//tools/base/layoutlib-api:tools.layoutlib-api", |
| "//tools/base/sdk-common:tools.sdk-common", |
| "//tools/base/sdklib:tools.sdklib", |
| "@maven//:com.google.guava.guava", |
| ], |
| ) |