blob: ab6a105e07339d57ec4b31555f7d7def53859f6c [file] [log] [blame]
Pawin Vongmasa36653902018-11-15 00:10:25 -08001cc_library_headers {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -08002 name: "libcodec2_internal",
Pawin Vongmasa36653902018-11-15 00:10:25 -08003
4 export_include_dirs: [
5 "internal",
6 ],
7
8 // TODO: Remove this when this module is moved back to frameworks/av.
9 vendor_available: true,
10}
11
12// !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!!
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080013// use libcodec2-impl-defaults instead
Pawin Vongmasa36653902018-11-15 00:10:25 -080014cc_library_shared {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080015 name: "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080016 vendor_available: true,
Pawin Vongmasae5c53f72019-03-03 17:30:18 -080017 vndk: {
18 enabled: true,
19 },
Pawin Vongmasa36653902018-11-15 00:10:25 -080020
21 srcs: [
22 "C2AllocatorIon.cpp",
23 "C2AllocatorGralloc.cpp",
24 "C2Buffer.cpp",
25 "C2Config.cpp",
26 "C2PlatformStorePluginLoader.cpp",
27 "C2Store.cpp",
28 "platform/C2BqBuffer.cpp",
29 "util/C2Debug.cpp",
30 "util/C2InterfaceHelper.cpp",
31 "util/C2InterfaceUtils.cpp",
32 "util/C2ParamUtils.cpp",
33 ],
34
35 export_include_dirs: [
36 "include",
37 ],
38
39 export_shared_lib_headers: [
40 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070041 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080042 ],
43
44 local_include_dirs: [
45 "internal",
46 ],
47
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080048 header_libs: [
49 "media_plugin_headers",
50 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080051 ],
52
53 shared_libs: [
54 "android.hardware.graphics.allocator@2.0",
55 "android.hardware.graphics.bufferqueue@1.0",
56 "android.hardware.graphics.mapper@2.0",
Sungtak Leed3318082018-09-07 15:52:43 -070057 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 "libbase",
59 "libbinder",
60 "libcutils",
61 "libdl",
62 "libhardware",
63 "libhidlbase",
64 "libion",
65 "libfmq",
66 "liblog",
67 "libstagefright_bufferqueue_helper",
68 "libstagefright_foundation",
Sungtak Leed3318082018-09-07 15:52:43 -070069 "libstagefright_bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080070 "libui",
71 "libutils",
72 ],
73
74 cflags: [
75 "-Werror",
76 "-Wall",
77 ],
78}
79
80// public dependency for implementing Codec 2 components
81cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080082 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080083
84 shared_libs: [
85 "libbase", // for C2_LOG
86 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080087 "libcodec2",
88 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080089 "libutils",
90 ],
91}
92
93// public dependency for implementing Codec 2 framework utilities
94// THIS IS ONLY FOR FRAMEWORK USE ONLY
95cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080096 name: "libcodec2-internal-defaults",
97 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080098
99 shared_libs: [
100 "libcutils", // for properties
101 ],
102
103 // TODO: separate internal headers so they can be exposed here
104}
105