Bob Badour | 176eed7 | 2021-02-12 15:27:18 -0800 | [diff] [blame] | 1 | // *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE |
| 2 | // CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE |
| 3 | // DEPENDING ON IT IN YOUR PROJECT. *** |
| 4 | package { |
| 5 | default_applicable_licenses: ["external_aac_license"], |
| 6 | } |
| 7 | |
| 8 | // Added automatically by a large-scale-change that took the approach of |
| 9 | // 'apply every license found to every target'. While this makes sure we respect |
| 10 | // every license restriction, it may not be entirely correct. |
| 11 | // |
| 12 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 13 | // |
| 14 | // Please consider splitting the single license below into multiple licenses, |
| 15 | // taking care not to lose any license_kind information, and overriding the |
| 16 | // default license using the 'licenses: [...]' property on targets as needed. |
| 17 | // |
| 18 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 19 | // to attach the license to, and including a comment whether the files may be |
| 20 | // used in the current project. |
| 21 | // See: http://go/android-license-faq |
| 22 | license { |
| 23 | name: "external_aac_license", |
| 24 | visibility: [":__subpackages__"], |
| 25 | license_kinds: [ |
| 26 | "SPDX-license-identifier-Apache-2.0", |
| 27 | "legacy_by_exception_only", // by exception only |
| 28 | ], |
| 29 | license_text: [ |
| 30 | "NOTICE", |
| 31 | ], |
| 32 | } |
| 33 | |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 34 | cc_library_static { |
| 35 | name: "libFraunhoferAAC", |
Jiyong Park | a4aa860 | 2017-08-07 13:12:02 +0900 | [diff] [blame] | 36 | vendor_available: true, |
Jooyung Han | d40f05a | 2020-04-16 18:48:25 +0900 | [diff] [blame] | 37 | host_supported: true, |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 38 | srcs: [ |
| 39 | "libAACdec/src/*.cpp", |
| 40 | "libAACenc/src/*.cpp", |
| 41 | "libPCMutils/src/*.cpp", |
| 42 | "libFDK/src/*.cpp", |
| 43 | "libSYS/src/*.cpp", |
| 44 | "libMpegTPDec/src/*.cpp", |
| 45 | "libMpegTPEnc/src/*.cpp", |
| 46 | "libSBRdec/src/*.cpp", |
| 47 | "libSBRenc/src/*.cpp", |
Fraunhofer IIS FDK | 6cfabd3 | 2018-02-26 20:17:00 +0100 | [diff] [blame] | 48 | "libArithCoding/src/*.cpp", |
| 49 | "libDRCdec/src/*.cpp", |
| 50 | "libSACdec/src/*.cpp", |
| 51 | "libSACenc/src/*.cpp", |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 52 | ], |
| 53 | cflags: [ |
Chih-Hung Hsieh | 3e8a17c | 2017-09-27 10:17:29 -0700 | [diff] [blame] | 54 | "-Werror", |
Fraunhofer IIS FDK | 6cfabd3 | 2018-02-26 20:17:00 +0100 | [diff] [blame] | 55 | "-Wno-unused-parameter", |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 56 | "-Wno-#warnings", |
Fraunhofer IIS FDK | 6cfabd3 | 2018-02-26 20:17:00 +0100 | [diff] [blame] | 57 | "-Wuninitialized", |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 58 | "-Wno-self-assign", |
Chih-Hung Hsieh | 96ed252 | 2018-09-04 14:05:05 -0700 | [diff] [blame] | 59 | "-Wno-implicit-fallthrough", |
Anuj Joshi | 7f7bbce | 2020-03-27 10:43:08 +0530 | [diff] [blame] | 60 | "-DSUPPRESS_BUILD_DATE_INFO", |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 61 | ], |
Fraunhofer IIS FDK | 6cfabd3 | 2018-02-26 20:17:00 +0100 | [diff] [blame] | 62 | sanitize: { |
Jooyung Han | d40f05a | 2020-04-16 18:48:25 +0900 | [diff] [blame] | 63 | misc_undefined: [ |
| 64 | "unsigned-integer-overflow", |
| 65 | "signed-integer-overflow", |
| 66 | "bounds", |
Ivan Lozano | 26a9da7 | 2018-12-11 09:14:39 -0800 | [diff] [blame] | 67 | ], |
Cindy Zhou | c93fff6 | 2020-12-03 13:25:26 -0800 | [diff] [blame] | 68 | cfi: true, |
Fraunhofer IIS FDK | 6cfabd3 | 2018-02-26 20:17:00 +0100 | [diff] [blame] | 69 | }, |
Fraunhofer IIS FDK | 5e57019 | 2018-09-10 16:39:30 +0200 | [diff] [blame] | 70 | shared_libs: [ |
| 71 | "liblog", |
| 72 | ], |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 73 | export_include_dirs: [ |
| 74 | "libAACdec/include", |
| 75 | "libAACenc/include", |
| 76 | "libPCMutils/include", |
| 77 | "libFDK/include", |
| 78 | "libSYS/include", |
| 79 | "libMpegTPDec/include", |
| 80 | "libMpegTPEnc/include", |
| 81 | "libSBRdec/include", |
| 82 | "libSBRenc/include", |
Fraunhofer IIS FDK | 6cfabd3 | 2018-02-26 20:17:00 +0100 | [diff] [blame] | 83 | "libArithCoding/include", |
| 84 | "libDRCdec/include", |
| 85 | "libSACdec/include", |
| 86 | "libSACenc/include", |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 87 | ], |
Anuj Joshi | b09c5ae | 2020-03-27 10:44:41 +0530 | [diff] [blame] | 88 | |
| 89 | target: { |
| 90 | darwin: { |
| 91 | enabled: false, |
| 92 | }, |
| 93 | }, |
Jooyung Han | d40f05a | 2020-04-16 18:48:25 +0900 | [diff] [blame] | 94 | |
| 95 | apex_available: [ |
| 96 | "//apex_available:platform", |
Etienne Ruffieux | 71f8569 | 2021-12-15 16:11:15 +0000 | [diff] [blame] | 97 | "com.android.bluetooth", |
Jooyung Han | d40f05a | 2020-04-16 18:48:25 +0900 | [diff] [blame] | 98 | "com.android.media.swcodec", |
| 99 | ], |
| 100 | min_sdk_version: "29", |
Pavlin Radoslavov | 6cc0003 | 2017-01-19 12:03:23 -0800 | [diff] [blame] | 101 | } |