1// DO NOT DEPEND ON THIS DIRECTLY
2// use libstagefright_codec2-hidl-defaults instead
3cc_library {
4    name: "libcodec2_hidl_utils@1.0",
5    vendor_available: true,
6
7    defaults: ["hidl_defaults"],
8
9    srcs: [
10        "Component.cpp",
11        "ComponentStore.cpp",
12        "Configurable.cpp",
13        "InputSurface.cpp",
14        "InputSurfaceConnection.cpp",
15        "types.cpp",
16    ],
17
18    header_libs: [
19        "libgui_headers",
20        "libsystem_headers",
21        "libstagefright_codec2_internal", // private
22    ],
23
24    shared_libs: [
25        "android.hardware.graphics.bufferqueue@1.0",
26        "android.hardware.graphics.common@1.0",
27        "android.hardware.media.bufferpool@1.0",
28        "android.hardware.media.omx@1.0",
29        "android.hardware.media@1.0",
30        "android.hidl.token@1.0-utils",
31        "hardware.google.media.c2@1.0",
32        "libbase",
33        "libcutils",
34        "libhidlbase",
35        "liblog",
36        "libstagefright_bufferpool@1.0",
37        "libstagefright_bufferqueue_helper",
38        "libstagefright_codec2",
39        "libstagefright_codec2_vndk",
40        "libui",
41        "libutils",
42    ],
43
44    export_include_dirs: [
45        "include",
46    ],
47
48    export_shared_lib_headers: [
49        "android.hidl.token@1.0-utils",
50        "hardware.google.media.c2@1.0",
51        "libhidlbase",
52        "libstagefright_bufferpool@1.0",
53        "libstagefright_bufferqueue_helper",
54        "libstagefright_codec2",
55        "libui",
56    ],
57}
58
59// public dependency for Codec 2.0 HAL service implementations
60cc_defaults {
61    name: "libstagefright_codec2-hidl-defaults",
62    defaults: ["libstagefright_codec2-impl-defaults"],
63
64    shared_libs: [
65        "hardware.google.media.c2@1.0",
66        "libcodec2_hidl_utils@1.0",
67    ],
68}
69