1# Copyright (C) 2019 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 15# Description: 16# Internal code for implementing Hilt processors. 17 18package(default_visibility = ["//:src"]) 19 20java_library( 21 name = "base_processor", 22 srcs = [ 23 "BaseProcessor.java", 24 "ProcessorErrorHandler.java", 25 ], 26 deps = [ 27 ":processor_errors", 28 ":processors", 29 "//java/dagger/internal/guava:base", 30 "//java/dagger/internal/guava:collect", 31 "@google_bazel_common//third_party/java/auto:value", 32 "@google_bazel_common//third_party/java/javapoet", 33 "@maven//:com_google_auto_auto_common", 34 ], 35) 36 37java_library( 38 name = "processor_errors", 39 srcs = [ 40 "BadInputException.java", 41 "ErrorTypeException.java", 42 "ProcessorErrors.java", 43 ], 44 deps = [ 45 "//java/dagger/internal/guava:base", 46 "//java/dagger/internal/guava:collect", 47 "@google_bazel_common//third_party/java/error_prone:annotations", 48 "@google_bazel_common//third_party/java/jsr305_annotations", 49 "@maven//:com_google_auto_auto_common", 50 ], 51) 52 53java_library( 54 name = "processors", 55 srcs = [ 56 "AnnotationValues.java", 57 "Processors.java", 58 ], 59 deps = [ 60 ":classnames", 61 ":kotlin", 62 ":processor_errors", 63 "//java/dagger/internal/codegen/extension", 64 "//java/dagger/internal/codegen/kotlin", 65 "//java/dagger/internal/codegen/langmodel", 66 "//java/dagger/internal/guava:base", 67 "//java/dagger/internal/guava:collect", 68 "@google_bazel_common//third_party/java/javapoet", 69 "@google_bazel_common//third_party/java/jsr305_annotations", 70 "@google_bazel_common//third_party/java/jsr330_inject", 71 "@maven//:com_google_auto_auto_common", 72 "@maven//:org_jetbrains_kotlin_kotlin_stdlib", 73 "@maven//:org_jetbrains_kotlinx_kotlinx_metadata_jvm", 74 ], 75) 76 77java_library( 78 name = "classnames", 79 srcs = [ 80 "ClassNames.java", 81 ], 82 deps = [ 83 "@google_bazel_common//third_party/java/javapoet", 84 ], 85) 86 87java_library( 88 name = "component_names", 89 srcs = [ 90 "ComponentNames.java", 91 ], 92 deps = [ 93 ":processors", 94 "@google_bazel_common//third_party/java/javapoet", 95 ], 96) 97 98java_library( 99 name = "component_descriptor", 100 srcs = [ 101 "ComponentDescriptor.java", 102 "ComponentGenerator.java", 103 "ComponentTree.java", 104 ], 105 deps = [ 106 ":classnames", 107 ":processors", 108 "//java/dagger/internal/codegen/extension", 109 "//java/dagger/internal/guava:base", 110 "//java/dagger/internal/guava:collect", 111 "//java/dagger/internal/guava:graph", 112 "@google_bazel_common//third_party/java/auto:value", 113 "@google_bazel_common//third_party/java/javapoet", 114 ], 115) 116 117java_library( 118 name = "components", 119 srcs = [ 120 "Components.java", 121 ], 122 deps = [ 123 ":classnames", 124 ":component_descriptor", 125 ":kotlin", 126 ":processor_errors", 127 ":processors", 128 "//java/dagger/hilt/processor/internal/definecomponent:define_components", 129 "//java/dagger/internal/codegen/extension", 130 "//java/dagger/internal/guava:base", 131 "//java/dagger/internal/guava:collect", 132 "@google_bazel_common//third_party/java/javapoet", 133 "@maven//:com_google_auto_auto_common", 134 ], 135) 136 137java_library( 138 name = "kotlin", 139 srcs = ["KotlinMetadataUtils.java"], 140 deps = [ 141 "//:dagger_with_compiler", 142 "//java/dagger/internal/codegen/kotlin", 143 ], 144) 145 146filegroup( 147 name = "srcs_filegroup", 148 srcs = glob(["*"]), 149) 150