• 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 "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10filegroup {
11    name: "android.hardware.audio-impl_srcs",
12    srcs: [
13        "Device.cpp",
14        "DevicesFactory.cpp",
15        "ParametersUtil.cpp",
16        "PrimaryDevice.cpp",
17        "Stream.cpp",
18        "StreamIn.cpp",
19        "StreamOut.cpp",
20    ],
21}
22
23cc_library_headers {
24    name: "android.hardware.audio-impl_headers",
25    proprietary: true,
26    vendor: true,
27    export_include_dirs: ["include"],
28}
29
30cc_defaults {
31    name: "android.hardware.audio-impl_default",
32    relative_install_path: "hw",
33    proprietary: true,
34    vendor: true,
35    srcs: [":android.hardware.audio-impl_srcs"],
36
37    defaults: ["hidl_defaults"],
38
39    static_libs: [
40        "libaudiofoundation",
41    ],
42
43    shared_libs: [
44        "libbase",
45        "libcutils",
46        "libfmq",
47        "libhardware",
48        "libhidlbase",
49        "liblog",
50        "libmedia_helper",
51        "libutils",
52        "android.hardware.audio.common-util",
53    ],
54
55    header_libs: [
56        "android.hardware.audio-impl_headers",
57        "android.hardware.audio.common.util@all-versions",
58        "libaudioclient_headers",
59        "libaudioutils_headers",
60        "libaudio_system_headers",
61        "libhardware_headers",
62        "libmedia_headers",
63        "libmediautils_headers",
64    ],
65
66    export_header_lib_headers: [
67        "android.hardware.audio-impl_headers",
68    ],
69}
70
71cc_library_shared {
72    name: "android.hardware.audio@2.0-impl",
73    defaults: ["android.hardware.audio-impl_default"],
74    shared_libs: [
75        "android.hardware.audio@2.0",
76        "android.hardware.audio@2.0-util",
77        "android.hardware.audio.common@2.0",
78        "android.hardware.audio.common@2.0-util",
79    ],
80    cflags: [
81        "-DMAJOR_VERSION=2",
82        "-DMINOR_VERSION=0",
83        "-include common/all-versions/VersionMacro.h",
84    ],
85}
86
87cc_library_shared {
88    name: "android.hardware.audio@4.0-impl",
89    defaults: ["android.hardware.audio-impl_default"],
90
91    shared_libs: [
92        "android.hardware.audio@4.0",
93        "android.hardware.audio@4.0-util",
94        "android.hardware.audio.common@4.0",
95        "android.hardware.audio.common@4.0-util",
96    ],
97    cflags: [
98        "-DMAJOR_VERSION=4",
99        "-DMINOR_VERSION=0",
100        "-include common/all-versions/VersionMacro.h",
101    ],
102}
103
104cc_library_shared {
105    name: "android.hardware.audio@5.0-impl",
106    defaults: ["android.hardware.audio-impl_default"],
107    shared_libs: [
108        "android.hardware.audio@5.0",
109        "android.hardware.audio@5.0-util",
110        "android.hardware.audio.common@5.0",
111        "android.hardware.audio.common@5.0-util",
112    ],
113    cflags: [
114        "-DMAJOR_VERSION=5",
115        "-DMINOR_VERSION=0",
116        "-include common/all-versions/VersionMacro.h",
117    ],
118}
119
120cc_defaults {
121    name: "android.hardware.audio@6.0-impl_default",
122    defaults: ["android.hardware.audio-impl_default"],
123    shared_libs: [
124        "android.hardware.audio@6.0",
125        "android.hardware.audio@6.0-util",
126        "android.hardware.audio.common@6.0",
127        "android.hardware.audio.common@6.0-util",
128    ],
129    cflags: [
130        "-DMAJOR_VERSION=6",
131        "-DMINOR_VERSION=0",
132        "-include common/all-versions/VersionMacro.h",
133    ],
134}
135
136cc_library_shared {
137    name: "android.hardware.audio@6.0-impl",
138    defaults: ["android.hardware.audio@6.0-impl_default"],
139}
140
141cc_library_shared {
142    name: "android.hardware.audio@7.0-impl",
143    defaults: ["android.hardware.audio-impl_default"],
144    shared_libs: [
145        "android.hardware.audio@7.0",
146        "android.hardware.audio@7.0-util",
147        "android.hardware.audio.common@7.0",
148        "android.hardware.audio.common@7.0-enums",
149        "android.hardware.audio.common@7.0-util",
150        "libbase",
151    ],
152    cflags: [
153        "-DMAJOR_VERSION=7",
154        "-DMINOR_VERSION=0",
155        "-include common/all-versions/VersionMacro.h",
156    ],
157}
158