blob: 8fe89e5feaf86aebe2aef8daffcd2f466b66b281 [file] [log] [blame]
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -07001cc_library_host_shared {
2 name: "libsepolwrap",
3 srcs: ["sepol_wrap.cpp"],
Dan Willemsen948354a2017-09-01 14:08:46 -07004 shared_libs: ["libsepol"],
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -07005 cflags: ["-Wall", "-Werror",],
6 export_include_dirs: ["include"],
Dan Willemsen948354a2017-09-01 14:08:46 -07007
8 // libsepolwrap gets loaded from the system python, which does not have the
9 // ASAN runtime. So turn off sanitization for ourself, and use static
10 // libraries, since the shared libraries will use ASAN.
11 static_libs: ["libbase"],
12 stl: "libc++_static",
13 sanitize: {
14 never: true,
15 },
Jeff Vander Stoepbdfc0302017-05-25 09:53:47 -070016}
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070017
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070018python_defaults {
19 name: "py2_only",
20 version: {
21 py2: {
22 enabled: true,
23 },
24 py3: {
25 enabled: false,
26 },
27 },
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070028}
29
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070030python_binary_host {
31 name: "treble_sepolicy_tests",
32 srcs: [
33 "treble_sepolicy_tests.py",
Dan Cashman91d398d2017-09-26 12:58:29 -070034 "mini_parser.py",
35 "policy.py",
36 ],
37 required: ["libsepolwrap"],
38 defaults: ["py2_only"],
39}
40
41python_binary_host {
42 name: "sepolicy_tests",
43 srcs: [
44 "sepolicy_tests.py",
45 "policy.py",
46 ],
47 required: ["libsepolwrap"],
48 defaults: ["py2_only"],
49}
50
51python_binary_host {
52 name: "searchpolicy",
53 srcs: [
54 "searchpolicy.py",
Jeff Vander Stoepa7d2c5b2017-09-23 14:42:50 -070055 "policy.py",
56 ],
57 required: ["libsepolwrap"],
58 defaults: ["py2_only"],
Jeff Vander Stoep1fc06822017-05-31 15:36:07 -070059}