• 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_defaults {
11    name: "libaudiohal_default",
12
13    srcs: [
14        "DeviceHalLocal.cpp",
15        "DevicesFactoryHalHybrid.cpp",
16        "DevicesFactoryHalLocal.cpp",
17        "StreamHalLocal.cpp",
18
19        "ConversionHelperHidl.cpp",
20        "DeviceHalHidl.cpp",
21        "DevicesFactoryHalHidl.cpp",
22        "EffectBufferHalHidl.cpp",
23        "EffectHalHidl.cpp",
24        "EffectsFactoryHalHidl.cpp",
25        "StreamHalHidl.cpp",
26    ],
27
28    cflags: [
29        "-Wall",
30        "-Wextra",
31        "-Werror",
32        "-fvisibility=hidden",
33    ],
34    shared_libs: [
35        "android.hardware.audio.common-util",
36        "android.hidl.allocator@1.0",
37        "android.hidl.memory@1.0",
38        "av-types-aidl-cpp",
39        "libaudiofoundation",
40        "libaudiohal_deathhandler",
41        "libaudioutils",
42        "libbase",
43        "libbinder",
44        "libcutils",
45        "libfmq",
46        "libhardware",
47        "libhidlbase",
48        "libhidlmemory",
49        "liblog",
50        "libmedia_helper",
51        "libmediautils",
52        "libutils",
53    ],
54    header_libs: [
55        "android.hardware.audio.common.util@all-versions",
56        "libaudioclient_headers",
57        "libaudiohal_headers"
58    ],
59
60    export_shared_lib_headers: [
61        "libfmq",
62    ],
63}
64
65cc_library_shared {
66    name: "libaudiohal@4.0",
67    defaults: ["libaudiohal_default"],
68    shared_libs: [
69        "android.hardware.audio.common@4.0",
70        "android.hardware.audio.common@4.0-util",
71        "android.hardware.audio.effect@4.0",
72        "android.hardware.audio.effect@4.0-util",
73        "android.hardware.audio@4.0",
74        "android.hardware.audio@4.0-util",
75    ],
76    cflags: [
77        "-DMAJOR_VERSION=4",
78        "-DMINOR_VERSION=0",
79        "-include common/all-versions/VersionMacro.h",
80    ]
81}
82
83cc_library_shared {
84    name: "libaudiohal@5.0",
85    defaults: ["libaudiohal_default"],
86    shared_libs: [
87        "android.hardware.audio.common@5.0",
88        "android.hardware.audio.common@5.0-util",
89        "android.hardware.audio.effect@5.0",
90        "android.hardware.audio.effect@5.0-util",
91        "android.hardware.audio@5.0",
92        "android.hardware.audio@5.0-util",
93    ],
94    cflags: [
95        "-DMAJOR_VERSION=5",
96        "-DMINOR_VERSION=0",
97        "-include common/all-versions/VersionMacro.h",
98    ]
99}
100
101cc_library_shared {
102    name: "libaudiohal@6.0",
103    defaults: ["libaudiohal_default"],
104    shared_libs: [
105        "android.hardware.audio.common@6.0",
106        "android.hardware.audio.common@6.0-util",
107        "android.hardware.audio.effect@6.0",
108        "android.hardware.audio.effect@6.0-util",
109        "android.hardware.audio@6.0",
110        "android.hardware.audio@6.0-util",
111    ],
112    cflags: [
113        "-DMAJOR_VERSION=6",
114        "-DMINOR_VERSION=0",
115        "-include common/all-versions/VersionMacro.h",
116    ]
117}
118
119cc_library_shared {
120    name: "libaudiohal@7.0",
121    defaults: ["libaudiohal_default"],
122    shared_libs: [
123        "android.hardware.audio.common@7.0",
124        "android.hardware.audio.common@7.0-util",
125        "android.hardware.audio.effect@7.0",
126        "android.hardware.audio.effect@7.0-util",
127        "android.hardware.audio@7.0",
128        "android.hardware.audio@7.0-util",
129    ],
130    cflags: [
131        "-DMAJOR_VERSION=7",
132        "-DMINOR_VERSION=0",
133        "-include common/all-versions/VersionMacro.h",
134    ]
135}
136