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