• 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: "libstagefright_bufferpool@2.0-default",
12    srcs: [
13        "Accessor.cpp",
14        "AccessorImpl.cpp",
15        "BufferPoolClient.cpp",
16        "BufferStatus.cpp",
17        "ClientManager.cpp",
18        "Connection.cpp",
19        "Observer.cpp",
20    ],
21    export_include_dirs: [
22        "include",
23    ],
24    shared_libs: [
25        "libcutils",
26        "libfmq",
27        "libhidlbase",
28        "liblog",
29        "libutils",
30        "android.hardware.media.bufferpool@2.0",
31    ],
32    export_shared_lib_headers: [
33        "libfmq",
34        "android.hardware.media.bufferpool@2.0",
35    ],
36}
37
38cc_library {
39    name: "libstagefright_bufferpool@2.0.1",
40    defaults: ["libstagefright_bufferpool@2.0-default"],
41    vendor_available: true,
42    min_sdk_version: "29",
43    apex_available: [
44        "//apex_available:platform",
45        "com.android.media.swcodec",
46        "test_com.android.media.swcodec",
47    ],
48
49    // TODO: b/147147992
50    double_loadable: true,
51    cflags: [
52        "-DBUFFERPOOL_CLONE_HANDLES",
53    ],
54}
55
56// Deprecated. Do not use. Use libstagefright_bufferpool@2.0.1 instead.
57cc_library {
58    name: "libstagefright_bufferpool@2.0",
59    defaults: ["libstagefright_bufferpool@2.0-default"],
60    vendor_available: true,
61    // TODO: b/147147992
62    double_loadable: true,
63    vndk: {
64        enabled: true,
65    },
66}
67