• 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    imports = ["."],
19    visibility = ["//visibility:public"],
20    deps = ["//build/soong/ui/metrics:metrics-py-proto"],
21)
22
23py_library(
24    name = "queryview_xml",
25    testonly = True,
26    srcs = ["queryview_xml.py"],
27    imports = ["."],
28    visibility = ["//visibility:public"],
29)
30
31py_library(
32    name = "soong_module_json",
33    testonly = True,
34    srcs = ["soong_module_json.py"],
35    imports = ["."],
36    visibility = ["//visibility:public"],
37)
38
39py_test(
40    name = "dependency_analysis_test",
41    size = "small",
42    srcs = ["dependency_analysis_test.py"],
43    python_version = "PY3",
44    deps = [
45        ":dependency_analysis",
46        ":queryview_xml",
47        ":soong_module_json",
48    ],
49)
50
51py_binary(
52    name = "bp2build_progress",
53    srcs = ["bp2build_progress.py"],
54    visibility = ["//visibility:public"],
55    deps = [
56        ":dependency_analysis",
57        "//build/soong/ui/metrics/bp2build_progress_metrics_proto:bp2build_py_proto",
58    ],
59)
60
61py_test(
62    name = "bp2build_progress_test",
63    size = "small",
64    srcs = ["bp2build_progress_test.py"],
65    python_version = "PY3",
66    deps = [
67        ":bp2build_progress",
68        ":dependency_analysis",
69        ":queryview_xml",
70        ":soong_module_json",
71    ],
72)
73
74py_binary(
75    name = "bp2build_module_dep_infos",
76    srcs = ["bp2build_module_dep_infos.py"],
77    visibility = ["//visibility:public"],
78    deps = [":dependency_analysis"],
79)
80