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 |
Bob Badour | 948e6aa | 2021-02-12 21:02:31 -0800 | [diff] [blame] | 3 | package { |
| 4 | // See: http://go/android-license-faq |
| 5 | // A large-scale-change added 'default_applicable_licenses' to import |
| 6 | // all of the 'license_kinds' from "frameworks_av_license" |
| 7 | // to get the below license kinds: |
| 8 | // SPDX-license-identifier-Apache-2.0 |
| 9 | default_applicable_licenses: ["frameworks_av_license"], |
| 10 | } |
| 11 | |
S Vasudev Prasad | ee17317 | 2020-11-23 12:17:14 +0530 | [diff] [blame] | 12 | cc_library { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 13 | name: "libcodec2_soft_common", |
| 14 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 15 | vendor_available: true, |
| 16 | |
| 17 | srcs: [ |
| 18 | "SimpleC2Component.cpp", |
| 19 | "SimpleC2Interface.cpp", |
| 20 | ], |
| 21 | |
| 22 | export_include_dirs: [ |
| 23 | "include", |
| 24 | ], |
| 25 | |
| 26 | export_shared_lib_headers: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 27 | "libsfplugin_ccodec_utils", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 28 | ], |
| 29 | |
Harish Mahendrakar | f5dec50 | 2022-04-13 15:53:55 -0700 | [diff] [blame^] | 30 | header_libs: [ |
| 31 | "libarect_headers", |
| 32 | "libnativewindow_headers", |
| 33 | ], |
| 34 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 35 | shared_libs: [ |
| 36 | "libcutils", // for properties |
Cindy Zhou | 544fc2b | 2020-12-03 06:24:18 -0800 | [diff] [blame] | 37 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 38 | "libsfplugin_ccodec_utils", // for ImageCopy |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 39 | "libstagefright_foundation", // for Mutexed |
| 40 | ], |
| 41 | |
| 42 | sanitize: { |
| 43 | misc_undefined: [ |
| 44 | "unsigned-integer-overflow", |
| 45 | "signed-integer-overflow", |
| 46 | ], |
| 47 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 48 | }, |
| 49 | |
| 50 | ldflags: ["-Wl,-Bsymbolic"], |
| 51 | } |
| 52 | |
Harish Mahendrakar | c76cdae | 2019-03-12 10:56:36 -0700 | [diff] [blame] | 53 | filegroup { |
| 54 | name: "codec2_soft_exports", |
Cindy Zhou | 544fc2b | 2020-12-03 06:24:18 -0800 | [diff] [blame] | 55 | srcs: ["exports.lds"], |
Harish Mahendrakar | c76cdae | 2019-03-12 10:56:36 -0700 | [diff] [blame] | 56 | } |
| 57 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 58 | // public dependency for software codec implementation |
| 59 | // to be used by code under media/codecs/* only as its stability is not guaranteed |
| 60 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 61 | name: "libcodec2_soft-defaults", |
| 62 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 63 | vendor_available: true, |
Harish Mahendrakar | c76cdae | 2019-03-12 10:56:36 -0700 | [diff] [blame] | 64 | version_script: ":codec2_soft_exports", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 65 | export_shared_lib_headers: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 66 | "libsfplugin_ccodec_utils", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 67 | ], |
| 68 | |
Harish Mahendrakar | f5dec50 | 2022-04-13 15:53:55 -0700 | [diff] [blame^] | 69 | header_libs: [ |
| 70 | "libarect_headers", |
| 71 | "libnativewindow_headers", |
| 72 | ], |
| 73 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 74 | shared_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 75 | "libcodec2_soft_common", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 76 | "libcutils", // for properties |
| 77 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 78 | "libsfplugin_ccodec_utils", // for ImageCopy |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 79 | "libstagefright_foundation", // for ColorUtils and MIME |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 80 | ], |
| 81 | |
| 82 | cflags: [ |
| 83 | "-Wall", |
| 84 | "-Werror", |
| 85 | ], |
| 86 | |
| 87 | ldflags: ["-Wl,-Bsymbolic"], |
| 88 | } |
| 89 | |
| 90 | // public dependency for software codec implementation |
| 91 | // to be used by code under media/codecs/* only |
| 92 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 93 | name: "libcodec2_soft_sanitize_all-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 94 | |
| 95 | sanitize: { |
| 96 | misc_undefined: [ |
| 97 | "unsigned-integer-overflow", |
| 98 | "signed-integer-overflow", |
| 99 | ], |
| 100 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 101 | }, |
| 102 | } |
| 103 | |
| 104 | // public dependency for software codec implementation |
| 105 | // to be used by code under media/codecs/* only |
| 106 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 107 | name: "libcodec2_soft_sanitize_signed-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 108 | |
| 109 | sanitize: { |
| 110 | misc_undefined: [ |
| 111 | "signed-integer-overflow", |
| 112 | ], |
Cindy Zhou | 544fc2b | 2020-12-03 06:24:18 -0800 | [diff] [blame] | 113 | }, |
| 114 | } |
| 115 | |
| 116 | cc_defaults { |
| 117 | name: "libcodec2_soft_sanitize_cfi-defaults", |
| 118 | |
| 119 | sanitize: { |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 120 | cfi: true, |
Cindy Zhou | 544fc2b | 2020-12-03 06:24:18 -0800 | [diff] [blame] | 121 | config: { |
| 122 | cfi_assembly_support: true, |
| 123 | }, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 124 | }, |
| 125 | } |
| 126 | |
| 127 | // TEMP: used by cheets2 project - remove when no longer used |
S Vasudev Prasad | ee17317 | 2020-11-23 12:17:14 +0530 | [diff] [blame] | 128 | cc_library { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 129 | name: "libcodec2_simple_component", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 130 | vendor_available: true, |
| 131 | |
| 132 | srcs: [ |
| 133 | "SimpleC2Interface.cpp", |
| 134 | ], |
| 135 | |
| 136 | local_include_dirs: [ |
| 137 | "include", |
| 138 | ], |
| 139 | |
| 140 | export_include_dirs: [ |
| 141 | "include", |
| 142 | ], |
| 143 | |
| 144 | shared_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 145 | "libcodec2", |
| 146 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 147 | "libcutils", |
| 148 | "liblog", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 149 | "libstagefright_foundation", |
| 150 | "libutils", |
| 151 | ], |
| 152 | |
| 153 | sanitize: { |
| 154 | misc_undefined: [ |
| 155 | "unsigned-integer-overflow", |
| 156 | "signed-integer-overflow", |
| 157 | ], |
| 158 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 159 | }, |
| 160 | |
| 161 | ldflags: ["-Wl,-Bsymbolic"], |
| 162 | } |