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