1// DO NOT DEPEND ON THIS DIRECTLY
2// use libcodec2-hidl-client-defaults instead
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "frameworks_av_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: ["frameworks_av_license"],
10}
11
12cc_library {
13    name: "libcodec2_hidl_client@1.0",
14
15    defaults: ["hidl_defaults"],
16
17    srcs: [
18        "types.cpp",
19    ],
20
21    header_libs: [
22        "libcodec2_internal", // private
23    ],
24
25    shared_libs: [
26        "android.hardware.media.bufferpool@2.0",
27        "android.hardware.media.c2@1.0",
28        "libbase",
29        "libcodec2",
30        "libcodec2_vndk",
31        "libcutils",
32        "libgui",
33        "libhidlbase",
34        "liblog",
35        "libstagefright_bufferpool@2.0.1",
36        "libui",
37        "libutils",
38    ],
39
40    export_include_dirs: [
41        "include",
42    ],
43
44    export_shared_lib_headers: [
45        "android.hardware.media.c2@1.0",
46        "libcodec2",
47        "libgui",
48        "libstagefright_bufferpool@2.0.1",
49        "libui",
50    ],
51}
52
53
54// DO NOT DEPEND ON THIS DIRECTLY
55// use libcodec2-hidl-defaults instead
56cc_library {
57    name: "libcodec2_hidl@1.0",
58    vendor_available: true,
59    min_sdk_version: "29",
60
61    defaults: ["hidl_defaults"],
62
63    srcs: [
64        "Component.cpp",
65        "ComponentInterface.cpp",
66        "ComponentStore.cpp",
67        "Configurable.cpp",
68        "InputBufferManager.cpp",
69        "InputSurface.cpp",
70        "InputSurfaceConnection.cpp",
71        "types.cpp",
72    ],
73
74    header_libs: [
75        "libbinder_headers",
76        "libsystem_headers",
77        "libcodec2_internal", // private
78    ],
79
80    shared_libs: [
81        "android.hardware.graphics.bufferqueue@1.0",
82        "android.hardware.graphics.bufferqueue@2.0",
83        "android.hardware.graphics.common@1.0",
84        "android.hardware.media@1.0",
85        "android.hardware.media.bufferpool@2.0",
86        "android.hardware.media.c2@1.0",
87        "android.hardware.media.omx@1.0",
88        "libbase",
89        "libcodec2",
90        "libcodec2_vndk",
91        "libcodec2_hidl_plugin_stub",
92        "libcutils",
93        "libhidlbase",
94        "liblog",
95        "libstagefright_bufferpool@2.0.1",
96        "libstagefright_bufferqueue_helper_novndk",
97        "libui",
98        "libutils",
99    ],
100
101    target: {
102        vendor: {
103            exclude_shared_libs: [
104                "libstagefright_bufferqueue_helper_novndk",
105                "libcodec2_hidl_plugin_stub",
106            ],
107            shared_libs: [
108                "libstagefright_bufferqueue_helper",
109                "libcodec2_hidl_plugin",
110            ],
111        },
112        apex: {
113            exclude_shared_libs: [
114                "libcodec2_hidl_plugin",
115                "libcodec2_hidl_plugin_stub",
116            ],
117        },
118    },
119
120    export_include_dirs: [
121        "include",
122    ],
123
124    export_shared_lib_headers: [
125        "android.hardware.media.c2@1.0",
126        "libcodec2",
127        "libcodec2_vndk",
128        "libhidlbase",
129        "libstagefright_bufferpool@2.0.1",
130        "libui",
131    ],
132}
133
134// public dependency for Codec 2.0 HAL service implementations
135cc_defaults {
136    name: "libcodec2-hidl-defaults@1.0",
137    defaults: ["libcodec2-impl-defaults"],
138
139    shared_libs: [
140        "android.hardware.media.c2@1.0",
141        "libcodec2_hidl@1.0",
142    ],
143}
144
145// public dependency for Codec 2.0 HAL client
146cc_defaults {
147    name: "libcodec2-hidl-client-defaults@1.0",
148    defaults: ["libcodec2-impl-defaults"],
149
150    shared_libs: [
151        "android.hardware.media.c2@1.0",
152        "libcodec2_hidl_client@1.0",
153    ],
154}
155