• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 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_binary(
16    name = "incremental_build",
17    srcs = [
18        "cuj_catalog.py",
19        "incremental_build.py",
20        "pretty.py",
21        "ui.py",
22    ],
23    main = "incremental_build.py",
24    python_version = "PY3",
25    deps = [":perf_metrics"],
26)
27
28py_library(
29    name = "util",
30    srcs = ["util.py"],
31)
32
33py_test(
34    name = "util_test",
35    srcs = ["util_test.py"],
36    deps = [":util"],
37)
38
39py_library(
40    name = "perf_metrics",
41    srcs = ["perf_metrics.py"],
42    deps = [
43        ":util",
44        "//build/soong/ui/metrics:metrics-py-proto",
45    ],
46)
47
48py_test(
49    name = "perf_metrics_test",
50    srcs = ["perf_metrics_test.py"],
51    deps = [":perf_metrics"],
52)
53