1cc_library_shared {
2    name: "libaudiohal",
3
4    srcs: [
5        "DevicesFactoryHalInterface.cpp",
6        "EffectsFactoryHalInterface.cpp",
7        "FactoryHalHidl.cpp",
8    ],
9
10    cflags: [
11        "-Wall",
12        "-Wextra",
13        "-Werror",
14    ],
15
16    required: [
17        "libaudiohal@2.0",
18        "libaudiohal@4.0",
19        "libaudiohal@5.0",
20        "libaudiohal@6.0",
21    ],
22
23    shared_libs: [
24        "libdl",
25        "libhidlbase",
26        "liblog",
27        "libutils",
28    ],
29
30    header_libs: [
31        "libaudiohal_headers",
32        "libbase_headers",
33    ]
34}
35
36cc_library_shared {
37    name: "libaudiohal_deathhandler",
38
39    srcs: [
40        "HalDeathHandlerHidl.cpp",
41    ],
42
43    cflags: [
44        "-Wall",
45        "-Werror",
46    ],
47
48    shared_libs: [
49        "libhidlbase",
50        "libutils",
51        "liblog",
52    ],
53
54    header_libs: [
55        "libaudiohal_headers"
56    ]
57}
58
59cc_library_headers {
60    name: "libaudiohal_headers",
61
62    export_include_dirs: ["include"],
63
64    // This is needed because the stream interface includes media/MicrophoneInfo.h
65    // which is not in any library but has a dependency on headers from libbinder.
66    header_libs: ["libbinder_headers"],
67
68    export_header_lib_headers: ["libbinder_headers"],
69}
70