• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1subdirs = ["tests"]
2
3cc_defaults {
4    name: "audio_utils_defaults",
5
6    local_include_dirs: ["include"],
7    export_include_dirs: ["include"],
8
9    cflags: [
10        "-Werror",
11        "-Wall",
12    ],
13}
14
15cc_library {
16    name: "libaudioutils",
17    vendor_available: true,
18    vndk: {
19        enabled: true,
20    },
21    host_supported: true,
22    defaults: ["audio_utils_defaults"],
23
24    srcs: [
25        "channels.c",
26        "ErrorLog.cpp",
27        "fifo.cpp",
28        "fifo_index.cpp",
29        "fifo_writer32.cpp",
30        "format.c",
31        "limiter.c",
32        "minifloat.c",
33        "power.cpp",
34        "PowerLog.cpp",
35        "primitives.c",
36        "roundup.c",
37    ],
38
39    header_libs: [
40        "libaudio_system_headers",
41        "libutils_headers",
42    ],
43
44    export_header_lib_headers: [
45        "libaudio_system_headers",
46        "libutils_headers",
47    ],
48
49    shared_libs: [
50        "libcutils",
51        "liblog",
52    ],
53
54    target: {
55        android: {
56            srcs: [
57                "mono_blend.cpp",
58                "resampler.c",
59                "echo_reference.c",
60            ],
61            whole_static_libs: ["libaudioutils_fixedfft"],
62            shared_libs: [
63                "libspeexresampler",
64            ],
65        },
66        host: {
67            cflags: ["-D__unused=__attribute__((unused))"],
68        },
69    },
70}
71
72cc_library_static {
73    name: "libaudioutils_fixedfft",
74    vendor_available: true,
75    defaults: ["audio_utils_defaults"],
76
77    arch: {
78        arm: {
79            instruction_set: "arm",
80        },
81    },
82
83    srcs: ["fixedfft.cpp"],
84}
85
86cc_library_static {
87    name: "libsndfile",
88    defaults: ["audio_utils_defaults"],
89    host_supported: true,
90    srcs: ["tinysndfile.c"],
91    cflags: [
92        "-UHAVE_STDERR",
93    ],
94}
95
96cc_library_static {
97    name: "libfifo",
98    defaults: ["audio_utils_defaults"],
99    srcs: [
100        "fifo.cpp",
101        "fifo_index.cpp",
102        "primitives.c",
103        "roundup.c",
104    ],
105}
106
107cc_library_shared {
108    name: "libaudiospdif",
109    defaults: ["audio_utils_defaults"],
110
111    srcs: [
112        "spdif/BitFieldParser.cpp",
113        "spdif/FrameScanner.cpp",
114        "spdif/AC3FrameScanner.cpp",
115        "spdif/DTSFrameScanner.cpp",
116        "spdif/SPDIFEncoder.cpp",
117    ],
118
119    shared_libs: [
120        "libcutils",
121        "liblog",
122    ],
123}
124