blob: 78a444bdbcdb77799e90af6201138bca64aae8e3 [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,
Pawin Vongmasa36653902018-11-15 00:10:25 -080034 },
35
36 ldflags: ["-Wl,-Bsymbolic"],
37}
38
39// public dependency for software codec implementation
40// to be used by code under media/codecs/* only as its stability is not guaranteed
41cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080042 name: "libcodec2_soft-defaults",
43 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -080044 vendor_available: true,
45
46 export_shared_lib_headers: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080047 "libsfplugin_ccodec_utils",
Pawin Vongmasa36653902018-11-15 00:10:25 -080048 ],
49
50 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080051 "libcodec2_soft_common",
Pawin Vongmasa36653902018-11-15 00:10:25 -080052 "libcutils", // for properties
53 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080054 "libsfplugin_ccodec_utils", // for ImageCopy
Pawin Vongmasa36653902018-11-15 00:10:25 -080055 "libstagefright_foundation", // for ColorUtils and MIME
Pawin Vongmasa36653902018-11-15 00:10:25 -080056 ],
57
58 cflags: [
59 "-Wall",
60 "-Werror",
61 ],
62
63 ldflags: ["-Wl,-Bsymbolic"],
64}
65
66// public dependency for software codec implementation
67// to be used by code under media/codecs/* only
68cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080069 name: "libcodec2_soft_sanitize_all-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080070
71 sanitize: {
72 misc_undefined: [
73 "unsigned-integer-overflow",
74 "signed-integer-overflow",
75 ],
76 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080077 },
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_signed-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080084
85 sanitize: {
86 misc_undefined: [
87 "signed-integer-overflow",
88 ],
89 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080090 },
91}
92
93// TEMP: used by cheets2 project - remove when no longer used
94cc_library_shared {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080095 name: "libcodec2_simple_component",
Pawin Vongmasa36653902018-11-15 00:10:25 -080096 vendor_available: true,
97
98 srcs: [
99 "SimpleC2Interface.cpp",
100 ],
101
102 local_include_dirs: [
103 "include",
104 ],
105
106 export_include_dirs: [
107 "include",
108 ],
109
110 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800111 "libcodec2",
112 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800113 "libcutils",
114 "liblog",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800115 "libstagefright_foundation",
116 "libutils",
117 ],
118
119 sanitize: {
120 misc_undefined: [
121 "unsigned-integer-overflow",
122 "signed-integer-overflow",
123 ],
124 cfi: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -0800125 },
126
127 ldflags: ["-Wl,-Bsymbolic"],
128}
129