blob: 06bb81af4074649f15fdd469b1cf326a5cf2e54a [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
Pawin Vongmasa36653902018-11-15 00:10:25 -08003cc_library_shared {
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,
34 diag: {
35 cfi: true,
36 },
37 },
38
39 ldflags: ["-Wl,-Bsymbolic"],
40}
41
42// public dependency for software codec implementation
43// to be used by code under media/codecs/* only as its stability is not guaranteed
44cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080045 name: "libcodec2_soft-defaults",
46 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080047 vendor_available: true,
48
49 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080050 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080051 ],
52
53 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080054 "libcodec2_soft_common",
Pawin Vongmasa36653902018-11-15 00:10:25 -080055 "libcutils", // for properties
56 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080057 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 "libstagefright_foundation", // for ColorUtils and MIME
Pawin Vongmasa36653902018-11-15 00:10:25 -080059 ],
60
61 cflags: [
62 "-Wall",
63 "-Werror",
64 ],
65
66 ldflags: ["-Wl,-Bsymbolic"],
67}
68
69// public dependency for software codec implementation
70// to be used by code under media/codecs/* only
71cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080072 name: "libcodec2_soft_sanitize_all-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080073
74 sanitize: {
75 misc_undefined: [
76 "unsigned-integer-overflow",
77 "signed-integer-overflow",
78 ],
79 cfi: true,
80 diag: {
81 cfi: true,
82 },
83 },
84}
85
86// public dependency for software codec implementation
87// to be used by code under media/codecs/* only
88cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080089 name: "libcodec2_soft_sanitize_signed-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080090
91 sanitize: {
92 misc_undefined: [
93 "signed-integer-overflow",
94 ],
95 cfi: true,
96 diag: {
97 cfi: true,
98 },
99 },
100}
101
102// TEMP: used by cheets2 project - remove when no longer used
103cc_library_shared {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800104 name: "libcodec2_simple_component",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800105 vendor_available: true,
106
107 srcs: [
108 "SimpleC2Interface.cpp",
109 ],
110
111 local_include_dirs: [
112 "include",
113 ],
114
115 export_include_dirs: [
116 "include",
117 ],
118
119 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800120 "libcodec2",
121 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800122 "libcutils",
123 "liblog",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800124 "libstagefright_foundation",
125 "libutils",
126 ],
127
128 sanitize: {
129 misc_undefined: [
130 "unsigned-integer-overflow",
131 "signed-integer-overflow",
132 ],
133 cfi: true,
134 diag: {
135 cfi: true,
136 },
137 },
138
139 ldflags: ["-Wl,-Bsymbolic"],
140}
141