Bob Badour | 9f5765d | 2021-02-12 16:14:31 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["external_libogg_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 | // |
| 19 | // large-scale-change included anything that looked like it might be a license |
| 20 | // text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. |
| 21 | // |
| 22 | // Please consider removing redundant or irrelevant files from 'license_text:'. |
| 23 | // See: http://go/android-license-faq |
| 24 | license { |
| 25 | name: "external_libogg_license", |
| 26 | visibility: [":__subpackages__"], |
| 27 | license_kinds: [ |
| 28 | "SPDX-license-identifier-BSD", |
| 29 | "SPDX-license-identifier-MIT", |
| 30 | "legacy_notice", |
| 31 | "legacy_unencumbered", |
| 32 | ], |
| 33 | license_text: [ |
| 34 | "COPYING", |
| 35 | "NOTICE", |
| 36 | ], |
| 37 | } |
| 38 | |
Colin Cross | 8f3cb76 | 2017-04-20 16:55:31 -0700 | [diff] [blame] | 39 | cc_library_static { |
| 40 | name: "libogg", |
| 41 | |
| 42 | srcs: [ |
| 43 | "src/bitwise.c", |
| 44 | "src/framing.c", |
| 45 | ], |
| 46 | |
Chih-Hung Hsieh | 7d0b871 | 2017-09-28 14:38:53 -0700 | [diff] [blame] | 47 | cflags: ["-Wall", "-Werror"], |
| 48 | |
Colin Cross | 8f3cb76 | 2017-04-20 16:55:31 -0700 | [diff] [blame] | 49 | export_include_dirs: ["include"], |
| 50 | |
| 51 | sdk_version: "14", |
Ivan Lozano | d03fa44 | 2019-03-12 13:53:42 -0700 | [diff] [blame] | 52 | // TODO(ivanlozano) b/124978545 |
| 53 | // sanitize: { |
| 54 | // integer_overflow: true, |
| 55 | // misc_undefined: ["bounds"], |
| 56 | // }, |
Colin Cross | 8f3cb76 | 2017-04-20 16:55:31 -0700 | [diff] [blame] | 57 | } |