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