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