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