aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Duarte <licorne@google.com>2023-08-16 01:04:23 +0000
committerDavid Duarte <licorne@google.com>2023-09-02 00:28:08 +0000
commitef58cc944e7a9bf18c363005a4662e07f37fffad (patch)
treefc3b2c570275191ff43e45b6837ca6eba5394f63
parent7609a5f5aef68e68f75a0c15f9a2e2b0a08112d3 (diff)
downloadliblc3-ef58cc944e7a9bf18c363005a4662e07f37fffad.tar.gz
Add Android.bpplatform-tools-34.0.5
Test: mmm external/liblc3 Change-Id: If09269695ff345229e2a9ecea37224f8a38efb0a
-rw-r--r--Android.bp72
1 files changed, 72 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..4047753
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,72 @@
+cc_library_static {
+ name: "liblc3",
+ host_supported: true,
+ visibility: [
+ "//packages/modules/Bluetooth:__subpackages__",
+ ],
+ apex_available: [
+ "com.android.btservices",
+ ],
+ srcs: [
+ "src/*.c",
+ ],
+ cflags: [
+ "-O3",
+ "-Wmissing-braces",
+ "-Wno-#warnings",
+ "-Wno-implicit-fallthrough",
+ "-Wno-self-assign",
+ "-Wuninitialized",
+ "-ffast-math",
+ ],
+ target: {
+ android: {
+ sanitize: {
+ misc_undefined: [
+ "bounds",
+ "signed-integer-overflow",
+ "unsigned-integer-overflow",
+ ],
+ cfi: true,
+ },
+ },
+ },
+ export_include_dirs: [
+ "include",
+ ],
+ min_sdk_version: "Tiramisu",
+}
+
+cc_fuzz {
+ name: "liblc3_encoder_fuzzer",
+ srcs: ["fuzz/efuzz.cc"],
+ static_libs: ["liblc3"],
+}
+
+cc_fuzz {
+ name: "liblc3_decoder_fuzzer",
+ srcs: ["fuzz/dfuzz.cc"],
+ static_libs: ["liblc3"],
+}
+
+cc_binary {
+ name: "lc3_encoder",
+ host_supported: true,
+ srcs: [
+ "tools/elc3.c",
+ "tools/lc3bin.c",
+ "tools/wave.c",
+ ],
+ static_libs: ["liblc3"],
+}
+
+cc_binary {
+ name: "lc3_decoder",
+ host_supported: true,
+ srcs: [
+ "tools/dlc3.c",
+ "tools/lc3bin.c",
+ "tools/wave.c",
+ ],
+ static_libs: ["liblc3"],
+}