blob: d02f541555b7079d7be4f61472cce330e849fd26 [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,
77 diag: {
78 cfi: true,
79 },
80 },
81}
82
83// public dependency for software codec implementation
84// to be used by code under media/codecs/* only
85cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080086 name: "libcodec2_soft_sanitize_signed-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080087
88 sanitize: {
89 misc_undefined: [
90 "signed-integer-overflow",
91 ],
92 cfi: true,
93 diag: {
94 cfi: true,
95 },
96 },
97}
98
99// TEMP: used by cheets2 project - remove when no longer used
100cc_library_shared {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800101 name: "libcodec2_simple_component",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800102 vendor_available: true,
103
104 srcs: [
105 "SimpleC2Interface.cpp",
106 ],
107
108 local_include_dirs: [
109 "include",
110 ],
111
112 export_include_dirs: [
113 "include",
114 ],
115
116 shared_libs: [
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800117 "libcodec2",
118 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800119 "libcutils",
120 "liblog",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800121 "libstagefright_foundation",
122 "libutils",
123 ],
124
125 sanitize: {
126 misc_undefined: [
127 "unsigned-integer-overflow",
128 "signed-integer-overflow",
129 ],
130 cfi: true,
131 diag: {
132 cfi: true,
133 },
134 },
135
136 ldflags: ["-Wl,-Bsymbolic"],
137}
138