blob: 160e2502351966da7cdbabf0def3b14b261f8b5e [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 Badourc8375042021-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
30 shared_libs: [
31 "libcutils", // for properties
Cindy Zhou544fc2b2020-12-03 06:24:18 -080032 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080033 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080034 "libstagefright_foundation", // for Mutexed
35 ],
36
37 sanitize: {
38 misc_undefined: [
39 "unsigned-integer-overflow",
40 "signed-integer-overflow",
41 ],
42 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080043 },
44
45 ldflags: ["-Wl,-Bsymbolic"],
46}
47
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070048filegroup {
49 name: "codec2_soft_exports",
Cindy Zhou544fc2b2020-12-03 06:24:18 -080050 srcs: ["exports.lds"],
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070051}
52
Pawin Vongmasa36653902018-11-15 00:10:25 -080053// public dependency for software codec implementation
54// to be used by code under media/codecs/* only as its stability is not guaranteed
55cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080056 name: "libcodec2_soft-defaults",
57 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 vendor_available: true,
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070059 version_script: ":codec2_soft_exports",
Pawin Vongmasa36653902018-11-15 00:10:25 -080060 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080061 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080062 ],
63
64 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080065 "libcodec2_soft_common",
Pawin Vongmasa36653902018-11-15 00:10:25 -080066 "libcutils", // for properties
67 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080068 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080069 "libstagefright_foundation", // for ColorUtils and MIME
Pawin Vongmasa36653902018-11-15 00:10:25 -080070 ],
71
72 cflags: [
73 "-Wall",
74 "-Werror",
75 ],
76
77 ldflags: ["-Wl,-Bsymbolic"],
78}
79
80// public dependency for software codec implementation
81// to be used by code under media/codecs/* only
82cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080083 name: "libcodec2_soft_sanitize_all-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080084
85 sanitize: {
86 misc_undefined: [
87 "unsigned-integer-overflow",
88 "signed-integer-overflow",
89 ],
90 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080091 },
92}
93
94// public dependency for software codec implementation
95// to be used by code under media/codecs/* only
96cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080097 name: "libcodec2_soft_sanitize_signed-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080098
99 sanitize: {
100 misc_undefined: [
101 "signed-integer-overflow",
102 ],
Cindy Zhou544fc2b2020-12-03 06:24:18 -0800103 },
104}
105
106cc_defaults {
107 name: "libcodec2_soft_sanitize_cfi-defaults",
108
109 sanitize: {
Pawin Vongmasa36653902018-11-15 00:10:25 -0800110 cfi: true,
Cindy Zhou544fc2b2020-12-03 06:24:18 -0800111 config: {
112 cfi_assembly_support: true,
113 },
Pawin Vongmasa36653902018-11-15 00:10:25 -0800114 },
115}
116
117// TEMP: used by cheets2 project - remove when no longer used
S Vasudev Prasadee173172020-11-23 12:17:14 +0530118cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800119 name: "libcodec2_simple_component",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800120 vendor_available: true,
121
122 srcs: [
123 "SimpleC2Interface.cpp",
124 ],
125
126 local_include_dirs: [
127 "include",
128 ],
129
130 export_include_dirs: [
131 "include",
132 ],
133
134 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800135 "libcodec2",
136 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800137 "libcutils",
138 "liblog",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800139 "libstagefright_foundation",
140 "libutils",
141 ],
142
143 sanitize: {
144 misc_undefined: [
145 "unsigned-integer-overflow",
146 "signed-integer-overflow",
147 ],
148 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800149 },
150
151 ldflags: ["-Wl,-Bsymbolic"],
152}