blob: 144b9951564063c13686be3b8025c7cb6c34d2dd [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: [
36 "treble_sepolicy_tests.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070037 "mini_parser.py",
38 "policy.py",
39 ],
40 required: ["libsepolwrap"],
41 defaults: ["py2_only"],
42}
43
44python_binary_host {
45 name: "sepolicy_tests",
46 srcs: [
47 "sepolicy_tests.py",
48 "policy.py",
49 ],
50 required: ["libsepolwrap"],
51 defaults: ["py2_only"],
52}
53
54python_binary_host {
55 name: "searchpolicy",
56 srcs: [
57 "searchpolicy.py",
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070058 "policy.py",
59 ],
60 required: ["libsepolwrap"],
61 defaults: ["py2_only"],
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070062}