1cc_library_headers { 2 name: "libcodec2_headers", 3 vendor_available: true, 4 export_include_dirs: ["include"], 5} 6 7cc_library_shared { 8 name: "libcodec2", 9 vendor_available: true, 10 vndk: { 11 enabled: true, 12 }, 13 14 srcs: ["C2.cpp"], 15 16 cflags: [ 17 "-Wall", 18 "-Werror", 19 ], 20 21 header_libs: [ 22 "libcodec2_headers", 23 "libhardware_headers", 24 "libutils_headers", 25 "media_plugin_headers", 26 ], 27 28 export_header_lib_headers: [ 29 "libcodec2_headers", 30 "libhardware_headers", 31 "libutils_headers", 32 "media_plugin_headers", 33 ], 34 35 sanitize: { 36 misc_undefined: [ 37 "unsigned-integer-overflow", 38 "signed-integer-overflow", 39 ], 40 cfi: false, // true, 41 diag: { 42 cfi: false, // true, 43 }, 44 }, 45 46 ldflags: ["-Wl,-Bsymbolic"], 47} 48 49