blob: 598500d4a9d217250329541c9cd30ff5728f1f09 [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_av_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_av_license"],
8}
9
Pawin Vongmasa36653902018-11-15 00:10:25 -080010cc_library_headers {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080011 name: "libcodec2_internal",
Pawin Vongmasa36653902018-11-15 00:10:25 -080012
13 export_include_dirs: [
14 "internal",
15 ],
16
17 // TODO: Remove this when this module is moved back to frameworks/av.
18 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090019
20 min_sdk_version: "29",
Ray Essickef519d72022-01-30 19:34:35 -080021 apex_available: [
22 "//apex_available:platform",
23 "com.android.media.swcodec",
24 ],
25
26}
27
28cc_library_headers {
29 name: "libcodec2_vndk_headers",
30 vendor_available: true,
31 min_sdk_version: "29",
32
33 export_include_dirs: [
34 "include",
35 ],
36 apex_available: [
37 "//apex_available:platform",
38 "com.android.media.swcodec",
39 ],
Pawin Vongmasa36653902018-11-15 00:10:25 -080040}
41
42// !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!!
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080043// use libcodec2-impl-defaults instead
S Vasudev Prasad5e525282020-11-23 12:15:40 +053044cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080045 name: "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080046 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090047 min_sdk_version: "29",
Wonsik Kim155d5cb2019-10-09 12:49:49 -070048 // TODO: b/147147883
49 double_loadable: true,
Ray Essickef519d72022-01-30 19:34:35 -080050 apex_available: [
51 "//apex_available:platform",
52 "com.android.media.swcodec",
53 ],
54
Pawin Vongmasa36653902018-11-15 00:10:25 -080055
56 srcs: [
Pin-chih Linf72774b2019-11-19 18:26:47 +080057 "C2AllocatorBlob.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 "C2AllocatorIon.cpp",
59 "C2AllocatorGralloc.cpp",
60 "C2Buffer.cpp",
61 "C2Config.cpp",
John Stultz6a407882020-07-11 04:34:19 +000062 "C2DmaBufAllocator.cpp",
Sungtak Leefce527c2021-03-20 01:24:41 -070063 "C2Fence.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080064 "C2PlatformStorePluginLoader.cpp",
65 "C2Store.cpp",
66 "platform/C2BqBuffer.cpp",
Sungtak Leefce527c2021-03-20 01:24:41 -070067 "platform/C2SurfaceSyncObj.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070068 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080069 "util/C2Debug.cpp",
70 "util/C2InterfaceHelper.cpp",
71 "util/C2InterfaceUtils.cpp",
72 "util/C2ParamUtils.cpp",
73 ],
74
75 export_include_dirs: [
76 "include",
77 ],
78
79 export_shared_lib_headers: [
80 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070081 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080082 ],
83
84 local_include_dirs: [
85 "internal",
86 ],
87
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080088 header_libs: [
89 "media_plugin_headers",
90 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080091 ],
92
93 shared_libs: [
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080094 "android.hardware.graphics.bufferqueue@2.0",
Marissa Wall2a24a302019-11-25 11:19:18 -080095 "android.hardware.graphics.common@1.2",
Sungtak Leed3318082018-09-07 15:52:43 -070096 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080097 "libbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080098 "libcutils",
99 "libdl",
Praveen Chavan34493f12021-02-18 00:51:50 -0800100 "libdmabufheap",
101 "libfmq",
102 "libgralloctypes",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800103 "libhardware",
104 "libhidlbase",
105 "libion",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800106 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -0700107 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800108 "libstagefright_foundation",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -0700109 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800110 "libui",
111 "libutils",
112 ],
113
114 cflags: [
115 "-Werror",
116 "-Wall",
117 ],
118}
119
Lajos Molnar99d4d112022-01-28 12:42:05 -0800120// public dependency for statically linking to libcodec2_vndk for unit tests
121cc_defaults {
122 name: "libcodec2-static-defaults",
123
124 static_libs: [
125 "liblog",
126 "libion",
127 "libfmq",
128 "libbase",
129 "libutils",
130 "libcutils",
131 "libcodec2",
132 "libhidlbase",
133 "libdmabufheap",
134 "libcodec2_vndk",
135 "libnativewindow",
136 "libcodec2_soft_common",
137 "libsfplugin_ccodec_utils",
138 "libstagefright_foundation",
139 "libstagefright_bufferpool@2.0.1",
140 "libgralloctypes",
141 "android.hardware.graphics.mapper@2.0",
142 "android.hardware.graphics.mapper@3.0",
143 "android.hardware.media.bufferpool@2.0",
144 "android.hardware.graphics.allocator@2.0",
145 "android.hardware.graphics.allocator@3.0",
146 "android.hardware.graphics.bufferqueue@2.0",
147 ],
148
149 shared_libs: [
150 "libui",
151 "libdl",
152 "libhardware",
153 "libvndksupport",
154 "libprocessgroup",
155 ],
156}
157
Pawin Vongmasa36653902018-11-15 00:10:25 -0800158// public dependency for implementing Codec 2 components
159cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800160 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800161
162 shared_libs: [
163 "libbase", // for C2_LOG
164 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800165 "libcodec2",
166 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800167 "libutils",
168 ],
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900169
170 min_sdk_version: "29",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800171}
172
173// public dependency for implementing Codec 2 framework utilities
174// THIS IS ONLY FOR FRAMEWORK USE ONLY
175cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800176 name: "libcodec2-internal-defaults",
177 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -0800178
Wonsik Kim8f9e90a2020-02-25 14:40:18 -0800179 header_libs: [
180 "libcodec2_internal",
181 ],
182
Pawin Vongmasa36653902018-11-15 00:10:25 -0800183 shared_libs: [
184 "libcutils", // for properties
185 ],
186
187 // TODO: separate internal headers so they can be exposed here
188}