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