xref: /aosp_15_r20/external/dagger2/java/dagger/hilt/internal/BUILD (revision f585d8a307d0621d6060bd7e80091fdcbf94fe27)
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 = "test_singleton_component",
22    srcs = ["TestSingletonComponent.java"],
23    deps = [":generated_component"],
24)
25
26java_library(
27    name = "generated_component",
28    srcs = ["GeneratedComponent.java"],
29)
30
31java_library(
32    name = "test_singleton_component_manager",
33    srcs = ["TestSingletonComponentManager.java"],
34    deps = [":component_manager"],
35)
36
37java_library(
38    name = "component_manager",
39    srcs = [
40        "GeneratedComponentManager.java",
41        "GeneratedComponentManagerHolder.java",
42    ],
43    exports = [
44        ":preconditions",
45        ":unsafe_casts",
46    ],
47)
48
49java_library(
50    name = "preconditions",
51    srcs = [
52        "Preconditions.java",
53    ],
54)
55
56java_library(
57    name = "unsafe_casts",
58    srcs = [
59        "UnsafeCasts.java",
60    ],
61)
62
63java_library(
64    name = "component_entry_point",
65    srcs = ["ComponentEntryPoint.java"],
66    proguard_specs = ["proguard-rules.pro"],
67    deps = ["//java/dagger/hilt:generates_root_input"],
68)
69
70java_library(
71    name = "generated_entry_point",
72    srcs = ["GeneratedEntryPoint.java"],
73    proguard_specs = ["proguard-rules.pro"],
74    deps = ["//java/dagger/hilt:generates_root_input"],
75)
76
77filegroup(
78    name = "srcs_filegroup",
79    srcs = glob(["*"]),
80)
81