blob: fe4f213cb9b5303206bb090e5928111b465f1396 [file] [log] [blame]
Zhuoyao Zhang9e103e92024-09-09 22:20:06 +00001// 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}
Zhuoyao Zhang53359552024-09-16 23:58:11 +000022
23python_library_host {
Zhuoyao Zhang11986e82024-09-09 22:22:52 +000024 name: "edit_event_proto",
25 srcs: [
26 "proto/edit_event.proto",
27 ],
28 proto: {
29 canonical_path_from_root: false,
30 },
31}
32
33python_library_host {
Zhuoyao Zhang53359552024-09-16 23:58:11 +000034 name: "edit_monitor_lib",
35 pkg_path: "edit_monitor",
36 srcs: [
37 "daemon_manager.py",
Zhuoyao Zhangbae5f722024-09-20 16:53:59 +000038 "edit_monitor.py",
39 ],
40 libs: [
41 "asuite_cc_client",
42 "edit_event_proto",
43 "watchdog",
Zhuoyao Zhang53359552024-09-16 23:58:11 +000044 ],
45}
46
47python_test_host {
48 name: "daemon_manager_test",
49 main: "daemon_manager_test.py",
50 pkg_path: "edit_monitor",
51 srcs: [
52 "daemon_manager_test.py",
53 ],
54 libs: [
55 "edit_monitor_lib",
56 ],
57 test_options: {
58 unit_test: true,
59 },
60}
Zhuoyao Zhangd32bf9f2024-09-17 20:00:52 +000061
Zhuoyao Zhangbae5f722024-09-20 16:53:59 +000062python_test_host {
63 name: "edit_monitor_test",
64 main: "edit_monitor_test.py",
65 pkg_path: "edit_monitor",
66 srcs: [
67 "edit_monitor_test.py",
68 ],
69 libs: [
70 "edit_monitor_lib",
71 ],
72 test_options: {
73 unit_test: true,
74 },
75}
76
Zhuoyao Zhangd32bf9f2024-09-17 20:00:52 +000077python_binary_host {
78 name: "edit_monitor",
79 pkg_path: "edit_monitor",
80 srcs: [
81 "main.py",
82 ],
83 libs: [
84 "edit_monitor_lib",
85 ],
86 main: "main.py",
87}