2021-02-13 00:27:18 +01:00
|
|
|
// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
|
|
|
|
// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
|
|
|
|
// DEPENDING ON IT IN YOUR PROJECT. ***
|
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["external_aac_license"],
|
|
|
|
}
|
|
|
|
|
|
|
|
// Added automatically by a large-scale-change that took the approach of
|
|
|
|
// 'apply every license found to every target'. While this makes sure we respect
|
|
|
|
// every license restriction, it may not be entirely correct.
|
|
|
|
//
|
|
|
|
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
|
|
|
|
//
|
|
|
|
// Please consider splitting the single license below into multiple licenses,
|
|
|
|
// taking care not to lose any license_kind information, and overriding the
|
|
|
|
// default license using the 'licenses: [...]' property on targets as needed.
|
|
|
|
//
|
|
|
|
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
|
|
|
|
// to attach the license to, and including a comment whether the files may be
|
|
|
|
// used in the current project.
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
license {
|
|
|
|
name: "external_aac_license",
|
|
|
|
visibility: [":__subpackages__"],
|
|
|
|
license_kinds: [
|
|
|
|
"SPDX-license-identifier-Apache-2.0",
|
|
|
|
"legacy_by_exception_only", // by exception only
|
|
|
|
],
|
|
|
|
license_text: [
|
|
|
|
"NOTICE",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2017-01-19 21:03:23 +01:00
|
|
|
cc_library_static {
|
|
|
|
name: "libFraunhoferAAC",
|
2017-08-07 06:12:02 +02:00
|
|
|
vendor_available: true,
|
2020-04-16 11:48:25 +02:00
|
|
|
host_supported: true,
|
2017-01-19 21:03:23 +01:00
|
|
|
srcs: [
|
|
|
|
"libAACdec/src/*.cpp",
|
|
|
|
"libAACenc/src/*.cpp",
|
|
|
|
"libPCMutils/src/*.cpp",
|
|
|
|
"libFDK/src/*.cpp",
|
|
|
|
"libSYS/src/*.cpp",
|
|
|
|
"libMpegTPDec/src/*.cpp",
|
|
|
|
"libMpegTPEnc/src/*.cpp",
|
|
|
|
"libSBRdec/src/*.cpp",
|
|
|
|
"libSBRenc/src/*.cpp",
|
2018-02-26 20:17:00 +01:00
|
|
|
"libArithCoding/src/*.cpp",
|
|
|
|
"libDRCdec/src/*.cpp",
|
|
|
|
"libSACdec/src/*.cpp",
|
|
|
|
"libSACenc/src/*.cpp",
|
2017-01-19 21:03:23 +01:00
|
|
|
],
|
|
|
|
cflags: [
|
2017-09-27 19:17:29 +02:00
|
|
|
"-Werror",
|
2018-02-26 20:17:00 +01:00
|
|
|
"-Wno-unused-parameter",
|
2017-01-19 21:03:23 +01:00
|
|
|
"-Wno-#warnings",
|
2018-02-26 20:17:00 +01:00
|
|
|
"-Wuninitialized",
|
2017-01-19 21:03:23 +01:00
|
|
|
"-Wno-self-assign",
|
2018-09-04 23:05:05 +02:00
|
|
|
"-Wno-implicit-fallthrough",
|
2020-03-27 06:13:08 +01:00
|
|
|
"-DSUPPRESS_BUILD_DATE_INFO",
|
2017-01-19 21:03:23 +01:00
|
|
|
],
|
2018-02-26 20:17:00 +01:00
|
|
|
sanitize: {
|
2020-04-16 11:48:25 +02:00
|
|
|
misc_undefined: [
|
|
|
|
"unsigned-integer-overflow",
|
|
|
|
"signed-integer-overflow",
|
|
|
|
"bounds",
|
2018-12-11 18:14:39 +01:00
|
|
|
],
|
2020-12-03 22:25:26 +01:00
|
|
|
cfi: true,
|
2018-02-26 20:17:00 +01:00
|
|
|
},
|
2018-09-10 16:39:30 +02:00
|
|
|
shared_libs: [
|
|
|
|
"liblog",
|
|
|
|
],
|
2017-01-19 21:03:23 +01:00
|
|
|
export_include_dirs: [
|
|
|
|
"libAACdec/include",
|
|
|
|
"libAACenc/include",
|
|
|
|
"libPCMutils/include",
|
|
|
|
"libFDK/include",
|
|
|
|
"libSYS/include",
|
|
|
|
"libMpegTPDec/include",
|
|
|
|
"libMpegTPEnc/include",
|
|
|
|
"libSBRdec/include",
|
|
|
|
"libSBRenc/include",
|
2018-02-26 20:17:00 +01:00
|
|
|
"libArithCoding/include",
|
|
|
|
"libDRCdec/include",
|
|
|
|
"libSACdec/include",
|
|
|
|
"libSACenc/include",
|
2017-01-19 21:03:23 +01:00
|
|
|
],
|
2020-03-27 06:14:41 +01:00
|
|
|
|
|
|
|
target: {
|
|
|
|
darwin: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2020-04-16 11:48:25 +02:00
|
|
|
|
|
|
|
apex_available: [
|
|
|
|
"//apex_available:platform",
|
2022-08-22 20:27:53 +02:00
|
|
|
"com.android.btservices",
|
2020-04-16 11:48:25 +02:00
|
|
|
"com.android.media.swcodec",
|
|
|
|
],
|
|
|
|
min_sdk_version: "29",
|
2017-01-19 21:03:23 +01:00
|
|
|
}
|