OSDN Git Service

Merge "Make inlines static" into stage-aosp-master am: b76693c9fc -s ours am: 90492d...
[android-x86/system-media.git] / audio_utils / Android.bp
1 subdirs = ["tests"]
2
3 cc_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
15 cc_library {
16     name: "libaudioutils",
17     vendor_available: true,
18     host_supported: true,
19     defaults: ["audio_utils_defaults"],
20
21     srcs: [
22         "channels.c",
23         "ErrorLog.cpp",
24         "fifo.cpp",
25         "fifo_index.cpp",
26         "fifo_writer32.cpp",
27         "format.c",
28         "limiter.c",
29         "minifloat.c",
30         "power.cpp",
31         "PowerLog.cpp",
32         "primitives.c",
33         "roundup.c",
34     ],
35
36     header_libs: [
37         "libaudio_system_headers",
38         "libutils_headers",
39     ],
40
41     export_header_lib_headers: [
42         "libaudio_system_headers",
43         "libutils_headers",
44     ],
45
46     shared_libs: [
47         "libcutils",
48         "liblog",
49     ],
50
51     target: {
52         android: {
53             srcs: [
54                 "mono_blend.cpp",
55                 "resampler.c",
56                 "echo_reference.c",
57             ],
58             whole_static_libs: ["libaudioutils_fixedfft"],
59             shared_libs: [
60                 "libspeexresampler",
61             ],
62         },
63         host: {
64             cflags: ["-D__unused=__attribute__((unused))"],
65         },
66     },
67 }
68
69 cc_library_static {
70     name: "libaudioutils_fixedfft",
71     vendor_available: true,
72     defaults: ["audio_utils_defaults"],
73
74     arch: {
75         arm: {
76             instruction_set: "arm",
77         },
78     },
79
80     srcs: ["fixedfft.cpp"],
81 }
82
83 cc_library_static {
84     name: "libsndfile",
85     defaults: ["audio_utils_defaults"],
86     host_supported: true,
87     srcs: ["tinysndfile.c"],
88     cflags: [
89         "-UHAVE_STDERR",
90     ],
91 }
92
93 cc_library_static {
94     name: "libfifo",
95     defaults: ["audio_utils_defaults"],
96     srcs: [
97         "fifo.cpp",
98         "fifo_index.cpp",
99         "primitives.c",
100         "roundup.c",
101     ],
102 }
103
104 cc_library_shared {
105     name: "libaudiospdif",
106     defaults: ["audio_utils_defaults"],
107
108     srcs: [
109         "spdif/BitFieldParser.cpp",
110         "spdif/FrameScanner.cpp",
111         "spdif/AC3FrameScanner.cpp",
112         "spdif/DTSFrameScanner.cpp",
113         "spdif/SPDIFEncoder.cpp",
114     ],
115
116     shared_libs: [
117         "libcutils",
118         "liblog",
119     ],
120 }