Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame^] | 1 | package { |
| 2 | default_applicable_licenses: ["system_core_libkeyutils_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change that took the approach of |
| 6 | // 'apply every license found to every target'. While this makes sure we respect |
| 7 | // every license restriction, it may not be entirely correct. |
| 8 | // |
| 9 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 10 | // |
| 11 | // Please consider splitting the single license below into multiple licenses, |
| 12 | // taking care not to lose any license_kind information, and overriding the |
| 13 | // default license using the 'licenses: [...]' property on targets as needed. |
| 14 | // |
| 15 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 16 | // to attach the license to, and including a comment whether the files may be |
| 17 | // used in the current project. |
| 18 | // See: http://go/android-license-faq |
| 19 | license { |
| 20 | name: "system_core_libkeyutils_license", |
| 21 | visibility: [":__subpackages__"], |
| 22 | license_kinds: [ |
| 23 | "SPDX-license-identifier-Apache-2.0", |
| 24 | "SPDX-license-identifier-BSD", |
| 25 | ], |
| 26 | // large-scale-change unable to identify any license_text files |
| 27 | } |
| 28 | |
Elliott Hughes | 1eeee96 | 2017-05-09 17:09:06 -0700 | [diff] [blame] | 29 | cc_library { |
| 30 | name: "libkeyutils", |
| 31 | cflags: ["-Werror"], |
| 32 | defaults: ["linux_bionic_supported"], |
Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 33 | recovery_available: true, |
Elliott Hughes | 1eeee96 | 2017-05-09 17:09:06 -0700 | [diff] [blame] | 34 | export_include_dirs: ["include/"], |
| 35 | local_include_dirs: ["include/"], |
| 36 | srcs: ["keyutils.cpp"], |
| 37 | stl: "none", |
| 38 | } |
| 39 | |
| 40 | cc_test { |
| 41 | name: "libkeyutils-tests", |
| 42 | cflags: ["-Werror"], |
| 43 | shared_libs: ["libkeyutils"], |
| 44 | srcs: ["keyutils_test.cpp"], |
Elliott Hughes | 40fdf3f | 2018-04-27 16:12:06 -0700 | [diff] [blame] | 45 | test_suites: ["device-tests"], |
Elliott Hughes | 1eeee96 | 2017-05-09 17:09:06 -0700 | [diff] [blame] | 46 | } |