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# A processor that aggregates metadata about Hilt @InstallIn annotations 17 18package(default_visibility = ["//:src"]) 19 20# TODO(bcorso): Remove all AggregatedDeps usage from the processor class path. 21java_library( 22 name = "annotation", 23 srcs = ["AggregatedDeps.java"], 24 exports = [ 25 "//java/dagger/hilt/codegen:originating_element", 26 ], 27) 28 29java_plugin( 30 name = "plugin", 31 generates_api = 1, 32 processor_class = "dagger.hilt.processor.internal.aggregateddeps.AggregatedDepsProcessor", 33 deps = [":processor_lib"], 34) 35 36java_library( 37 name = "processor_lib", 38 srcs = [ 39 "AggregatedDepsGenerator.java", 40 "AggregatedDepsProcessor.java", 41 "PkgPrivateEntryPointGenerator.java", 42 "PkgPrivateModuleGenerator.java", 43 ], 44 deps = [ 45 ":pkg_private_metadata", 46 "//java/dagger/hilt/processor/internal:base_processor", 47 "//java/dagger/hilt/processor/internal:classnames", 48 "//java/dagger/hilt/processor/internal:compiler_options", 49 "//java/dagger/hilt/processor/internal:components", 50 "//java/dagger/hilt/processor/internal:kotlin", 51 "//java/dagger/hilt/processor/internal:processor_errors", 52 "//java/dagger/hilt/processor/internal:processors", 53 "//java/dagger/internal/codegen/extension", 54 "//java/dagger/internal/codegen/kotlin", 55 "//third_party/java/auto:common", 56 "//third_party/java/auto:service", 57 "//third_party/java/guava/collect", 58 "//third_party/java/incap", 59 "//third_party/java/javapoet", 60 ], 61) 62 63java_library( 64 name = "pkg_private_metadata", 65 srcs = ["PkgPrivateMetadata.java"], 66 deps = [ 67 "//java/dagger/hilt/processor/internal:classnames", 68 "//java/dagger/hilt/processor/internal:kotlin", 69 "//java/dagger/hilt/processor/internal:processors", 70 "//third_party/java/auto:common", 71 "//third_party/java/auto:value", 72 "//third_party/java/javapoet", 73 ], 74) 75 76java_library( 77 name = "component_dependencies", 78 srcs = [ 79 "AggregatedDepsMetadata.java", 80 "ComponentDependencies.java", 81 ], 82 deps = [ 83 ":pkg_private_metadata", 84 "//java/dagger/hilt/processor/internal:aggregated_elements", 85 "//java/dagger/hilt/processor/internal:classnames", 86 "//java/dagger/hilt/processor/internal:component_descriptor", 87 "//java/dagger/hilt/processor/internal:processors", 88 "//java/dagger/hilt/processor/internal/earlyentrypoint:aggregated_early_entry_point_metadata", 89 "//java/dagger/hilt/processor/internal/root/ir", 90 "//java/dagger/hilt/processor/internal/uninstallmodules:aggregated_uninstall_modules_metadata", 91 "//java/dagger/internal/codegen/extension", 92 "//third_party/java/auto:value", 93 "//third_party/java/guava/base", 94 "//third_party/java/guava/collect", 95 "//third_party/java/javapoet", 96 ], 97) 98 99filegroup( 100 name = "srcs_filegroup", 101 srcs = glob(["*"]), 102) 103