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