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 15# Description: 16# Internal Hilt libraries 17 18package(default_visibility = ["//:src"]) 19 20java_library( 21 name = "generated_component", 22 srcs = [ 23 "GeneratedComponent.java", 24 ], 25) 26 27java_library( 28 name = "component_manager", 29 srcs = [ 30 "GeneratedComponentManager.java", 31 "GeneratedComponentManagerHolder.java", 32 ], 33 exports = [ 34 ":preconditions", 35 ":unsafe_casts", 36 ], 37) 38 39java_library( 40 name = "preconditions", 41 srcs = [ 42 "Preconditions.java", 43 ], 44) 45 46java_library( 47 name = "unsafe_casts", 48 srcs = [ 49 "UnsafeCasts.java", 50 ], 51) 52 53java_library( 54 name = "component_entry_point", 55 srcs = ["ComponentEntryPoint.java"], 56 deps = ["//java/dagger/hilt:generates_root_input"], 57) 58 59java_library( 60 name = "generated_entry_point", 61 srcs = ["GeneratedEntryPoint.java"], 62 deps = ["//java/dagger/hilt:generates_root_input"], 63) 64 65filegroup( 66 name = "srcs_filegroup", 67 srcs = glob(["*"]), 68) 69