blob: abb5e35dff579d8aa8bd91c8f75577cd9d16414e [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 stl: "libc++_static",
15 sanitize: {
16 never: true,
17 },
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -070018}
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070019
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070020python_defaults {
21 name: "py2_only",
22 version: {
23 py2: {
Jeff Vander Stoepe9777e32017-09-23 15:11:25 -070024 embedded_launcher: true,
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070025 enabled: true,
26 },
27 py3: {
28 enabled: false,
29 },
30 },
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070031}
32
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070033python_binary_host {
34 name: "treble_sepolicy_tests",
35 srcs: [
Jeff Vander Stoep370a52f2018-02-08 09:54:59 -080036 "FcSort.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070037 "mini_parser.py",
38 "policy.py",
Jeff Vander Stoep370a52f2018-02-08 09:54:59 -080039 "treble_sepolicy_tests.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070040 ],
41 required: ["libsepolwrap"],
42 defaults: ["py2_only"],
43}
44
45python_binary_host {
46 name: "sepolicy_tests",
47 srcs: [
Jeff Vander Stoep370a52f2018-02-08 09:54:59 -080048 "FcSort.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070049 "policy.py",
Jeff Vander Stoep370a52f2018-02-08 09:54:59 -080050 "sepolicy_tests.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070051 ],
52 required: ["libsepolwrap"],
53 defaults: ["py2_only"],
54}
55
56python_binary_host {
57 name: "searchpolicy",
58 srcs: [
Jeff Vander Stoep3a3756f2018-04-24 11:03:22 -070059 "FcSort.py",
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070060 "policy.py",
Jeff Vander Stoep3a3756f2018-04-24 11:03:22 -070061 "searchpolicy.py",
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070062 ],
63 required: ["libsepolwrap"],
64 defaults: ["py2_only"],
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070065}