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