• 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        "FactoryHal.cpp",
17    ],
18
19    cflags: [
20        "-Wall",
21        "-Werror",
22        "-Wextra",
23    ],
24
25    required: [
26        "libaudiohal@6.0",
27        "libaudiohal@7.0",
28        "libaudiohal@7.1",
29        "libaudiohal@aidl",
30    ],
31
32    shared_libs: [
33        "audioclient-types-aidl-cpp",
34        "libaudiofoundation",
35        "libbinder_ndk",
36        "libdl",
37        "libhidlbase",
38        "liblog",
39        "libutils",
40    ],
41
42    header_libs: [
43        "libaudiohal_headers",
44        "libbase_headers",
45        "liberror_headers",
46        "libmediautils_headers",
47    ],
48
49    export_include_dirs: ["include"],
50}
51
52cc_library_shared {
53    name: "libaudiohal_deathhandler",
54
55    srcs: [
56        "HalDeathHandlerHidl.cpp",
57    ],
58
59    cflags: [
60        "-Wall",
61        "-Werror",
62    ],
63
64    shared_libs: [
65        "libhidlbase",
66        "liblog",
67        "libutils",
68    ],
69
70    header_libs: [
71        "libaudiohal_headers",
72    ],
73}
74
75cc_library_headers {
76    name: "libaudiohal_headers",
77
78    header_libs: [
79        "libaudiofoundation_headers",
80        "libeffectsconfig_headers",
81    ],
82
83    export_header_lib_headers: ["libeffectsconfig_headers"],
84
85    export_include_dirs: ["include"],
86}
87
88cc_library_headers {
89    name: "libaudiohalimpl_headers",
90
91    header_libs: ["libaudiohal_headers"],
92    export_header_lib_headers: ["libaudiohal_headers"],
93    export_include_dirs: ["impl"],
94}
95