blob: b5ebb728881b4f8d17770663953138ab28acfd8d [file] [log] [blame]
Bob Badour176eed72021-02-12 15:27:18 -08001// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
2// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3// DEPENDING ON IT IN YOUR PROJECT. ***
4package {
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
22license {
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 Radoslavov6cc00032017-01-19 12:03:23 -080034cc_library_static {
35 name: "libFraunhoferAAC",
Jiyong Parka4aa8602017-08-07 13:12:02 +090036 vendor_available: true,
Jooyung Hand40f05a2020-04-16 18:48:25 +090037 host_supported: true,
Pavlin Radoslavov6cc00032017-01-19 12:03:23 -080038 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 FDK6cfabd32018-02-26 20:17:00 +010048 "libArithCoding/src/*.cpp",
49 "libDRCdec/src/*.cpp",
50 "libSACdec/src/*.cpp",
51 "libSACenc/src/*.cpp",
Pavlin Radoslavov6cc00032017-01-19 12:03:23 -080052 ],
53 cflags: [
Chih-Hung Hsieh3e8a17c2017-09-27 10:17:29 -070054 "-Werror",
Fraunhofer IIS FDK6cfabd32018-02-26 20:17:00 +010055 "-Wno-unused-parameter",
Pavlin Radoslavov6cc00032017-01-19 12:03:23 -080056 "-Wno-#warnings",
Fraunhofer IIS FDK6cfabd32018-02-26 20:17:00 +010057 "-Wuninitialized",
Pavlin Radoslavov6cc00032017-01-19 12:03:23 -080058 "-Wno-self-assign",
Chih-Hung Hsieh96ed2522018-09-04 14:05:05 -070059 "-Wno-implicit-fallthrough",
Anuj Joshi7f7bbce2020-03-27 10:43:08 +053060 "-DSUPPRESS_BUILD_DATE_INFO",
Pavlin Radoslavov6cc00032017-01-19 12:03:23 -080061 ],
Fraunhofer IIS FDK6cfabd32018-02-26 20:17:00 +010062 sanitize: {
Jooyung Hand40f05a2020-04-16 18:48:25 +090063 misc_undefined: [
64 "unsigned-integer-overflow",
65 "signed-integer-overflow",
66 "bounds",
Ivan Lozano26a9da72018-12-11 09:14:39 -080067 ],
Cindy Zhouc93fff62020-12-03 13:25:26 -080068 cfi: true,
Fraunhofer IIS FDK6cfabd32018-02-26 20:17:00 +010069 },
Fraunhofer IIS FDK5e570192018-09-10 16:39:30 +020070 shared_libs: [
71 "liblog",
72 ],
Pavlin Radoslavov6cc00032017-01-19 12:03:23 -080073 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 FDK6cfabd32018-02-26 20:17:00 +010083 "libArithCoding/include",
84 "libDRCdec/include",
85 "libSACdec/include",
86 "libSACenc/include",
Pavlin Radoslavov6cc00032017-01-19 12:03:23 -080087 ],
Anuj Joshib09c5ae2020-03-27 10:44:41 +053088
89 target: {
90 darwin: {
91 enabled: false,
92 },
93 },
Jooyung Hand40f05a2020-04-16 18:48:25 +090094
95 apex_available: [
96 "//apex_available:platform",
Etienne Ruffieux71f85692021-12-15 16:11:15 +000097 "com.android.bluetooth",
Jooyung Hand40f05a2020-04-16 18:48:25 +090098 "com.android.media.swcodec",
99 ],
100 min_sdk_version: "29",
Pavlin Radoslavov6cc00032017-01-19 12:03:23 -0800101}