lin
2025-08-14 dae8bad597b6607a449b32bf76c523423f7720ed
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
subdirs = ["tests"]
 
cc_defaults {
    name: "audio_utils_defaults",
 
    local_include_dirs: ["include"],
    export_include_dirs: ["include"],
 
    cflags: [
        "-Werror",
        "-Wall",
    ],
}
 
cc_library {
    name: "libaudioutils",
    vendor_available: true,
    vndk: {
        enabled: true,
    },
    double_loadable: true,
    host_supported: true,
    defaults: ["audio_utils_defaults"],
 
    srcs: [
        "Balance.cpp",
        "channels.c",
        "ErrorLog.cpp",
        "fifo.cpp",
        "fifo_index.cpp",
        "fifo_writer32.cpp",
        "format.c",
        "limiter.c",
        "minifloat.c",
        "power.cpp",
        "PowerLog.cpp",
        "primitives.c",
        "roundup.c",
        "sample.c",
    ],
 
    header_libs: [
        "libaudio_system_headers",
        "libutils_headers",
    ],
 
    export_header_lib_headers: [
        "libaudio_system_headers",
        "libutils_headers",
    ],
 
    shared_libs: [
        "libcutils",
        "liblog",
    ],
 
    target: {
        android: {
            srcs: [
                "mono_blend.cpp",
                "resampler.c",
                "echo_reference.c",
            ],
            whole_static_libs: ["libaudioutils_fixedfft"],
            shared_libs: [
                "libspeexresampler",
            ],
        },
        host: {
            cflags: ["-D__unused=__attribute__((unused))"],
        },
    },
}
 
cc_library_static {
    name: "libaudioutils_fixedfft",
    vendor_available: true,
    defaults: ["audio_utils_defaults"],
 
    arch: {
        arm: {
            instruction_set: "arm",
        },
    },
 
    srcs: ["fixedfft.cpp"],
}
 
cc_library_static {
    name: "libsndfile",
    defaults: ["audio_utils_defaults"],
    host_supported: true,
    srcs: ["tinysndfile.c"],
    cflags: [
        "-UHAVE_STDERR",
    ],
}
 
cc_library_static {
    name: "libfifo",
    defaults: ["audio_utils_defaults"],
    srcs: [
        "fifo.cpp",
        "fifo_index.cpp",
        "primitives.c",
        "roundup.c",
    ],
}
 
cc_library_shared {
    name: "libaudiospdif",
    defaults: ["audio_utils_defaults"],
 
    srcs: [
        "spdif/BitFieldParser.cpp",
        "spdif/FrameScanner.cpp",
        "spdif/AC3FrameScanner.cpp",
        "spdif/DTSFrameScanner.cpp",
        "spdif/SPDIFEncoder.cpp",
    ],
 
    shared_libs: [
        "libcutils",
        "liblog",
    ],
}