Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 1 | // DO NOT DEPEND ON THIS DIRECTLY |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 2 | // use libcodec2_soft-defaults instead |
S Vasudev Prasad | ee17317 | 2020-11-23 12:17:14 +0530 | [diff] [blame] | 3 | cc_library { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 4 | name: "libcodec2_soft_common", |
| 5 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 6 | 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 Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 18 | "libsfplugin_ccodec_utils", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 19 | ], |
| 20 | |
| 21 | shared_libs: [ |
| 22 | "libcutils", // for properties |
| 23 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 24 | "libsfplugin_ccodec_utils", // for ImageCopy |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 25 | "libstagefright_foundation", // for Mutexed |
| 26 | ], |
| 27 | |
| 28 | sanitize: { |
| 29 | misc_undefined: [ |
| 30 | "unsigned-integer-overflow", |
| 31 | "signed-integer-overflow", |
| 32 | ], |
| 33 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 34 | }, |
| 35 | |
| 36 | ldflags: ["-Wl,-Bsymbolic"], |
| 37 | } |
| 38 | |
Harish Mahendrakar | c76cdae | 2019-03-12 10:56:36 -0700 | [diff] [blame] | 39 | filegroup { |
| 40 | name: "codec2_soft_exports", |
| 41 | srcs: [ "exports.lds" ], |
| 42 | } |
| 43 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 44 | // public dependency for software codec implementation |
| 45 | // to be used by code under media/codecs/* only as its stability is not guaranteed |
| 46 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 47 | name: "libcodec2_soft-defaults", |
| 48 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 49 | vendor_available: true, |
Harish Mahendrakar | c76cdae | 2019-03-12 10:56:36 -0700 | [diff] [blame] | 50 | version_script: ":codec2_soft_exports", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 51 | export_shared_lib_headers: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 52 | "libsfplugin_ccodec_utils", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 53 | ], |
| 54 | |
| 55 | shared_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 56 | "libcodec2_soft_common", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 57 | "libcutils", // for properties |
| 58 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 59 | "libsfplugin_ccodec_utils", // for ImageCopy |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 60 | "libstagefright_foundation", // for ColorUtils and MIME |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 61 | ], |
| 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 |
| 73 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 74 | name: "libcodec2_soft_sanitize_all-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 75 | |
| 76 | sanitize: { |
| 77 | misc_undefined: [ |
| 78 | "unsigned-integer-overflow", |
| 79 | "signed-integer-overflow", |
| 80 | ], |
| 81 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 82 | }, |
| 83 | } |
| 84 | |
| 85 | // public dependency for software codec implementation |
| 86 | // to be used by code under media/codecs/* only |
| 87 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 88 | name: "libcodec2_soft_sanitize_signed-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 89 | |
| 90 | sanitize: { |
| 91 | misc_undefined: [ |
| 92 | "signed-integer-overflow", |
| 93 | ], |
| 94 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 95 | }, |
| 96 | } |
| 97 | |
| 98 | // TEMP: used by cheets2 project - remove when no longer used |
S Vasudev Prasad | ee17317 | 2020-11-23 12:17:14 +0530 | [diff] [blame] | 99 | cc_library { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 100 | name: "libcodec2_simple_component", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 101 | 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 Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 116 | "libcodec2", |
| 117 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 118 | "libcutils", |
| 119 | "liblog", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 120 | "libstagefright_foundation", |
| 121 | "libutils", |
| 122 | ], |
| 123 | |
| 124 | sanitize: { |
| 125 | misc_undefined: [ |
| 126 | "unsigned-integer-overflow", |
| 127 | "signed-integer-overflow", |
| 128 | ], |
| 129 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 130 | }, |
| 131 | |
| 132 | ldflags: ["-Wl,-Bsymbolic"], |
| 133 | } |
| 134 | |