xref: /aosp_15_r20/system/extras/torq/Android.bp (revision 288bf5226967eb3dac5cce6c939ccc2a7f2b4fe5)
1*288bf522SAndroid Build Coastguard Worker// Copyright (C) 2024 The Android Open Source Project
2*288bf522SAndroid Build Coastguard Worker//
3*288bf522SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*288bf522SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*288bf522SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*288bf522SAndroid Build Coastguard Worker//
7*288bf522SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*288bf522SAndroid Build Coastguard Worker//
9*288bf522SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*288bf522SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*288bf522SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*288bf522SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*288bf522SAndroid Build Coastguard Worker// limitations under the License.
14*288bf522SAndroid Build Coastguard Worker
15*288bf522SAndroid Build Coastguard Workerpackage {
16*288bf522SAndroid Build Coastguard Worker    default_team: "trendy_team_aaos_framework",
17*288bf522SAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
18*288bf522SAndroid Build Coastguard Worker}
19*288bf522SAndroid Build Coastguard Worker
20*288bf522SAndroid Build Coastguard Workerpython_defaults {
21*288bf522SAndroid Build Coastguard Worker    name: "torq_defaults",
22*288bf522SAndroid Build Coastguard Worker    srcs: [
23*288bf522SAndroid Build Coastguard Worker        "torq.py",
24*288bf522SAndroid Build Coastguard Worker        "command.py",
25*288bf522SAndroid Build Coastguard Worker        "command_executor.py",
26*288bf522SAndroid Build Coastguard Worker        "validation_error.py",
27*288bf522SAndroid Build Coastguard Worker        "device.py",
28*288bf522SAndroid Build Coastguard Worker        "config_builder.py",
29*288bf522SAndroid Build Coastguard Worker        "open_ui.py",
30*288bf522SAndroid Build Coastguard Worker        "utils.py",
31*288bf522SAndroid Build Coastguard Worker        "validate_simpleperf.py",
32*288bf522SAndroid Build Coastguard Worker    ],
33*288bf522SAndroid Build Coastguard Worker}
34*288bf522SAndroid Build Coastguard Worker
35*288bf522SAndroid Build Coastguard Workerpython_binary_host {
36*288bf522SAndroid Build Coastguard Worker    name: "torq",
37*288bf522SAndroid Build Coastguard Worker    main: "torq.py",
38*288bf522SAndroid Build Coastguard Worker    defaults: ["torq_defaults"],
39*288bf522SAndroid Build Coastguard Worker}
40*288bf522SAndroid Build Coastguard Worker
41*288bf522SAndroid Build Coastguard Workerpython_test_host {
42*288bf522SAndroid Build Coastguard Worker    name: "torq_unit_test",
43*288bf522SAndroid Build Coastguard Worker    main: "tests/torq_unit_test.py",
44*288bf522SAndroid Build Coastguard Worker    srcs: ["tests/torq_unit_test.py"],
45*288bf522SAndroid Build Coastguard Worker    defaults: ["torq_defaults"],
46*288bf522SAndroid Build Coastguard Worker    version: {
47*288bf522SAndroid Build Coastguard Worker        py3: {
48*288bf522SAndroid Build Coastguard Worker            enabled: true,
49*288bf522SAndroid Build Coastguard Worker            embedded_launcher: false,
50*288bf522SAndroid Build Coastguard Worker        },
51*288bf522SAndroid Build Coastguard Worker    },
52*288bf522SAndroid Build Coastguard Worker    test_options: {
53*288bf522SAndroid Build Coastguard Worker        unit_test: true,
54*288bf522SAndroid Build Coastguard Worker    },
55*288bf522SAndroid Build Coastguard Worker}
56*288bf522SAndroid Build Coastguard Worker
57*288bf522SAndroid Build Coastguard Workerpython_test_host {
58*288bf522SAndroid Build Coastguard Worker    name: "device_unit_test",
59*288bf522SAndroid Build Coastguard Worker    main: "tests/device_unit_test.py",
60*288bf522SAndroid Build Coastguard Worker    srcs: ["tests/device_unit_test.py"],
61*288bf522SAndroid Build Coastguard Worker    defaults: ["torq_defaults"],
62*288bf522SAndroid Build Coastguard Worker    version: {
63*288bf522SAndroid Build Coastguard Worker        py3: {
64*288bf522SAndroid Build Coastguard Worker            enabled: true,
65*288bf522SAndroid Build Coastguard Worker            embedded_launcher: false,
66*288bf522SAndroid Build Coastguard Worker        },
67*288bf522SAndroid Build Coastguard Worker    },
68*288bf522SAndroid Build Coastguard Worker    test_options: {
69*288bf522SAndroid Build Coastguard Worker        unit_test: true,
70*288bf522SAndroid Build Coastguard Worker    },
71*288bf522SAndroid Build Coastguard Worker}
72*288bf522SAndroid Build Coastguard Worker
73*288bf522SAndroid Build Coastguard Workerpython_test_host {
74*288bf522SAndroid Build Coastguard Worker    name: "config_builder_unit_test",
75*288bf522SAndroid Build Coastguard Worker    main: "tests/config_builder_unit_test.py",
76*288bf522SAndroid Build Coastguard Worker    srcs: ["tests/config_builder_unit_test.py"],
77*288bf522SAndroid Build Coastguard Worker    defaults: ["torq_defaults"],
78*288bf522SAndroid Build Coastguard Worker    version: {
79*288bf522SAndroid Build Coastguard Worker        py3: {
80*288bf522SAndroid Build Coastguard Worker            enabled: true,
81*288bf522SAndroid Build Coastguard Worker            embedded_launcher: false,
82*288bf522SAndroid Build Coastguard Worker        },
83*288bf522SAndroid Build Coastguard Worker    },
84*288bf522SAndroid Build Coastguard Worker    test_options: {
85*288bf522SAndroid Build Coastguard Worker        unit_test: true,
86*288bf522SAndroid Build Coastguard Worker    },
87*288bf522SAndroid Build Coastguard Worker}
88*288bf522SAndroid Build Coastguard Worker
89*288bf522SAndroid Build Coastguard Workerpython_test_host {
90*288bf522SAndroid Build Coastguard Worker    name: "command_executor_unit_test",
91*288bf522SAndroid Build Coastguard Worker    main: "tests/command_executor_unit_test.py",
92*288bf522SAndroid Build Coastguard Worker    srcs: ["tests/command_executor_unit_test.py"],
93*288bf522SAndroid Build Coastguard Worker    defaults: ["torq_defaults"],
94*288bf522SAndroid Build Coastguard Worker    version: {
95*288bf522SAndroid Build Coastguard Worker        py3: {
96*288bf522SAndroid Build Coastguard Worker            enabled: true,
97*288bf522SAndroid Build Coastguard Worker            embedded_launcher: false,
98*288bf522SAndroid Build Coastguard Worker        },
99*288bf522SAndroid Build Coastguard Worker    },
100*288bf522SAndroid Build Coastguard Worker    test_options: {
101*288bf522SAndroid Build Coastguard Worker        unit_test: true,
102*288bf522SAndroid Build Coastguard Worker    },
103*288bf522SAndroid Build Coastguard Worker}
104*288bf522SAndroid Build Coastguard Worker
105*288bf522SAndroid Build Coastguard Workerpython_test_host {
106*288bf522SAndroid Build Coastguard Worker    name: "validate_simpleperf_unit_test",
107*288bf522SAndroid Build Coastguard Worker    main: "tests/validate_simpleperf_unit_test.py",
108*288bf522SAndroid Build Coastguard Worker    srcs: ["tests/validate_simpleperf_unit_test.py"],
109*288bf522SAndroid Build Coastguard Worker    defaults: ["torq_defaults"],
110*288bf522SAndroid Build Coastguard Worker    version: {
111*288bf522SAndroid Build Coastguard Worker        py3: {
112*288bf522SAndroid Build Coastguard Worker            enabled: true,
113*288bf522SAndroid Build Coastguard Worker            embedded_launcher: false,
114*288bf522SAndroid Build Coastguard Worker        },
115*288bf522SAndroid Build Coastguard Worker    },
116*288bf522SAndroid Build Coastguard Worker    test_options: {
117*288bf522SAndroid Build Coastguard Worker        unit_test: true,
118*288bf522SAndroid Build Coastguard Worker    },
119*288bf522SAndroid Build Coastguard Worker}
120