aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorCindy Zhou <zhouci@google.com>2020-12-04 09:02:36 -0800
committerCindy Zhou <zhouci@google.com>2020-12-21 05:25:42 -0800
commit33385d02d2cfb1bf8396dd1228855c9eab5e01c7 (patch)
treee9e9d15fa0a802a5fbdbc3bd755f49cca160e942 /Android.bp
parente8c76646fe77e2efa7748bd4e9c88da7e770c222 (diff)
downloadlibxaac-33385d02d2cfb1bf8396dd1228855c9eab5e01c7.tar.gz
Enable cfi for libxaac
Bug: 158010610 Bug: 173497308 Test: ran atest with DecoderConformanceTest, ImageReaderDecoderTest, VideoDecoderPerfTest, VideoEncoderTest, avcdec, avcenc. Compare the before and after enabling CFI results since there was a number of tests that were initially failing. Change-Id: I5f3990bf8542d7d7ab74cd2e031e8b2c5339c098
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp27
1 files changed, 19 insertions, 8 deletions
diff --git a/Android.bp b/Android.bp
index ca47ca0..f189458 100644
--- a/Android.bp
+++ b/Android.bp
@@ -2,14 +2,14 @@ cc_library_static {
name: "libxaacdec",
vendor_available: true,
- host_supported:true,
+ host_supported: true,
cflags: [
- "-O3"
+ "-O3",
],
export_include_dirs: [
"decoder",
- "decoder/drc_src"
+ "decoder/drc_src",
],
srcs: [
@@ -124,15 +124,26 @@ cc_library_static {
"decoder/drc_src/impd_drc_static_payload.c",
],
+ target: {
+ android: {
+ sanitize: {
+ diag: {
+ cfi: true,
+ },
+ },
+ },
+ },
+
sanitize: {
misc_undefined: [
"unsigned-integer-overflow",
"signed-integer-overflow",
"bounds",
],
- // Enable CFI if this becomes a shared library.
- // cfi: true,
- blocklist: "libxaac_blocklist.txt",
+ cfi: true,
+ config: {
+ cfi_assembly_support: true,
+ },
},
arch: {
@@ -213,9 +224,9 @@ cc_library_static {
"decoder/armv7/ixheaacd_aac_ld_dec_rearrange.s",
"decoder/armv7/ixheaacd_fft32x32_ld2_armv7.s",
"decoder/armv7/ixheaacd_apply_scale_fac.s",
- "decoder/armv7/ixheaacd_tns_ar_filter_fixed.s"
+ "decoder/armv7/ixheaacd_tns_ar_filter_fixed.s",
],
- }
+ },
},
arm64: {