summaryrefslogtreecommitdiff
path: root/system/embdrv/lc3/Android.bp
blob: 353f7651dec0f85687e7ce0ee563cd5a34d89915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "system_bt_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["system_bt_license"],
}

cc_library_static {
    name: "liblc3",
    host_supported: true,
    apex_available: [

        "//apex_available:platform",
        "com.android.bluetooth"
    ],
    defaults: ["fluoride_defaults"],
    srcs: [
        "src/*.c",
    ],
    cflags: [
        "-O3",
        "-ffast-math",
        "-Werror",
        "-Wmissing-braces",
        "-Wno-unused-parameter",
        "-Wno-#warnings",
        "-Wuninitialized",
        "-Wno-self-assign",
        "-Wno-implicit-fallthrough",
    ],
    target: {
       android: {
            sanitize: {
                misc_undefined:[
                   "unsigned-integer-overflow",
                   "signed-integer-overflow",
                   "bounds",
                ],
                cfi: true,
            },
       },
    },
    export_include_dirs: [
        "include",
    ],
    min_sdk_version: "Tiramisu"
}

cc_fuzz {
  name: "liblc3_fuzzer",

  srcs: [
    "fuzzer/liblc3_fuzzer.cpp",
  ],

  static_libs: [
    "liblc3",
  ],
}