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: "libmedia_helper_headers",
12    vendor_available: true,
13    min_sdk_version: "29",
14    export_include_dirs: ["include"],
15    host_supported: true,
16    target: {
17        darwin: {
18            enabled: false,
19        },
20    },
21    apex_available: [
22        "//apex_available:platform",
23        "com.android.btservices",
24        "com.android.media",
25        "com.android.media.swcodec",
26    ],
27}
28
29cc_library {
30    name: "libmedia_helper",
31    vendor_available: true,
32    min_sdk_version: "29",
33    double_loadable: true,
34    srcs: [
35        "AudioParameter.cpp",
36        "AudioValidator.cpp",
37        "TypeConverter.cpp",
38    ],
39    cflags: [
40        "-Werror",
41        "-Wextra",
42        "-Wall",
43    ],
44    shared_libs: [
45        "libutils",
46        "liblog",
47    ],
48    header_libs: [
49        "libaudio_system_headers",
50        "libhardware_headers",
51        "libmedia_helper_headers",
52    ],
53    export_header_lib_headers: [
54        "libmedia_helper_headers",
55    ],
56
57    host_supported: true,
58    target: {
59        darwin: {
60            enabled: false,
61        },
62    },
63    apex_available: [
64        "//apex_available:platform",
65        "com.android.media",
66        "test_com.android.media",
67    ],
68}
69