1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-02-12 09:30:43 +01:00
fdk-aac/Android.bp
Cindy Zhou c93fff6784 Enable cfi for aac
Bug: 158010610
Bug: 173497308
Test: ran atest DecoderConformanceTest, ImageReaderDecoderTest,
VideoDecoderPerfTest, VideoEncoderTest.  Compare the
before and after enabling CFI results since there was a number of tests
that were initially failing.

Change-Id: I0d0d2a76512dc909a67f34adacff9ffbf536dbe7
2020-12-17 07:45:11 -08:00

76 lines
1.8 KiB
Plaintext

cc_library_static {
name: "libFraunhoferAAC",
vendor_available: true,
host_supported: true,
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",
"libArithCoding/src/*.cpp",
"libDRCdec/src/*.cpp",
"libSACdec/src/*.cpp",
"libSACenc/src/*.cpp",
],
cflags: [
"-Werror",
"-Wno-unused-parameter",
"-Wno-#warnings",
"-Wuninitialized",
"-Wno-self-assign",
"-Wno-implicit-fallthrough",
"-DSUPPRESS_BUILD_DATE_INFO",
],
sanitize: {
misc_undefined: [
"unsigned-integer-overflow",
"signed-integer-overflow",
"bounds",
],
cfi: true,
},
shared_libs: [
"liblog",
],
export_include_dirs: [
"libAACdec/include",
"libAACenc/include",
"libPCMutils/include",
"libFDK/include",
"libSYS/include",
"libMpegTPDec/include",
"libMpegTPEnc/include",
"libSBRdec/include",
"libSBRenc/include",
"libArithCoding/include",
"libDRCdec/include",
"libSACdec/include",
"libSACenc/include",
],
target: {
darwin: {
enabled: false,
},
android: {
sanitize: {
diag: {
cfi: true,
},
},
},
},
apex_available: [
"//apex_available:platform",
"com.android.bluetooth.updatable",
"com.android.media.swcodec",
],
min_sdk_version: "29",
}