1// Copyright 2024 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 15// Set of error prone rules to ensure code quality 16// PackageLocation check requires the androidCompatible=false otherwise it does not do anything. 17 18package { 19 default_applicable_licenses: ["Android-Apache-2.0"], 20 default_team: "trendy_team_adte", 21} 22 23python_library_host { 24 name: "tool_event_proto", 25 srcs: [ 26 "proto/tool_event.proto", 27 ], 28 proto: { 29 canonical_path_from_root: false, 30 }, 31} 32 33python_binary_host { 34 name: "tool_event_logger", 35 pkg_path: "tool_event_logger", 36 srcs: [ 37 "tool_event_logger.py", 38 ], 39 libs: [ 40 "asuite_cc_client", 41 "tool_event_proto", 42 ], 43 main: "tool_event_logger.py", 44} 45 46python_test_host { 47 name: "tool_event_logger_test", 48 main: "tool_event_logger_test.py", 49 pkg_path: "tool_event_logger", 50 srcs: [ 51 "tool_event_logger.py", 52 "tool_event_logger_test.py", 53 ], 54 test_options: { 55 unit_test: true, 56 }, 57 libs: [ 58 "asuite_cc_client", 59 "tool_event_proto", 60 ], 61 version: { 62 py3: { 63 embedded_launcher: true, 64 enabled: true, 65 }, 66 }, 67} 68