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
15package {
16    default_team: "trendy_team_aaos_framework",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20python_binary_host {
21    name: "perf_stats_parser",
22    main: "parser/perf_stats_parser.py",
23    srcs: [
24        "parser/carwatchdog_dump_parser.py",
25        "parser/perf_stats_parser.py",
26        "parser/perf_stats_proto_utils.py",
27    ],
28    libs: [
29        "perf_stats_proto",
30    ],
31    version: {
32        py3: {
33            embedded_launcher: true,
34        },
35    },
36}
37
38python_library_host {
39    name: "perf_stats_proto",
40    srcs: ["parser/*.proto"],
41    proto: {
42        canonical_path_from_root: false,
43    },
44}
45
46cc_binary {
47    name: "watchdog_cycles",
48    srcs: ["cpufreq/watchdog_cycles_task.cpp"],
49    header_libs: ["libeigen"],
50    cppflags: [
51        "-O2",
52        "-Wall",
53        "-Werror",
54        "-Wno-missing-field-initializers",
55        "-Wno-sign-compare",
56    ],
57}
58