blob: 664647a6b5d7028a17539a35de0f26b82c2608a1 [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
Pawin Vongmasa36653902018-11-15 00:10:25 -080045 shared_libs: [
46 "libcutils", // for properties
Cindy Zhou544fc2b2020-12-03 06:24:18 -080047 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080048 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080049 "libstagefright_foundation", // for Mutexed
50 ],
51
Ray Essickef519d72022-01-30 19:34:35 -080052 min_sdk_version: "29",
53 apex_available: [
54 "//apex_available:platform",
55 "com.android.media.swcodec",
56 ],
57
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 sanitize: {
59 misc_undefined: [
60 "unsigned-integer-overflow",
61 "signed-integer-overflow",
62 ],
63 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080064 },
65
66 ldflags: ["-Wl,-Bsymbolic"],
67}
68
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070069filegroup {
70 name: "codec2_soft_exports",
Cindy Zhou544fc2b2020-12-03 06:24:18 -080071 srcs: ["exports.lds"],
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070072}
73
Pawin Vongmasa36653902018-11-15 00:10:25 -080074// public dependency for software codec implementation
75// to be used by code under media/codecs/* only as its stability is not guaranteed
76cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080077 name: "libcodec2_soft-defaults",
78 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080079 vendor_available: true,
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070080 version_script: ":codec2_soft_exports",
Pawin Vongmasa36653902018-11-15 00:10:25 -080081 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080082 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080083 ],
84
Harish Mahendrakarf5dec502022-04-13 15:53:55 -070085 header_libs: [
86 "libarect_headers",
87 "libnativewindow_headers",
88 ],
89
Pawin Vongmasa36653902018-11-15 00:10:25 -080090 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080091 "libcodec2_soft_common",
Pawin Vongmasa36653902018-11-15 00:10:25 -080092 "libcutils", // for properties
93 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080094 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080095 "libstagefright_foundation", // for ColorUtils and MIME
Pawin Vongmasa36653902018-11-15 00:10:25 -080096 ],
97
98 cflags: [
99 "-Wall",
100 "-Werror",
101 ],
102
103 ldflags: ["-Wl,-Bsymbolic"],
Ray Essickef519d72022-01-30 19:34:35 -0800104
105 min_sdk_version: "29",
106 apex_available: [
107 "//apex_available:platform",
108 "com.android.media.swcodec",
109 ],
Pawin Vongmasa36653902018-11-15 00:10:25 -0800110}
111
112// public dependency for software codec implementation
113// to be used by code under media/codecs/* only
114cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800115 name: "libcodec2_soft_sanitize_all-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800116
117 sanitize: {
118 misc_undefined: [
119 "unsigned-integer-overflow",
120 "signed-integer-overflow",
121 ],
122 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800123 },
124}
125
126// public dependency for software codec implementation
127// to be used by code under media/codecs/* only
128cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800129 name: "libcodec2_soft_sanitize_signed-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800130
131 sanitize: {
132 misc_undefined: [
133 "signed-integer-overflow",
134 ],
Cindy Zhou544fc2b2020-12-03 06:24:18 -0800135 },
136}
137
138cc_defaults {
139 name: "libcodec2_soft_sanitize_cfi-defaults",
140
141 sanitize: {
Pawin Vongmasa36653902018-11-15 00:10:25 -0800142 cfi: true,
Cindy Zhou544fc2b2020-12-03 06:24:18 -0800143 config: {
144 cfi_assembly_support: true,
145 },
Pawin Vongmasa36653902018-11-15 00:10:25 -0800146 },
147}
148
149// TEMP: used by cheets2 project - remove when no longer used
S Vasudev Prasadee173172020-11-23 12:17:14 +0530150cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800151 name: "libcodec2_simple_component",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800152 vendor_available: true,
153
154 srcs: [
155 "SimpleC2Interface.cpp",
156 ],
157
158 local_include_dirs: [
159 "include",
160 ],
161
162 export_include_dirs: [
163 "include",
164 ],
165
166 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800167 "libcodec2",
168 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800169 "libcutils",
170 "liblog",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800171 "libstagefright_foundation",
172 "libutils",
173 ],
174
175 sanitize: {
176 misc_undefined: [
177 "unsigned-integer-overflow",
178 "signed-integer-overflow",
179 ],
180 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800181 },
182
183 ldflags: ["-Wl,-Bsymbolic"],
184}