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 |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 3 | cc_library_shared { |
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, |
| 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 |
| 44 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 45 | name: "libcodec2_soft-defaults", |
| 46 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 47 | vendor_available: true, |
| 48 | |
| 49 | export_shared_lib_headers: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 50 | "libsfplugin_ccodec_utils", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 51 | ], |
| 52 | |
| 53 | shared_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 54 | "libcodec2_soft_common", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 55 | "libcutils", // for properties |
| 56 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 57 | "libsfplugin_ccodec_utils", // for ImageCopy |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 58 | "libstagefright_foundation", // for ColorUtils and MIME |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 59 | ], |
| 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 |
| 71 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 72 | name: "libcodec2_soft_sanitize_all-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 73 | |
| 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 |
| 88 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 89 | name: "libcodec2_soft_sanitize_signed-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 90 | |
| 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 |
| 103 | cc_library_shared { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 104 | name: "libcodec2_simple_component", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 105 | 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 Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 120 | "libcodec2", |
| 121 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 122 | "libcutils", |
| 123 | "liblog", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 124 | "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 | |