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_headers {
11    name: "libaudiofoundation_headers",
12    vendor_available: true,
13    min_sdk_version: "29",
14    apex_available: [
15        "//apex_available:platform",
16        "com.android.media",
17    ],
18
19    export_include_dirs: ["include"],
20    header_libs: [
21        "libaudio_aidl_conversion_common_util_cpp",
22        "libaudio_system_headers",
23        "libmedia_helper_headers",
24    ],
25    export_header_lib_headers: [
26        "libaudio_aidl_conversion_common_util_cpp",
27        "libaudio_system_headers",
28        "libmedia_helper_headers",
29    ],
30    defaults: [
31        "latest_android_media_audio_common_types_cpp_export_static",
32    ],
33    static_libs: [
34        "audioclient-types-aidl-cpp",
35    ],
36    export_static_lib_headers: [
37        "audioclient-types-aidl-cpp",
38    ],
39    host_supported: true,
40    target: {
41        darwin: {
42            enabled: false,
43        },
44    },
45}
46
47cc_library {
48    name: "libaudiofoundation",
49    vendor_available: true,
50    double_loadable: true,
51
52    srcs: [
53        "AudioContainers.cpp",
54        "AudioDeviceTypeAddr.cpp",
55        "AudioGain.cpp",
56        "AudioPort.cpp",
57        "AudioProfile.cpp",
58        "DeviceDescriptorBase.cpp",
59    ],
60
61    defaults: [
62        "latest_android_media_audio_common_types_cpp_export_shared",
63    ],
64
65    shared_libs: [
66        "audioclient-types-aidl-cpp",
67        "libaudioclient_aidl_conversion",
68        "libaudioutils",
69        "libbase",
70        "libbinder",
71        "liblog",
72        "libmedia_helper",
73        "libutils",
74    ],
75
76    export_shared_lib_headers: [
77        "audioclient-types-aidl-cpp",
78        "libaudioclient_aidl_conversion",
79    ],
80
81    header_libs: [
82        "libaudiofoundation_headers",
83    ],
84
85    export_header_lib_headers: [
86        "libaudiofoundation_headers",
87    ],
88
89    cflags: [
90        "-Wall",
91        "-Werror",
92    ],
93}
94