• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 The Android Open Source Project
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
15py_library(
16    name = "dependency_analysis",
17    srcs = ["dependency_analysis.py"],
18    visibility = ["//visibility:public"],
19)
20
21py_library(
22    name = "queryview_xml",
23    testonly = True,
24    srcs = ["queryview_xml.py"],
25    visibility = ["//visibility:public"],
26)
27
28py_library(
29    name = "soong_module_json",
30    testonly = True,
31    srcs = ["soong_module_json.py"],
32    visibility = ["//visibility:public"],
33)
34
35py_test(
36    name = "dependency_analysis_test",
37    srcs = ["dependency_analysis_test.py"],
38    python_version = "PY3",
39    deps = [
40        ":dependency_analysis",
41        ":queryview_xml",
42        ":soong_module_json",
43    ],
44)
45
46py_binary(
47    name = "bp2build_progress",
48    srcs = ["bp2build_progress.py"],
49    visibility = ["//visibility:public"],
50    deps = [
51        ":dependency_analysis",
52        "//build/soong/ui/metrics/bp2build_progress_metrics_proto:bp2build_py_proto",
53    ],
54)
55
56py_test(
57    name = "bp2build_progress_test",
58    srcs = ["bp2build_progress_test.py"],
59    python_version = "PY3",
60    deps = [
61        ":bp2build_progress",
62        ":dependency_analysis",
63        ":queryview_xml",
64        ":soong_module_json",
65    ],
66)
67
68py_binary(
69    name = "bp2build_module_dep_infos",
70    srcs = ["bp2build_module_dep_infos.py"],
71    visibility = ["//visibility:public"],
72    deps = [":dependency_analysis"],
73)
74