blob: 926b5e414ef28792068c9bc984948bb3a1e29865 [file] [log] [blame]
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -07001cc_library_host_shared {
2 name: "libsepolwrap",
3 srcs: ["sepol_wrap.cpp"],
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -07004 cflags: ["-Wall", "-Werror",],
5 export_include_dirs: ["include"],
Dan Willemsen948354a2017-09-01 14:08:46 -07006
7 // libsepolwrap gets loaded from the system python, which does not have the
8 // ASAN runtime. So turn off sanitization for ourself, and use static
9 // libraries, since the shared libraries will use ASAN.
Jeff Vander Stoep3ca843a2017-10-04 09:42:29 -070010 static_libs: [
11 "libbase",
12 "libsepol",
13 ],
Dan Willemsen948354a2017-09-01 14:08:46 -070014 sanitize: {
15 never: true,
16 },
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -070017}
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070018
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070019python_defaults {
20 name: "py2_only",
21 version: {
22 py2: {
Jeff Vander Stoepe9777e32017-09-23 15:11:25 -070023 embedded_launcher: true,
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070024 enabled: true,
25 },
26 py3: {
27 enabled: false,
28 },
29 },
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070030}
31
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070032python_binary_host {
33 name: "treble_sepolicy_tests",
34 srcs: [
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070035 "fc_sort.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070036 "mini_parser.py",
37 "policy.py",
Jeff Vander Stoep370a52f2018-02-08 09:54:59 -080038 "treble_sepolicy_tests.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070039 ],
40 required: ["libsepolwrap"],
41 defaults: ["py2_only"],
42}
43
44python_binary_host {
45 name: "sepolicy_tests",
46 srcs: [
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070047 "fc_sort.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070048 "policy.py",
Jeff Vander Stoep370a52f2018-02-08 09:54:59 -080049 "sepolicy_tests.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070050 ],
51 required: ["libsepolwrap"],
52 defaults: ["py2_only"],
53}
54
55python_binary_host {
56 name: "searchpolicy",
57 srcs: [
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070058 "fc_sort.py",
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070059 "policy.py",
Jeff Vander Stoep3a3756f2018-04-24 11:03:22 -070060 "searchpolicy.py",
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070061 ],
62 required: ["libsepolwrap"],
63 defaults: ["py2_only"],
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070064}
Tri Vo438684b2018-09-29 17:47:10 -070065
66python_binary_host {
67 name: "combine_maps",
68 srcs: [
69 "combine_maps.py",
70 "mini_parser.py",
71 ],
Tri Vo2777d182018-10-04 10:22:46 -070072 defaults: ["py2_only"],
Tri Vo438684b2018-09-29 17:47:10 -070073}
Jeff Vander Stoep1ca7a4c2019-04-10 16:53:17 -070074
75python_binary_host {
76 name: "fc_sort",
77 srcs: [
78 "fc_sort.py",
79 ],
80 defaults: ["py2_only"],
81}