Bob Badour | cb4f967 | 2021-02-12 21:28:10 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["external_tremolo_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: "external_tremolo_license", |
| 21 | visibility: [":__subpackages__"], |
| 22 | license_kinds: [ |
| 23 | "SPDX-license-identifier-Apache-2.0", |
| 24 | "SPDX-license-identifier-BSD", |
| 25 | ], |
| 26 | license_text: [ |
| 27 | "NOTICE", |
| 28 | ], |
| 29 | } |
| 30 | |
Dongwon Kang | 4dd4aad | 2017-10-19 13:28:13 -0700 | [diff] [blame] | 31 | cc_library { |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 32 | name: "libvorbisidec", |
Jiyong Park | 6fb7d06 | 2017-08-07 13:16:05 +0900 | [diff] [blame] | 33 | vendor_available: true, |
Ayushi Khopkar | 31a0aa8 | 2020-04-06 17:16:28 +0530 | [diff] [blame] | 34 | host_supported: true, |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 35 | |
| 36 | srcs: [ |
| 37 | "Tremolo/bitwise.c", |
| 38 | "Tremolo/codebook.c", |
| 39 | "Tremolo/dsp.c", |
| 40 | "Tremolo/floor0.c", |
| 41 | "Tremolo/floor1.c", |
| 42 | "Tremolo/floor_lookup.c", |
| 43 | "Tremolo/framing.c", |
| 44 | "Tremolo/mapping0.c", |
| 45 | "Tremolo/mdct.c", |
| 46 | "Tremolo/misc.c", |
| 47 | "Tremolo/res012.c", |
| 48 | "Tremolo/treminfo.c", |
| 49 | "Tremolo/vorbisfile.c", |
| 50 | ], |
| 51 | |
| 52 | arch: { |
| 53 | arm: { |
Elliott Hughes | 7649bf9 | 2021-04-30 09:36:43 -0700 | [diff] [blame] | 54 | cflags: ["-D_ARM_ASSEM_"], |
| 55 | instruction_set: "arm", |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 56 | srcs: [ |
| 57 | "Tremolo/bitwiseARM.s", |
| 58 | "Tremolo/dpen.s", |
| 59 | "Tremolo/floor1ARM.s", |
| 60 | "Tremolo/mdctARM.s", |
| 61 | ], |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 62 | }, |
| 63 | arm64: { |
| 64 | cflags: ["-DONLY_C"], |
| 65 | }, |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 66 | x86: { |
| 67 | cflags: ["-DONLY_C"], |
| 68 | }, |
| 69 | x86_64: { |
| 70 | cflags: ["-DONLY_C"], |
| 71 | }, |
| 72 | }, |
| 73 | |
| 74 | cflags: [ |
| 75 | "-O2", |
| 76 | "-D_GNU_SOURCE", |
Marco Nelissen | 92fe92d | 2017-05-11 08:26:37 -0700 | [diff] [blame] | 77 | "-funsigned-char", |
Chih-Hung Hsieh | c59d2d7 | 2017-09-29 11:32:51 -0700 | [diff] [blame] | 78 | "-Wall", |
| 79 | "-Werror", |
| 80 | "-Wno-unused-variable", |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 81 | ], |
| 82 | |
| 83 | local_include_dirs: ["Tremolo"], |
| 84 | export_include_dirs: ["."], |
| 85 | |
| 86 | shared_libs: ["liblog"], |
Ivan Lozano | 1f2a6d8 | 2018-07-10 13:03:38 -0700 | [diff] [blame] | 87 | |
| 88 | sanitize: { |
| 89 | integer_overflow: true, |
Ivan Lozano | a3eae7a | 2018-10-04 14:56:52 -0700 | [diff] [blame] | 90 | misc_undefined: ["bounds"], |
Ivan Lozano | 1f2a6d8 | 2018-07-10 13:03:38 -0700 | [diff] [blame] | 91 | }, |
Ayushi Khopkar | 31a0aa8 | 2020-04-06 17:16:28 +0530 | [diff] [blame] | 92 | |
| 93 | target: { |
| 94 | darwin: { |
| 95 | enabled: false, |
| 96 | }, |
| 97 | }, |
Jooyung Han | 1c8ab97 | 2020-04-16 18:48:31 +0900 | [diff] [blame] | 98 | min_sdk_version: "29", |
Ray Essick | 04f4caa | 2022-01-26 17:25:52 -0800 | [diff] [blame] | 99 | apex_available: [ |
| 100 | "//apex_available:platform", |
| 101 | "com.android.media", |
| 102 | "com.android.media.swcodec", |
| 103 | ], |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 104 | } |