blob: 959a21429a8990ce7a1499a811fa6c7a6450d9be [file] [log] [blame]
Bob Badour601ebb42021-02-03 23:07:40 -08001package {
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
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -07009cc_library_host_shared {
10 name: "libsepolwrap",
11 srcs: ["sepol_wrap.cpp"],
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -070012 cflags: ["-Wall", "-Werror",],
13 export_include_dirs: ["include"],
Dan Willemsen948354a2017-09-01 14:08:46 -070014
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.
Jeff Vander Stoep3ca843a2017-10-04 09:42:29 -070018 static_libs: [
19 "libbase",
20 "libsepol",
21 ],
Dan Willemsen948354a2017-09-01 14:08:46 -070022 sanitize: {
23 never: true,
24 },
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -070025}
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070026
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070027python_binary_host {
28 name: "treble_sepolicy_tests",
29 srcs: [
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070030 "fc_sort.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070031 "mini_parser.py",
32 "policy.py",
Jeff Vander Stoep370a52f2018-02-08 09:54:59 -080033 "treble_sepolicy_tests.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070034 ],
35 required: ["libsepolwrap"],
Dan Cashman91d398d2017-09-26 12:58:29 -070036}
37
38python_binary_host {
39 name: "sepolicy_tests",
40 srcs: [
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070041 "fc_sort.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070042 "policy.py",
Jeff Vander Stoep370a52f2018-02-08 09:54:59 -080043 "sepolicy_tests.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070044 ],
45 required: ["libsepolwrap"],
Dan Cashman91d398d2017-09-26 12:58:29 -070046}
47
48python_binary_host {
49 name: "searchpolicy",
50 srcs: [
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070051 "fc_sort.py",
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070052 "policy.py",
Jeff Vander Stoep3a3756f2018-04-24 11:03:22 -070053 "searchpolicy.py",
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070054 ],
55 required: ["libsepolwrap"],
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070056}
Tri Vo438684b2018-09-29 17:47:10 -070057
58python_binary_host {
59 name: "combine_maps",
60 srcs: [
61 "combine_maps.py",
62 "mini_parser.py",
63 ],
64}
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070065
66python_binary_host {
67 name: "fc_sort",
68 srcs: [
69 "fc_sort.py",
70 ],
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070071}
Inseob Kim2bcc0452020-12-21 13:16:44 +090072
ThiƩbaud Weksteenb75b4d22021-11-24 14:44:28 +110073python_test_host {
74 name: "fc_sort_test",
75 srcs: [
76 "fc_sort.py",
77 "fc_sort_test.py",
78 ],
ThiƩbaud Weksteenb75b4d22021-11-24 14:44:28 +110079 test_options: {
80 unit_test: true,
81 }
82}
83
Inseob Kim2bcc0452020-12-21 13:16:44 +090084python_binary_host {
85 name: "check_prop_prefix",
86 srcs: ["check_prop_prefix.py"],
87}