1// Copyright (C) 2020 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
15python_defaults {
16    name: "plugin_default",
17    pkg_path: "plugin_lib",
18    version: {
19        py2: {
20            enabled: false,
21            embedded_launcher: false,
22        },
23        py3: {
24            enabled: true,
25            embedded_launcher: false,
26        },
27    },
28}
29
30python_library_host {
31    name: "asuite_plugin_lib",
32    defaults: ["plugin_default"],
33    srcs: [
34        "**/*.py",
35    ],
36    exclude_srcs: [
37        "*_unittest.py",
38        "**/*_unittest.py",
39    ],
40    libs: [
41        "aidegen_lib_common_util",
42        "atest_module_info",
43        "asuite_cc_client",
44    ],
45}
46
47python_test_host {
48    name: "plugin_lib_unittests",
49    main: "plugin_run_unittests.py",
50    pkg_path: "plugin_lib",
51    srcs: [
52        "**/*.py",
53    ],
54    libs: [
55        "aidegen_lib_common_util",
56        "atest_module_info",
57        "asuite_cc_client",
58    ],
59    test_config: "plugin_lib_unittests.xml",
60    test_suites: ["general-tests"],
61    defaults: ["plugin_default"],
62}
63