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 | 56786ac | 2021-02-25 15:24:36 -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 | |
Ray Essick | 4dfd2f3 | 2022-03-07 11:40:28 -0800 | [diff] [blame] | 12 | cc_library_headers { |
| 13 | name: "libcodec2_soft_common_headers", |
| 14 | defaults: ["libcodec2-impl-defaults"], |
| 15 | vendor_available: true, |
| 16 | |
| 17 | export_include_dirs: [ |
| 18 | "include", |
| 19 | ], |
| 20 | } |
| 21 | |
S Vasudev Prasad | ee17317 | 2020-11-23 12:17:14 +0530 | [diff] [blame] | 22 | cc_library { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 23 | name: "libcodec2_soft_common", |
| 24 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 25 | vendor_available: true, |
| 26 | |
| 27 | srcs: [ |
| 28 | "SimpleC2Component.cpp", |
| 29 | "SimpleC2Interface.cpp", |
| 30 | ], |
| 31 | |
| 32 | export_include_dirs: [ |
| 33 | "include", |
| 34 | ], |
| 35 | |
| 36 | export_shared_lib_headers: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 37 | "libsfplugin_ccodec_utils", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 38 | ], |
| 39 | |
Harish Mahendrakar | f5dec50 | 2022-04-13 15:53:55 -0700 | [diff] [blame] | 40 | header_libs: [ |
| 41 | "libarect_headers", |
| 42 | "libnativewindow_headers", |
| 43 | ], |
| 44 | |
Harish Mahendrakar | 3a22939 | 2023-08-24 17:18:56 +0530 | [diff] [blame] | 45 | static_libs: [ |
Ray Essick | 18070d4 | 2024-04-22 15:38:47 -0500 | [diff] [blame^] | 46 | "libyuv", // for conversion routines |
Harish Mahendrakar | 3a22939 | 2023-08-24 17:18:56 +0530 | [diff] [blame] | 47 | ], |
| 48 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 49 | shared_libs: [ |
| 50 | "libcutils", // for properties |
Cindy Zhou | 544fc2b | 2020-12-03 06:24:18 -0800 | [diff] [blame] | 51 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 52 | "libsfplugin_ccodec_utils", // for ImageCopy |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 53 | "libstagefright_foundation", // for Mutexed |
| 54 | ], |
| 55 | |
Ray Essick | ef519d7 | 2022-01-30 19:34:35 -0800 | [diff] [blame] | 56 | min_sdk_version: "29", |
| 57 | apex_available: [ |
| 58 | "//apex_available:platform", |
| 59 | "com.android.media.swcodec", |
| 60 | ], |
| 61 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 62 | sanitize: { |
| 63 | misc_undefined: [ |
| 64 | "unsigned-integer-overflow", |
| 65 | "signed-integer-overflow", |
| 66 | ], |
| 67 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 68 | }, |
| 69 | |
| 70 | ldflags: ["-Wl,-Bsymbolic"], |
| 71 | } |
| 72 | |
Harish Mahendrakar | c76cdae | 2019-03-12 10:56:36 -0700 | [diff] [blame] | 73 | filegroup { |
| 74 | name: "codec2_soft_exports", |
Cindy Zhou | 544fc2b | 2020-12-03 06:24:18 -0800 | [diff] [blame] | 75 | srcs: ["exports.lds"], |
Harish Mahendrakar | c76cdae | 2019-03-12 10:56:36 -0700 | [diff] [blame] | 76 | } |
| 77 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 78 | // public dependency for software codec implementation |
| 79 | // to be used by code under media/codecs/* only as its stability is not guaranteed |
| 80 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 81 | name: "libcodec2_soft-defaults", |
| 82 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 83 | vendor_available: true, |
Harish Mahendrakar | c76cdae | 2019-03-12 10:56:36 -0700 | [diff] [blame] | 84 | version_script: ":codec2_soft_exports", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 85 | export_shared_lib_headers: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 86 | "libsfplugin_ccodec_utils", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 87 | ], |
| 88 | |
Harish Mahendrakar | f5dec50 | 2022-04-13 15:53:55 -0700 | [diff] [blame] | 89 | header_libs: [ |
| 90 | "libarect_headers", |
| 91 | "libnativewindow_headers", |
| 92 | ], |
| 93 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 94 | shared_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 95 | "libcodec2_soft_common", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 96 | "libcutils", // for properties |
| 97 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 98 | "libsfplugin_ccodec_utils", // for ImageCopy |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 99 | "libstagefright_foundation", // for ColorUtils and MIME |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 100 | ], |
| 101 | |
| 102 | cflags: [ |
| 103 | "-Wall", |
| 104 | "-Werror", |
| 105 | ], |
| 106 | |
| 107 | ldflags: ["-Wl,-Bsymbolic"], |
Ray Essick | ef519d7 | 2022-01-30 19:34:35 -0800 | [diff] [blame] | 108 | |
| 109 | min_sdk_version: "29", |
| 110 | apex_available: [ |
| 111 | "//apex_available:platform", |
| 112 | "com.android.media.swcodec", |
| 113 | ], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | // public dependency for software codec implementation |
| 117 | // to be used by code under media/codecs/* only |
| 118 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 119 | name: "libcodec2_soft_sanitize_all-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 120 | |
| 121 | sanitize: { |
| 122 | misc_undefined: [ |
| 123 | "unsigned-integer-overflow", |
| 124 | "signed-integer-overflow", |
| 125 | ], |
| 126 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 127 | }, |
| 128 | } |
| 129 | |
| 130 | // public dependency for software codec implementation |
| 131 | // to be used by code under media/codecs/* only |
| 132 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 133 | name: "libcodec2_soft_sanitize_signed-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 134 | |
| 135 | sanitize: { |
| 136 | misc_undefined: [ |
| 137 | "signed-integer-overflow", |
| 138 | ], |
Cindy Zhou | 544fc2b | 2020-12-03 06:24:18 -0800 | [diff] [blame] | 139 | }, |
| 140 | } |
| 141 | |
| 142 | cc_defaults { |
| 143 | name: "libcodec2_soft_sanitize_cfi-defaults", |
| 144 | |
| 145 | sanitize: { |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 146 | cfi: true, |
Cindy Zhou | 544fc2b | 2020-12-03 06:24:18 -0800 | [diff] [blame] | 147 | config: { |
| 148 | cfi_assembly_support: true, |
| 149 | }, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 150 | }, |
| 151 | } |
| 152 | |
| 153 | // TEMP: used by cheets2 project - remove when no longer used |
S Vasudev Prasad | ee17317 | 2020-11-23 12:17:14 +0530 | [diff] [blame] | 154 | cc_library { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 155 | name: "libcodec2_simple_component", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 156 | vendor_available: true, |
| 157 | |
| 158 | srcs: [ |
| 159 | "SimpleC2Interface.cpp", |
| 160 | ], |
| 161 | |
| 162 | local_include_dirs: [ |
| 163 | "include", |
| 164 | ], |
| 165 | |
| 166 | export_include_dirs: [ |
| 167 | "include", |
| 168 | ], |
| 169 | |
| 170 | shared_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 171 | "libcodec2", |
| 172 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 173 | "libcutils", |
| 174 | "liblog", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 175 | "libstagefright_foundation", |
| 176 | "libutils", |
| 177 | ], |
| 178 | |
| 179 | sanitize: { |
| 180 | misc_undefined: [ |
| 181 | "unsigned-integer-overflow", |
| 182 | "signed-integer-overflow", |
| 183 | ], |
| 184 | cfi: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 185 | }, |
| 186 | |
| 187 | ldflags: ["-Wl,-Bsymbolic"], |
| 188 | } |