Alex Deymo | b78c9da | 2017-01-13 13:30:31 -0800 | [diff] [blame] | 1 | // Copyright 2017 The Android Open Source Project |
| 2 | |
Bob Badour | 8ceea43 | 2021-02-12 15:07:25 -0800 | [diff] [blame] | 3 | package { |
| 4 | default_applicable_licenses: ["external_fec_license"], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change that took the approach of |
| 8 | // 'apply every license found to every target'. While this makes sure we respect |
| 9 | // every license restriction, it may not be entirely correct. |
| 10 | // |
| 11 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 12 | // |
| 13 | // Please consider splitting the single license below into multiple licenses, |
| 14 | // taking care not to lose any license_kind information, and overriding the |
| 15 | // default license using the 'licenses: [...]' property on targets as needed. |
| 16 | // |
| 17 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 18 | // to attach the license to, and including a comment whether the files may be |
| 19 | // used in the current project. |
| 20 | // See: http://go/android-license-faq |
| 21 | license { |
| 22 | name: "external_fec_license", |
| 23 | visibility: [":__subpackages__"], |
| 24 | license_kinds: [ |
| 25 | "SPDX-license-identifier-GPL", |
| 26 | "SPDX-license-identifier-ISC", |
| 27 | "SPDX-license-identifier-LGPL", |
| 28 | "SPDX-license-identifier-LGPL-2.1", |
| 29 | "SPDX-license-identifier-LGPL-3.0", |
| 30 | "SPDX-license-identifier-MIT", |
| 31 | ], |
| 32 | license_text: [ |
| 33 | "NOTICE", |
| 34 | ], |
| 35 | } |
| 36 | |
Jerry Zhang | 1fa5404 | 2018-06-20 16:55:32 -0700 | [diff] [blame] | 37 | cc_library { |
Alex Deymo | b78c9da | 2017-01-13 13:30:31 -0800 | [diff] [blame] | 38 | name: "libfec_rs", |
| 39 | host_supported: true, |
Jiyong Park | 9ebca52 | 2018-05-24 14:08:02 +0900 | [diff] [blame] | 40 | recovery_available: true, |
Alex Deymo | b78c9da | 2017-01-13 13:30:31 -0800 | [diff] [blame] | 41 | srcs: [ |
| 42 | "encode_rs_char.c", |
| 43 | "decode_rs_char.c", |
| 44 | "init_rs_char.c", |
| 45 | ], |
Chih-Hung Hsieh | d45ab32 | 2017-09-27 16:12:38 -0700 | [diff] [blame] | 46 | cflags: [ |
| 47 | "-Wall", |
| 48 | "-Werror", |
| 49 | "-O3" |
| 50 | ], |
Alex Deymo | b78c9da | 2017-01-13 13:30:31 -0800 | [diff] [blame] | 51 | export_include_dirs: ["."], |
| 52 | |
Alex Deymo | b78c9da | 2017-01-13 13:30:31 -0800 | [diff] [blame] | 53 | target: { |
Dan Willemsen | 0a37c2c | 2017-10-03 14:13:24 -0700 | [diff] [blame] | 54 | linux: { |
Alex Deymo | b78c9da | 2017-01-13 13:30:31 -0800 | [diff] [blame] | 55 | sanitize: { |
| 56 | misc_undefined: ["integer"], |
| 57 | }, |
| 58 | }, |
| 59 | windows: { |
| 60 | enabled: true, |
| 61 | }, |
| 62 | }, |
| 63 | } |