Jeff Vander Stoep | bdfc030 | 2017-05-25 09:53:47 -0700 | [diff] [blame] | 1 | cc_library_host_shared { |
| 2 | name: "libsepolwrap", |
| 3 | srcs: ["sepol_wrap.cpp"], |
Jeff Vander Stoep | bdfc030 | 2017-05-25 09:53:47 -0700 | [diff] [blame] | 4 | cflags: ["-Wall", "-Werror",], |
| 5 | export_include_dirs: ["include"], |
Dan Willemsen | 948354a | 2017-09-01 14:08:46 -0700 | [diff] [blame] | 6 | |
| 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 Stoep | 3ca843a | 2017-10-04 09:42:29 -0700 | [diff] [blame] | 10 | static_libs: [ |
| 11 | "libbase", |
| 12 | "libsepol", |
| 13 | ], |
Dan Willemsen | 948354a | 2017-09-01 14:08:46 -0700 | [diff] [blame] | 14 | stl: "libc++_static", |
| 15 | sanitize: { |
| 16 | never: true, |
| 17 | }, |
Jeff Vander Stoep | bdfc030 | 2017-05-25 09:53:47 -0700 | [diff] [blame] | 18 | } |
Jeff Vander Stoep | 1fc0682 | 2017-05-31 15:36:07 -0700 | [diff] [blame] | 19 | |
Jeff Vander Stoep | a7d2c5b | 2017-09-23 14:42:50 -0700 | [diff] [blame] | 20 | python_defaults { |
| 21 | name: "py2_only", |
| 22 | version: { |
| 23 | py2: { |
Jeff Vander Stoep | e9777e3 | 2017-09-23 15:11:25 -0700 | [diff] [blame] | 24 | embedded_launcher: true, |
Jeff Vander Stoep | a7d2c5b | 2017-09-23 14:42:50 -0700 | [diff] [blame] | 25 | enabled: true, |
| 26 | }, |
| 27 | py3: { |
| 28 | enabled: false, |
| 29 | }, |
| 30 | }, |
Jeff Vander Stoep | 1fc0682 | 2017-05-31 15:36:07 -0700 | [diff] [blame] | 31 | } |
| 32 | |
Jeff Vander Stoep | a7d2c5b | 2017-09-23 14:42:50 -0700 | [diff] [blame] | 33 | python_binary_host { |
| 34 | name: "treble_sepolicy_tests", |
| 35 | srcs: [ |
Jeff Vander Stoep | 370a52f | 2018-02-08 09:54:59 -0800 | [diff] [blame] | 36 | "FcSort.py", |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 37 | "mini_parser.py", |
| 38 | "policy.py", |
Jeff Vander Stoep | 370a52f | 2018-02-08 09:54:59 -0800 | [diff] [blame] | 39 | "treble_sepolicy_tests.py", |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 40 | ], |
| 41 | required: ["libsepolwrap"], |
| 42 | defaults: ["py2_only"], |
| 43 | } |
| 44 | |
| 45 | python_binary_host { |
| 46 | name: "sepolicy_tests", |
| 47 | srcs: [ |
Jeff Vander Stoep | 370a52f | 2018-02-08 09:54:59 -0800 | [diff] [blame] | 48 | "FcSort.py", |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 49 | "policy.py", |
Jeff Vander Stoep | 370a52f | 2018-02-08 09:54:59 -0800 | [diff] [blame] | 50 | "sepolicy_tests.py", |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 51 | ], |
| 52 | required: ["libsepolwrap"], |
| 53 | defaults: ["py2_only"], |
| 54 | } |
| 55 | |
| 56 | python_binary_host { |
| 57 | name: "searchpolicy", |
| 58 | srcs: [ |
Jeff Vander Stoep | 3a3756f | 2018-04-24 11:03:22 -0700 | [diff] [blame] | 59 | "FcSort.py", |
Jeff Vander Stoep | a7d2c5b | 2017-09-23 14:42:50 -0700 | [diff] [blame] | 60 | "policy.py", |
Jeff Vander Stoep | 3a3756f | 2018-04-24 11:03:22 -0700 | [diff] [blame] | 61 | "searchpolicy.py", |
Jeff Vander Stoep | a7d2c5b | 2017-09-23 14:42:50 -0700 | [diff] [blame] | 62 | ], |
| 63 | required: ["libsepolwrap"], |
| 64 | defaults: ["py2_only"], |
Jeff Vander Stoep | 1fc0682 | 2017-05-31 15:36:07 -0700 | [diff] [blame] | 65 | } |
Tri Vo | 438684b | 2018-09-29 17:47:10 -0700 | [diff] [blame] | 66 | |
| 67 | python_binary_host { |
| 68 | name: "combine_maps", |
| 69 | srcs: [ |
| 70 | "combine_maps.py", |
| 71 | "mini_parser.py", |
| 72 | ], |
| 73 | } |