blob: 071bb746f3e60319fa2da63c9e610357a7daafac [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,
17
18 srcs: [
Pin-chih Linf72774b2019-11-19 18:26:47 +080019 "C2AllocatorBlob.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080020 "C2AllocatorIon.cpp",
21 "C2AllocatorGralloc.cpp",
22 "C2Buffer.cpp",
23 "C2Config.cpp",
24 "C2PlatformStorePluginLoader.cpp",
25 "C2Store.cpp",
26 "platform/C2BqBuffer.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070027 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080028 "util/C2Debug.cpp",
29 "util/C2InterfaceHelper.cpp",
30 "util/C2InterfaceUtils.cpp",
31 "util/C2ParamUtils.cpp",
32 ],
33
34 export_include_dirs: [
35 "include",
36 ],
37
38 export_shared_lib_headers: [
39 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070040 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080041 ],
42
43 local_include_dirs: [
44 "internal",
45 ],
46
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080047 header_libs: [
48 "media_plugin_headers",
49 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080050 ],
51
52 shared_libs: [
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080053 "android.hardware.graphics.bufferqueue@2.0",
Marissa Wall2a24a302019-11-25 11:19:18 -080054 "android.hardware.graphics.common@1.2",
Sungtak Leed3318082018-09-07 15:52:43 -070055 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080056 "libbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080057 "libcutils",
58 "libdl",
59 "libhardware",
60 "libhidlbase",
61 "libion",
62 "libfmq",
63 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070064 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -080065 "libstagefright_foundation",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -070066 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -080067 "libui",
68 "libutils",
69 ],
70
71 cflags: [
72 "-Werror",
73 "-Wall",
74 ],
75}
76
77// public dependency for implementing Codec 2 components
78cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080079 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080080
81 shared_libs: [
82 "libbase", // for C2_LOG
83 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080084 "libcodec2",
85 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080086 "libutils",
87 ],
88}
89
90// public dependency for implementing Codec 2 framework utilities
91// THIS IS ONLY FOR FRAMEWORK USE ONLY
92cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080093 name: "libcodec2-internal-defaults",
94 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080095
96 shared_libs: [
97 "libcutils", // for properties
98 ],
99
100 // TODO: separate internal headers so they can be exposed here
101}
102