• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // the below license kinds from "system_sepolicy_license":
5    //   SPDX-license-identifier-Apache-2.0
6    default_applicable_licenses: ["system_sepolicy_license"],
7}
8
9cc_library_host_shared {
10    name: "libsepolwrap",
11    srcs: ["sepol_wrap.cpp"],
12    cflags: ["-Wall", "-Werror",],
13    export_include_dirs: ["include"],
14
15    // libsepolwrap gets loaded from the system python, which does not have the
16    // ASAN runtime. So turn off sanitization for ourself, and  use static
17    // libraries, since the shared libraries will use ASAN.
18    static_libs: [
19        "libbase",
20        "libsepol",
21    ],
22    sanitize: {
23        never: true,
24    },
25}
26
27python_defaults {
28    name: "py2_only",
29    version: {
30        py2: {
31            embedded_launcher: true,
32            enabled: true,
33        },
34        py3: {
35            enabled: false,
36        },
37    },
38}
39
40python_binary_host {
41    name: "treble_sepolicy_tests",
42    srcs: [
43        "fc_sort.py",
44        "mini_parser.py",
45        "policy.py",
46        "treble_sepolicy_tests.py",
47    ],
48    required: ["libsepolwrap"],
49    defaults: ["py2_only"],
50}
51
52python_binary_host {
53    name: "sepolicy_tests",
54    srcs: [
55        "fc_sort.py",
56        "policy.py",
57        "sepolicy_tests.py",
58    ],
59    required: ["libsepolwrap"],
60    defaults: ["py2_only"],
61}
62
63python_binary_host {
64    name: "searchpolicy",
65    srcs: [
66        "fc_sort.py",
67        "policy.py",
68        "searchpolicy.py",
69    ],
70    required: ["libsepolwrap"],
71    defaults: ["py2_only"],
72}
73
74python_binary_host {
75    name: "combine_maps",
76    srcs: [
77        "combine_maps.py",
78        "mini_parser.py",
79    ],
80    defaults: ["py2_only"],
81}
82
83python_binary_host {
84    name: "fc_sort",
85    srcs: [
86        "fc_sort.py",
87    ],
88    defaults: ["py2_only"],
89}
90
91python_binary_host {
92    name: "check_prop_prefix",
93    srcs: ["check_prop_prefix.py"],
94}
95