• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2018 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
15package {
16    default_team: "trendy_team_native_tools_libraries",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20python_library_host {
21    name: "python-symbol",
22    srcs: [
23        "symbol.py",
24    ],
25}
26
27python_test_host {
28    name: "python-symbol_test",
29    main: "symbol.py",
30    // Would be nice to use the library above, but as it's single-source
31    // this doesn't work.
32    srcs: ["symbol.py"],
33    test_config: "symbol-tests.xml",
34    test_suites: ["general-tests"],
35}
36
37python_test_host {
38    name: "python-stack_core_test",
39    main: "stack_core.py",
40    srcs: [
41        "example_crashes.py",
42        "stack_core.py",
43    ],
44    data: [
45        ":llvm-tools",
46    ],
47    libs: ["python-symbol"],
48    test_options: {
49        unit_test: true,
50    },
51}
52
53python_test_host {
54    name: "add3prf_test",
55    srcs: [
56        "add3prf.py",
57        "add3prf_test.py",
58    ],
59    libs: [
60        "pyfakefs",
61    ],
62}
63
64python_test_host {
65    name: "gdbclient_test",
66    srcs: [
67        "gdbclient.py",
68        "gdbclient_test.py",
69    ],
70    libs: [
71        "adb_py",
72        "gdbrunner",
73    ],
74    test_options: {
75        unit_test: true,
76    },
77    version: {
78        py3: {
79            embedded_launcher: true,
80        },
81    },
82}
83