blob: 4b189b42488572749a2c6002da959ec9625af92f [file] [log] [blame]
Pawin Vongmasa36653902018-11-15 00:10:25 -08001// DO NOT DEPEND ON THIS DIRECTLY
Pawin Vongmasad0f0e142018-11-15 03:36:28 -08002// use libcodec2_soft-defaults instead
Bob Badour56786ac2021-02-25 15:24:36 -08003package {
4 // See: http://go/android-license-faq
5 // A large-scale-change added 'default_applicable_licenses' to import
6 // all of the 'license_kinds' from "frameworks_av_license"
7 // to get the below license kinds:
8 // SPDX-license-identifier-Apache-2.0
9 default_applicable_licenses: ["frameworks_av_license"],
10}
11
Ray Essick4dfd2f32022-03-07 11:40:28 -080012cc_library_headers {
13 name: "libcodec2_soft_common_headers",
14 defaults: ["libcodec2-impl-defaults"],
15 vendor_available: true,
16
17 export_include_dirs: [
18 "include",
19 ],
20}
21
S Vasudev Prasadee173172020-11-23 12:17:14 +053022cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080023 name: "libcodec2_soft_common",
24 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080025 vendor_available: true,
26
27 srcs: [
28 "SimpleC2Component.cpp",
29 "SimpleC2Interface.cpp",
30 ],
31
32 export_include_dirs: [
33 "include",
34 ],
35
36 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080037 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080038 ],
39
Harish Mahendrakarf5dec502022-04-13 15:53:55 -070040 header_libs: [
41 "libarect_headers",
42 "libnativewindow_headers",
43 ],
44
Harish Mahendrakar3a229392023-08-24 17:18:56 +053045 static_libs: [
46 "libyuv_static", // for conversion routines
47 ],
48
Pawin Vongmasa36653902018-11-15 00:10:25 -080049 shared_libs: [
50 "libcutils", // for properties
Cindy Zhou544fc2b2020-12-03 06:24:18 -080051 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080052 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080053 "libstagefright_foundation", // for Mutexed
54 ],
55
Ray Essickef519d72022-01-30 19:34:35 -080056 min_sdk_version: "29",
57 apex_available: [
58 "//apex_available:platform",
59 "com.android.media.swcodec",
60 ],
61
Pawin Vongmasa36653902018-11-15 00:10:25 -080062 sanitize: {
63 misc_undefined: [
64 "unsigned-integer-overflow",
65 "signed-integer-overflow",
66 ],
67 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080068 },
69
70 ldflags: ["-Wl,-Bsymbolic"],
71}
72
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070073filegroup {
74 name: "codec2_soft_exports",
Cindy Zhou544fc2b2020-12-03 06:24:18 -080075 srcs: ["exports.lds"],
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070076}
77
Pawin Vongmasa36653902018-11-15 00:10:25 -080078// public dependency for software codec implementation
79// to be used by code under media/codecs/* only as its stability is not guaranteed
80cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080081 name: "libcodec2_soft-defaults",
82 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080083 vendor_available: true,
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070084 version_script: ":codec2_soft_exports",
Pawin Vongmasa36653902018-11-15 00:10:25 -080085 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080086 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080087 ],
88
Harish Mahendrakarf5dec502022-04-13 15:53:55 -070089 header_libs: [
90 "libarect_headers",
91 "libnativewindow_headers",
92 ],
93
Pawin Vongmasa36653902018-11-15 00:10:25 -080094 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080095 "libcodec2_soft_common",
Pawin Vongmasa36653902018-11-15 00:10:25 -080096 "libcutils", // for properties
97 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080098 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080099 "libstagefright_foundation", // for ColorUtils and MIME
Pawin Vongmasa36653902018-11-15 00:10:25 -0800100 ],
101
102 cflags: [
103 "-Wall",
104 "-Werror",
105 ],
106
107 ldflags: ["-Wl,-Bsymbolic"],
Ray Essickef519d72022-01-30 19:34:35 -0800108
109 min_sdk_version: "29",
110 apex_available: [
111 "//apex_available:platform",
112 "com.android.media.swcodec",
113 ],
Pawin Vongmasa36653902018-11-15 00:10:25 -0800114}
115
116// public dependency for software codec implementation
117// to be used by code under media/codecs/* only
118cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800119 name: "libcodec2_soft_sanitize_all-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800120
121 sanitize: {
122 misc_undefined: [
123 "unsigned-integer-overflow",
124 "signed-integer-overflow",
125 ],
126 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800127 },
128}
129
130// public dependency for software codec implementation
131// to be used by code under media/codecs/* only
132cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800133 name: "libcodec2_soft_sanitize_signed-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800134
135 sanitize: {
136 misc_undefined: [
137 "signed-integer-overflow",
138 ],
Cindy Zhou544fc2b2020-12-03 06:24:18 -0800139 },
140}
141
142cc_defaults {
143 name: "libcodec2_soft_sanitize_cfi-defaults",
144
145 sanitize: {
Pawin Vongmasa36653902018-11-15 00:10:25 -0800146 cfi: true,
Cindy Zhou544fc2b2020-12-03 06:24:18 -0800147 config: {
148 cfi_assembly_support: true,
149 },
Pawin Vongmasa36653902018-11-15 00:10:25 -0800150 },
151}
152
153// TEMP: used by cheets2 project - remove when no longer used
S Vasudev Prasadee173172020-11-23 12:17:14 +0530154cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800155 name: "libcodec2_simple_component",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800156 vendor_available: true,
157
158 srcs: [
159 "SimpleC2Interface.cpp",
160 ],
161
162 local_include_dirs: [
163 "include",
164 ],
165
166 export_include_dirs: [
167 "include",
168 ],
169
170 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800171 "libcodec2",
172 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800173 "libcutils",
174 "liblog",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800175 "libstagefright_foundation",
176 "libutils",
177 ],
178
179 sanitize: {
180 misc_undefined: [
181 "unsigned-integer-overflow",
182 "signed-integer-overflow",
183 ],
184 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800185 },
186
187 ldflags: ["-Wl,-Bsymbolic"],
188}