• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2020 The Dagger Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# Description:
15#   Hilt android library for binding values in test processors.
16
17load("@rules_java//java:defs.bzl", "java_library", "java_plugin")
18
19package(default_visibility = ["//:src"])
20
21java_plugin(
22    name = "bind_value_processor",
23    generates_api = 1,
24    processor_class = "dagger.hilt.android.processor.internal.bindvalue.BindValueProcessor",
25    deps = [
26        ":bind_value_processor_lib",
27    ],
28)
29
30java_library(
31    name = "bind_value_processor_lib",
32    srcs = [
33        "BindValueGenerator.java",
34        "BindValueMetadata.java",
35        "BindValueProcessingStep.java",
36        "BindValueProcessor.java",
37        "KspBindValueProcessor.java",
38    ],
39    deps = [
40        "//:dagger_with_compiler",
41        "//java/dagger/hilt/processor/internal:base_processor",
42        "//java/dagger/hilt/processor/internal:classnames",
43        "//java/dagger/hilt/processor/internal:components",
44        "//java/dagger/hilt/processor/internal:processor_errors",
45        "//java/dagger/hilt/processor/internal:processors",
46        "//java/dagger/hilt/processor/internal/kotlin",
47        "//java/dagger/internal/codegen/extension",
48        "//java/dagger/internal/codegen/xprocessing",
49        "//third_party/java/auto:service",
50        "//third_party/java/auto:value",
51        "//third_party/java/guava/base",
52        "//third_party/java/guava/collect",
53        "//third_party/java/incap",
54        "//third_party/java/javapoet",
55        "@maven//:com_google_devtools_ksp_symbol_processing_api",
56    ],
57)
58
59filegroup(
60    name = "srcs_filegroup",
61    srcs = glob(["*"]),
62)
63