blob: 9966bd98277c89109ad533f39b6f5fcd593c2726 [file] [log] [blame]
Alex Deymob78c9da2017-01-13 13:30:31 -08001// Copyright 2017 The Android Open Source Project
2
Bob Badour8ceea432021-02-12 15:07:25 -08003package {
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
21license {
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 Zhang1fa54042018-06-20 16:55:32 -070037cc_library {
Alex Deymob78c9da2017-01-13 13:30:31 -080038 name: "libfec_rs",
39 host_supported: true,
Jiyong Park9ebca522018-05-24 14:08:02 +090040 recovery_available: true,
Alex Deymob78c9da2017-01-13 13:30:31 -080041 srcs: [
42 "encode_rs_char.c",
43 "decode_rs_char.c",
44 "init_rs_char.c",
45 ],
Chih-Hung Hsiehd45ab322017-09-27 16:12:38 -070046 cflags: [
47 "-Wall",
48 "-Werror",
49 "-O3"
50 ],
Alex Deymob78c9da2017-01-13 13:30:31 -080051 export_include_dirs: ["."],
52
Alex Deymob78c9da2017-01-13 13:30:31 -080053 target: {
Dan Willemsen0a37c2c2017-10-03 14:13:24 -070054 linux: {
Alex Deymob78c9da2017-01-13 13:30:31 -080055 sanitize: {
56 misc_undefined: ["integer"],
57 },
58 },
59 windows: {
60 enabled: true,
61 },
62 },
63}