blob: 809f94277476f8295c93446e197fddef1c65074c [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 Badour948e6aa2021-02-12 21:02:31 -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
S Vasudev Prasadee173172020-11-23 12:17:14 +053012cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080013 name: "libcodec2_soft_common",
14 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080015 vendor_available: true,
16
17 srcs: [
18 "SimpleC2Component.cpp",
19 "SimpleC2Interface.cpp",
20 ],
21
22 export_include_dirs: [
23 "include",
24 ],
25
26 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080027 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080028 ],
29
Harish Mahendrakarf5dec502022-04-13 15:53:55 -070030 header_libs: [
31 "libarect_headers",
32 "libnativewindow_headers",
33 ],
34
Pawin Vongmasa36653902018-11-15 00:10:25 -080035 shared_libs: [
36 "libcutils", // for properties
Cindy Zhou544fc2b2020-12-03 06:24:18 -080037 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080038 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080039 "libstagefright_foundation", // for Mutexed
40 ],
41
42 sanitize: {
43 misc_undefined: [
44 "unsigned-integer-overflow",
45 "signed-integer-overflow",
46 ],
47 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080048 },
49
50 ldflags: ["-Wl,-Bsymbolic"],
51}
52
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070053filegroup {
54 name: "codec2_soft_exports",
Cindy Zhou544fc2b2020-12-03 06:24:18 -080055 srcs: ["exports.lds"],
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070056}
57
Pawin Vongmasa36653902018-11-15 00:10:25 -080058// public dependency for software codec implementation
59// to be used by code under media/codecs/* only as its stability is not guaranteed
60cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080061 name: "libcodec2_soft-defaults",
62 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080063 vendor_available: true,
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070064 version_script: ":codec2_soft_exports",
Pawin Vongmasa36653902018-11-15 00:10:25 -080065 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080066 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080067 ],
68
Harish Mahendrakarf5dec502022-04-13 15:53:55 -070069 header_libs: [
70 "libarect_headers",
71 "libnativewindow_headers",
72 ],
73
Pawin Vongmasa36653902018-11-15 00:10:25 -080074 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080075 "libcodec2_soft_common",
Pawin Vongmasa36653902018-11-15 00:10:25 -080076 "libcutils", // for properties
77 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080078 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080079 "libstagefright_foundation", // for ColorUtils and MIME
Pawin Vongmasa36653902018-11-15 00:10:25 -080080 ],
81
82 cflags: [
83 "-Wall",
84 "-Werror",
85 ],
86
87 ldflags: ["-Wl,-Bsymbolic"],
88}
89
90// public dependency for software codec implementation
91// to be used by code under media/codecs/* only
92cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080093 name: "libcodec2_soft_sanitize_all-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080094
95 sanitize: {
96 misc_undefined: [
97 "unsigned-integer-overflow",
98 "signed-integer-overflow",
99 ],
100 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800101 },
102}
103
104// public dependency for software codec implementation
105// to be used by code under media/codecs/* only
106cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800107 name: "libcodec2_soft_sanitize_signed-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800108
109 sanitize: {
110 misc_undefined: [
111 "signed-integer-overflow",
112 ],
Cindy Zhou544fc2b2020-12-03 06:24:18 -0800113 },
114}
115
116cc_defaults {
117 name: "libcodec2_soft_sanitize_cfi-defaults",
118
119 sanitize: {
Pawin Vongmasa36653902018-11-15 00:10:25 -0800120 cfi: true,
Cindy Zhou544fc2b2020-12-03 06:24:18 -0800121 config: {
122 cfi_assembly_support: true,
123 },
Pawin Vongmasa36653902018-11-15 00:10:25 -0800124 },
125}
126
127// TEMP: used by cheets2 project - remove when no longer used
S Vasudev Prasadee173172020-11-23 12:17:14 +0530128cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800129 name: "libcodec2_simple_component",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800130 vendor_available: true,
131
132 srcs: [
133 "SimpleC2Interface.cpp",
134 ],
135
136 local_include_dirs: [
137 "include",
138 ],
139
140 export_include_dirs: [
141 "include",
142 ],
143
144 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800145 "libcodec2",
146 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800147 "libcutils",
148 "liblog",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800149 "libstagefright_foundation",
150 "libutils",
151 ],
152
153 sanitize: {
154 misc_undefined: [
155 "unsigned-integer-overflow",
156 "signed-integer-overflow",
157 ],
158 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800159 },
160
161 ldflags: ["-Wl,-Bsymbolic"],
162}