blob: 3712564825e616572f76e97341f87127e8955e3d [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
S Vasudev Prasadee173172020-11-23 12:17:14 +05303cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -08004 name: "libcodec2_soft_common",
5 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -08006 vendor_available: true,
7
8 srcs: [
9 "SimpleC2Component.cpp",
10 "SimpleC2Interface.cpp",
11 ],
12
13 export_include_dirs: [
14 "include",
15 ],
16
17 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080018 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080019 ],
20
21 shared_libs: [
22 "libcutils", // for properties
23 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080024 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080025 "libstagefright_foundation", // for Mutexed
26 ],
27
28 sanitize: {
29 misc_undefined: [
30 "unsigned-integer-overflow",
31 "signed-integer-overflow",
32 ],
33 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080034 },
35
36 ldflags: ["-Wl,-Bsymbolic"],
37}
38
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070039filegroup {
40 name: "codec2_soft_exports",
41 srcs: [ "exports.lds" ],
42}
43
Pawin Vongmasa36653902018-11-15 00:10:25 -080044// public dependency for software codec implementation
45// to be used by code under media/codecs/* only as its stability is not guaranteed
46cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080047 name: "libcodec2_soft-defaults",
48 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080049 vendor_available: true,
Harish Mahendrakarc76cdae2019-03-12 10:56:36 -070050 version_script: ":codec2_soft_exports",
Pawin Vongmasa36653902018-11-15 00:10:25 -080051 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080052 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080053 ],
54
55 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080056 "libcodec2_soft_common",
Pawin Vongmasa36653902018-11-15 00:10:25 -080057 "libcutils", // for properties
58 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080059 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080060 "libstagefright_foundation", // for ColorUtils and MIME
Pawin Vongmasa36653902018-11-15 00:10:25 -080061 ],
62
63 cflags: [
64 "-Wall",
65 "-Werror",
66 ],
67
68 ldflags: ["-Wl,-Bsymbolic"],
69}
70
71// public dependency for software codec implementation
72// to be used by code under media/codecs/* only
73cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080074 name: "libcodec2_soft_sanitize_all-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080075
76 sanitize: {
77 misc_undefined: [
78 "unsigned-integer-overflow",
79 "signed-integer-overflow",
80 ],
81 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080082 },
83}
84
85// public dependency for software codec implementation
86// to be used by code under media/codecs/* only
87cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080088 name: "libcodec2_soft_sanitize_signed-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080089
90 sanitize: {
91 misc_undefined: [
92 "signed-integer-overflow",
93 ],
94 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080095 },
96}
97
98// TEMP: used by cheets2 project - remove when no longer used
S Vasudev Prasadee173172020-11-23 12:17:14 +053099cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800100 name: "libcodec2_simple_component",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800101 vendor_available: true,
102
103 srcs: [
104 "SimpleC2Interface.cpp",
105 ],
106
107 local_include_dirs: [
108 "include",
109 ],
110
111 export_include_dirs: [
112 "include",
113 ],
114
115 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800116 "libcodec2",
117 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800118 "libcutils",
119 "liblog",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800120 "libstagefright_foundation",
121 "libutils",
122 ],
123
124 sanitize: {
125 misc_undefined: [
126 "unsigned-integer-overflow",
127 "signed-integer-overflow",
128 ],
129 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800130 },
131
132 ldflags: ["-Wl,-Bsymbolic"],
133}
134