Elliott Hughes | 1eeee96 | 2017-05-09 17:09:06 -0700 | [diff] [blame] | 1 | cc_library { |
| 2 | name: "libkeyutils", |
| 3 | cflags: ["-Werror"], |
| 4 | defaults: ["linux_bionic_supported"], |
Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 5 | recovery_available: true, |
Elliott Hughes | 1eeee96 | 2017-05-09 17:09:06 -0700 | [diff] [blame] | 6 | export_include_dirs: ["include/"], |
| 7 | local_include_dirs: ["include/"], |
| 8 | srcs: ["keyutils.cpp"], |
| 9 | stl: "none", |
| 10 | } |
| 11 | |
| 12 | cc_test { |
| 13 | name: "libkeyutils-tests", |
| 14 | cflags: ["-Werror"], |
| 15 | shared_libs: ["libkeyutils"], |
| 16 | srcs: ["keyutils_test.cpp"], |
Elliott Hughes | 40fdf3f | 2018-04-27 16:12:06 -0700 | [diff] [blame] | 17 | test_suites: ["device-tests"], |
Elliott Hughes | 1eeee96 | 2017-05-09 17:09:06 -0700 | [diff] [blame] | 18 | } |
Xiaoyong Zhou | 4a5c352 | 2019-01-29 15:53:21 -0800 | [diff] [blame] | 19 | |
| 20 | cc_binary { |
| 21 | name: "mini-keyctl", |
Xiaoyong Zhou | b29b27e | 2019-03-08 09:59:42 -0800 | [diff] [blame] | 22 | srcs: [ |
| 23 | "mini_keyctl.cpp", |
| 24 | "mini_keyctl_utils.cpp" |
| 25 | ], |
Xiaoyong Zhou | 4a5c352 | 2019-01-29 15:53:21 -0800 | [diff] [blame] | 26 | shared_libs: [ |
| 27 | "libbase", |
| 28 | "libkeyutils", |
| 29 | "liblog", |
| 30 | ], |
Xiaoyong Zhou | b29b27e | 2019-03-08 09:59:42 -0800 | [diff] [blame] | 31 | cflags: ["-Werror", "-Wall", "-Wextra", "-fexceptions"], |
Xiaoyong Zhou | 4a5c352 | 2019-01-29 15:53:21 -0800 | [diff] [blame] | 32 | } |