blob: ca69810039d2d75128d4bdc810f6c36d1bb1bd3f [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: [
19 "C2AllocatorIon.cpp",
20 "C2AllocatorGralloc.cpp",
21 "C2Buffer.cpp",
22 "C2Config.cpp",
23 "C2PlatformStorePluginLoader.cpp",
24 "C2Store.cpp",
25 "platform/C2BqBuffer.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070026 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080027 "util/C2Debug.cpp",
28 "util/C2InterfaceHelper.cpp",
29 "util/C2InterfaceUtils.cpp",
30 "util/C2ParamUtils.cpp",
31 ],
32
33 export_include_dirs: [
34 "include",
35 ],
36
37 export_shared_lib_headers: [
38 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070039 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080040 ],
41
42 local_include_dirs: [
43 "internal",
44 ],
45
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080046 header_libs: [
47 "media_plugin_headers",
48 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080049 ],
50
51 shared_libs: [
52 "android.hardware.graphics.allocator@2.0",
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080053 "android.hardware.graphics.bufferqueue@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080054 "android.hardware.graphics.mapper@2.0",
Sungtak Leed3318082018-09-07 15:52:43 -070055 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080056 "libbase",
57 "libbinder",
58 "libcutils",
59 "libdl",
60 "libhardware",
61 "libhidlbase",
62 "libion",
63 "libfmq",
64 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070065 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -080066 "libstagefright_foundation",
Sungtak Leed3318082018-09-07 15:52:43 -070067 "libstagefright_bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080068 "libui",
69 "libutils",
70 ],
71
72 cflags: [
73 "-Werror",
74 "-Wall",
75 ],
76}
77
78// public dependency for implementing Codec 2 components
79cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080080 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080081
82 shared_libs: [
83 "libbase", // for C2_LOG
84 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080085 "libcodec2",
86 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080087 "libutils",
88 ],
89}
90
91// public dependency for implementing Codec 2 framework utilities
92// THIS IS ONLY FOR FRAMEWORK USE ONLY
93cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080094 name: "libcodec2-internal-defaults",
95 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080096
97 shared_libs: [
98 "libcutils", // for properties
99 ],
100
101 // TODO: separate internal headers so they can be exposed here
102}
103