• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10cc_library_shared {
11    name: "libaudiohal",
12
13    srcs: [
14        "DevicesFactoryHalInterface.cpp",
15        "EffectsFactoryHalInterface.cpp",
16        "FactoryHalHidl.cpp",
17    ],
18
19    cflags: [
20        "-Wall",
21        "-Wextra",
22        "-Werror",
23    ],
24
25    required: [
26        "libaudiohal@4.0",
27        "libaudiohal@5.0",
28        "libaudiohal@6.0",
29        "libaudiohal@7.0",
30    ],
31
32    shared_libs: [
33        "libdl",
34        "libhidlbase",
35        "liblog",
36        "libutils",
37    ],
38
39    header_libs: [
40        "libaudiohal_headers",
41        "libbase_headers",
42        "libmediautils_headers",
43    ]
44}
45
46cc_library_shared {
47    name: "libaudiohal_deathhandler",
48
49    srcs: [
50        "HalDeathHandlerHidl.cpp",
51    ],
52
53    cflags: [
54        "-Wall",
55        "-Werror",
56    ],
57
58    shared_libs: [
59        "libhidlbase",
60        "libutils",
61        "liblog",
62    ],
63
64    header_libs: [
65        "libaudiohal_headers"
66    ]
67}
68
69cc_library_headers {
70    name: "libaudiohal_headers",
71
72    export_include_dirs: ["include"],
73
74    // This is needed because the stream interface includes media/MicrophoneInfo.h
75    header_libs: ["av-headers"],
76    export_header_lib_headers: ["av-headers"],
77}
78