blob: 27cd1f817b558363c8b1c7ef4923ca83a704aa17 [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",
Pawin Vongmasa36653902018-11-15 00:10:25 -080021}
22
23// !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!!
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080024// use libcodec2-impl-defaults instead
S Vasudev Prasad5e525282020-11-23 12:15:40 +053025cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080026 name: "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080027 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090028 min_sdk_version: "29",
Wonsik Kim155d5cb2019-10-09 12:49:49 -070029 // TODO: b/147147883
30 double_loadable: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080031
32 srcs: [
Pin-chih Linf72774b2019-11-19 18:26:47 +080033 "C2AllocatorBlob.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080034 "C2AllocatorIon.cpp",
35 "C2AllocatorGralloc.cpp",
36 "C2Buffer.cpp",
37 "C2Config.cpp",
John Stultz6a407882020-07-11 04:34:19 +000038 "C2DmaBufAllocator.cpp",
Sungtak Leefce527c2021-03-20 01:24:41 -070039 "C2Fence.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080040 "C2PlatformStorePluginLoader.cpp",
41 "C2Store.cpp",
42 "platform/C2BqBuffer.cpp",
Sungtak Leefce527c2021-03-20 01:24:41 -070043 "platform/C2SurfaceSyncObj.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070044 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080045 "util/C2Debug.cpp",
46 "util/C2InterfaceHelper.cpp",
47 "util/C2InterfaceUtils.cpp",
48 "util/C2ParamUtils.cpp",
49 ],
50
51 export_include_dirs: [
52 "include",
53 ],
54
55 export_shared_lib_headers: [
56 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070057 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 ],
59
60 local_include_dirs: [
61 "internal",
62 ],
63
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080064 header_libs: [
65 "media_plugin_headers",
66 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080067 ],
68
69 shared_libs: [
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080070 "android.hardware.graphics.bufferqueue@2.0",
Marissa Wall2a24a302019-11-25 11:19:18 -080071 "android.hardware.graphics.common@1.2",
Sungtak Leed3318082018-09-07 15:52:43 -070072 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080073 "libbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080074 "libcutils",
75 "libdl",
Praveen Chavan34493f12021-02-18 00:51:50 -080076 "libdmabufheap",
77 "libfmq",
78 "libgralloctypes",
Pawin Vongmasa36653902018-11-15 00:10:25 -080079 "libhardware",
80 "libhidlbase",
81 "libion",
Pawin Vongmasa36653902018-11-15 00:10:25 -080082 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070083 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -080084 "libstagefright_foundation",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -070085 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -080086 "libui",
87 "libutils",
88 ],
89
90 cflags: [
91 "-Werror",
92 "-Wall",
93 ],
94}
95
Lajos Molnar99d4d112022-01-28 12:42:05 -080096// public dependency for statically linking to libcodec2_vndk for unit tests
97cc_defaults {
98 name: "libcodec2-static-defaults",
99
100 static_libs: [
101 "liblog",
102 "libion",
103 "libfmq",
104 "libbase",
105 "libutils",
106 "libcutils",
107 "libcodec2",
108 "libhidlbase",
109 "libdmabufheap",
110 "libcodec2_vndk",
111 "libnativewindow",
112 "libcodec2_soft_common",
113 "libsfplugin_ccodec_utils",
114 "libstagefright_foundation",
115 "libstagefright_bufferpool@2.0.1",
116 "libgralloctypes",
117 "android.hardware.graphics.mapper@2.0",
118 "android.hardware.graphics.mapper@3.0",
119 "android.hardware.media.bufferpool@2.0",
120 "android.hardware.graphics.allocator@2.0",
121 "android.hardware.graphics.allocator@3.0",
122 "android.hardware.graphics.bufferqueue@2.0",
123 ],
124
125 shared_libs: [
126 "libui",
127 "libdl",
128 "libhardware",
129 "libvndksupport",
130 "libprocessgroup",
131 ],
132}
133
Pawin Vongmasa36653902018-11-15 00:10:25 -0800134// public dependency for implementing Codec 2 components
135cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800136 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800137
138 shared_libs: [
139 "libbase", // for C2_LOG
140 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800141 "libcodec2",
142 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800143 "libutils",
144 ],
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900145
146 min_sdk_version: "29",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800147}
148
149// public dependency for implementing Codec 2 framework utilities
150// THIS IS ONLY FOR FRAMEWORK USE ONLY
151cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800152 name: "libcodec2-internal-defaults",
153 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -0800154
Wonsik Kim8f9e90a2020-02-25 14:40:18 -0800155 header_libs: [
156 "libcodec2_internal",
157 ],
158
Pawin Vongmasa36653902018-11-15 00:10:25 -0800159 shared_libs: [
160 "libcutils", // for properties
161 ],
162
163 // TODO: separate internal headers so they can be exposed here
164}