xref: /aosp_15_r20/tools/asuite/plugin_lib/Android.bp (revision c2e18aaa1096c836b086f94603d04f4eb9cf37f5)
1*c2e18aaaSAndroid Build Coastguard Worker// Copyright (C) 2020 The Android Open Source Project
2*c2e18aaaSAndroid Build Coastguard Worker//
3*c2e18aaaSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*c2e18aaaSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*c2e18aaaSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*c2e18aaaSAndroid Build Coastguard Worker//
7*c2e18aaaSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*c2e18aaaSAndroid Build Coastguard Worker//
9*c2e18aaaSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*c2e18aaaSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*c2e18aaaSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*c2e18aaaSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*c2e18aaaSAndroid Build Coastguard Worker// limitations under the License.
14*c2e18aaaSAndroid Build Coastguard Worker
15*c2e18aaaSAndroid Build Coastguard Workerpackage {
16*c2e18aaaSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
17*c2e18aaaSAndroid Build Coastguard Worker}
18*c2e18aaaSAndroid Build Coastguard Worker
19*c2e18aaaSAndroid Build Coastguard Workerpython_defaults {
20*c2e18aaaSAndroid Build Coastguard Worker    name: "plugin_default",
21*c2e18aaaSAndroid Build Coastguard Worker    pkg_path: "plugin_lib",
22*c2e18aaaSAndroid Build Coastguard Worker}
23*c2e18aaaSAndroid Build Coastguard Worker
24*c2e18aaaSAndroid Build Coastguard Workerpython_library_host {
25*c2e18aaaSAndroid Build Coastguard Worker    name: "asuite_plugin_lib",
26*c2e18aaaSAndroid Build Coastguard Worker    defaults: ["plugin_default"],
27*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
28*c2e18aaaSAndroid Build Coastguard Worker        "**/*.py",
29*c2e18aaaSAndroid Build Coastguard Worker    ],
30*c2e18aaaSAndroid Build Coastguard Worker    exclude_srcs: [
31*c2e18aaaSAndroid Build Coastguard Worker        "*_unittest.py",
32*c2e18aaaSAndroid Build Coastguard Worker        "**/*_unittest.py",
33*c2e18aaaSAndroid Build Coastguard Worker    ],
34*c2e18aaaSAndroid Build Coastguard Worker}
35*c2e18aaaSAndroid Build Coastguard Worker
36*c2e18aaaSAndroid Build Coastguard Workerpython_test_host {
37*c2e18aaaSAndroid Build Coastguard Worker    name: "plugin_lib_unittests",
38*c2e18aaaSAndroid Build Coastguard Worker    main: "plugin_run_unittests.py",
39*c2e18aaaSAndroid Build Coastguard Worker    pkg_path: "plugin_lib",
40*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
41*c2e18aaaSAndroid Build Coastguard Worker        "**/*.py",
42*c2e18aaaSAndroid Build Coastguard Worker    ],
43*c2e18aaaSAndroid Build Coastguard Worker    libs: [
44*c2e18aaaSAndroid Build Coastguard Worker        "aidegen_lib_common_util",
45*c2e18aaaSAndroid Build Coastguard Worker        "atest_module_info",
46*c2e18aaaSAndroid Build Coastguard Worker        "asuite_cc_client",
47*c2e18aaaSAndroid Build Coastguard Worker    ],
48*c2e18aaaSAndroid Build Coastguard Worker    test_config: "plugin_lib_unittests.xml",
49*c2e18aaaSAndroid Build Coastguard Worker    test_suites: ["null-suite"],
50*c2e18aaaSAndroid Build Coastguard Worker    defaults: ["plugin_default"],
51*c2e18aaaSAndroid Build Coastguard Worker        test_options:{
52*c2e18aaaSAndroid Build Coastguard Worker        unit_test: false,
53*c2e18aaaSAndroid Build Coastguard Worker    },
54*c2e18aaaSAndroid Build Coastguard Worker}
55