blob: f3e37e08dc73cc92cbe617d198c50ad9f26febc2 [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,
Wonsik Kim155d5cb2019-10-09 12:49:49 -070017 // TODO: b/147147883
18 double_loadable: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080019
20 srcs: [
Pin-chih Linf72774b2019-11-19 18:26:47 +080021 "C2AllocatorBlob.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080022 "C2AllocatorIon.cpp",
23 "C2AllocatorGralloc.cpp",
24 "C2Buffer.cpp",
25 "C2Config.cpp",
26 "C2PlatformStorePluginLoader.cpp",
27 "C2Store.cpp",
28 "platform/C2BqBuffer.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070029 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080030 "util/C2Debug.cpp",
31 "util/C2InterfaceHelper.cpp",
32 "util/C2InterfaceUtils.cpp",
33 "util/C2ParamUtils.cpp",
34 ],
35
36 export_include_dirs: [
37 "include",
38 ],
39
40 export_shared_lib_headers: [
41 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070042 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080043 ],
44
45 local_include_dirs: [
46 "internal",
47 ],
48
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080049 header_libs: [
50 "media_plugin_headers",
51 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080052 ],
53
54 shared_libs: [
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080055 "android.hardware.graphics.bufferqueue@2.0",
Marissa Wall2a24a302019-11-25 11:19:18 -080056 "android.hardware.graphics.common@1.2",
Sungtak Leed3318082018-09-07 15:52:43 -070057 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 "libbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080059 "libcutils",
60 "libdl",
61 "libhardware",
62 "libhidlbase",
63 "libion",
64 "libfmq",
65 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070066 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -080067 "libstagefright_foundation",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -070068 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -080069 "libui",
70 "libutils",
71 ],
72
73 cflags: [
74 "-Werror",
75 "-Wall",
76 ],
77}
78
79// public dependency for implementing Codec 2 components
80cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080081 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080082
83 shared_libs: [
84 "libbase", // for C2_LOG
85 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080086 "libcodec2",
87 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080088 "libutils",
89 ],
90}
91
92// public dependency for implementing Codec 2 framework utilities
93// THIS IS ONLY FOR FRAMEWORK USE ONLY
94cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080095 name: "libcodec2-internal-defaults",
96 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080097
Wonsik Kim8f9e90a2020-02-25 14:40:18 -080098 header_libs: [
99 "libcodec2_internal",
100 ],
101
Pawin Vongmasa36653902018-11-15 00:10:25 -0800102 shared_libs: [
103 "libcutils", // for properties
104 ],
105
106 // TODO: separate internal headers so they can be exposed here
107}
108