Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_av_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_av_license"], |
| 8 | } |
| 9 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 10 | cc_library_headers { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 11 | name: "libcodec2_internal", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 12 | |
| 13 | export_include_dirs: [ |
| 14 | "internal", |
| 15 | ], |
| 16 | |
| 17 | // TODO: Remove this when this module is moved back to frameworks/av. |
| 18 | vendor_available: true, |
Jooyung Han | e3cf41a | 2020-04-30 04:22:22 +0900 | [diff] [blame] | 19 | |
| 20 | min_sdk_version: "29", |
Ray Essick | ef519d7 | 2022-01-30 19:34:35 -0800 | [diff] [blame] | 21 | apex_available: [ |
| 22 | "//apex_available:platform", |
| 23 | "com.android.media.swcodec", |
| 24 | ], |
| 25 | |
| 26 | } |
| 27 | |
| 28 | cc_library_headers { |
| 29 | name: "libcodec2_vndk_headers", |
| 30 | vendor_available: true, |
| 31 | min_sdk_version: "29", |
| 32 | |
| 33 | export_include_dirs: [ |
| 34 | "include", |
| 35 | ], |
| 36 | apex_available: [ |
| 37 | "//apex_available:platform", |
| 38 | "com.android.media.swcodec", |
| 39 | ], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | // !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!! |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 43 | // use libcodec2-impl-defaults instead |
S Vasudev Prasad | 5e52528 | 2020-11-23 12:15:40 +0530 | [diff] [blame] | 44 | cc_library { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 45 | name: "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 46 | vendor_available: true, |
Jooyung Han | e3cf41a | 2020-04-30 04:22:22 +0900 | [diff] [blame] | 47 | min_sdk_version: "29", |
Wonsik Kim | 155d5cb | 2019-10-09 12:49:49 -0700 | [diff] [blame] | 48 | // TODO: b/147147883 |
| 49 | double_loadable: true, |
Ray Essick | ef519d7 | 2022-01-30 19:34:35 -0800 | [diff] [blame] | 50 | apex_available: [ |
| 51 | "//apex_available:platform", |
| 52 | "com.android.media.swcodec", |
| 53 | ], |
| 54 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 55 | |
| 56 | srcs: [ |
Pin-chih Lin | f72774b | 2019-11-19 18:26:47 +0800 | [diff] [blame] | 57 | "C2AllocatorBlob.cpp", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 58 | "C2AllocatorIon.cpp", |
| 59 | "C2AllocatorGralloc.cpp", |
| 60 | "C2Buffer.cpp", |
| 61 | "C2Config.cpp", |
John Stultz | 6a40788 | 2020-07-11 04:34:19 +0000 | [diff] [blame] | 62 | "C2DmaBufAllocator.cpp", |
Sungtak Lee | fce527c | 2021-03-20 01:24:41 -0700 | [diff] [blame] | 63 | "C2Fence.cpp", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 64 | "C2PlatformStorePluginLoader.cpp", |
| 65 | "C2Store.cpp", |
| 66 | "platform/C2BqBuffer.cpp", |
Sungtak Lee | fce527c | 2021-03-20 01:24:41 -0700 | [diff] [blame] | 67 | "platform/C2SurfaceSyncObj.cpp", |
Chong Zhang | c8ce1d8 | 2019-03-27 10:18:38 -0700 | [diff] [blame] | 68 | "types.cpp", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 69 | "util/C2Debug.cpp", |
| 70 | "util/C2InterfaceHelper.cpp", |
| 71 | "util/C2InterfaceUtils.cpp", |
| 72 | "util/C2ParamUtils.cpp", |
| 73 | ], |
| 74 | |
| 75 | export_include_dirs: [ |
| 76 | "include", |
| 77 | ], |
| 78 | |
| 79 | export_shared_lib_headers: [ |
| 80 | "libbase", |
Sungtak Lee | 0d6979c | 2022-03-25 16:36:01 -0700 | [diff] [blame] | 81 | "libdmabufheap", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 82 | "android.hardware.media.bufferpool@2.0", |
Sungtak Lee | 92573a2 | 2022-12-10 05:48:38 +0000 | [diff] [blame^] | 83 | "android.hardware.media.bufferpool2-V1-ndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 84 | ], |
| 85 | |
| 86 | local_include_dirs: [ |
| 87 | "internal", |
| 88 | ], |
| 89 | |
Pawin Vongmasa | cc1b476 | 2018-11-26 00:46:29 -0800 | [diff] [blame] | 90 | header_libs: [ |
| 91 | "media_plugin_headers", |
| 92 | "libcodec2_headers", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 93 | ], |
| 94 | |
| 95 | shared_libs: [ |
Pawin Vongmasa | ef939bf | 2019-03-03 04:44:59 -0800 | [diff] [blame] | 96 | "android.hardware.graphics.bufferqueue@2.0", |
Marissa Wall | 2a24a30 | 2019-11-25 11:19:18 -0800 | [diff] [blame] | 97 | "android.hardware.graphics.common@1.2", |
Sungtak Lee | 92573a2 | 2022-12-10 05:48:38 +0000 | [diff] [blame^] | 98 | "android.hardware.common-V2-ndk", |
| 99 | "android.hardware.common.fmq-V1-ndk", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 100 | "android.hardware.media.bufferpool@2.0", |
Sungtak Lee | 92573a2 | 2022-12-10 05:48:38 +0000 | [diff] [blame^] | 101 | "android.hardware.media.bufferpool2-V1-ndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 102 | "libbase", |
Sungtak Lee | 92573a2 | 2022-12-10 05:48:38 +0000 | [diff] [blame^] | 103 | "libbinder_ndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 104 | "libcutils", |
| 105 | "libdl", |
Praveen Chavan | 34493f1 | 2021-02-18 00:51:50 -0800 | [diff] [blame] | 106 | "libdmabufheap", |
| 107 | "libfmq", |
| 108 | "libgralloctypes", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 109 | "libhidlbase", |
| 110 | "libion", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 111 | "liblog", |
Chong Zhang | c8ce1d8 | 2019-03-27 10:18:38 -0700 | [diff] [blame] | 112 | "libnativewindow", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 113 | "libstagefright_foundation", |
Pawin Vongmasa | 329ac9c | 2019-09-09 21:28:05 -0700 | [diff] [blame] | 114 | "libstagefright_bufferpool@2.0.1", |
Sungtak Lee | 92573a2 | 2022-12-10 05:48:38 +0000 | [diff] [blame^] | 115 | "libstagefright_aidl_bufferpool2", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 116 | "libui", |
| 117 | "libutils", |
| 118 | ], |
| 119 | |
| 120 | cflags: [ |
| 121 | "-Werror", |
| 122 | "-Wall", |
| 123 | ], |
| 124 | } |
| 125 | |
Lajos Molnar | 99d4d11 | 2022-01-28 12:42:05 -0800 | [diff] [blame] | 126 | // public dependency for statically linking to libcodec2_vndk for unit tests |
| 127 | cc_defaults { |
| 128 | name: "libcodec2-static-defaults", |
| 129 | |
| 130 | static_libs: [ |
| 131 | "liblog", |
| 132 | "libion", |
| 133 | "libfmq", |
| 134 | "libbase", |
| 135 | "libutils", |
| 136 | "libcutils", |
| 137 | "libcodec2", |
| 138 | "libhidlbase", |
| 139 | "libdmabufheap", |
| 140 | "libcodec2_vndk", |
| 141 | "libnativewindow", |
| 142 | "libcodec2_soft_common", |
| 143 | "libsfplugin_ccodec_utils", |
Sungtak Lee | 92573a2 | 2022-12-10 05:48:38 +0000 | [diff] [blame^] | 144 | "libstagefright_aidl_bufferpool2", |
Lajos Molnar | 99d4d11 | 2022-01-28 12:42:05 -0800 | [diff] [blame] | 145 | "libstagefright_foundation", |
| 146 | "libstagefright_bufferpool@2.0.1", |
| 147 | "libgralloctypes", |
| 148 | "android.hardware.graphics.mapper@2.0", |
| 149 | "android.hardware.graphics.mapper@3.0", |
| 150 | "android.hardware.media.bufferpool@2.0", |
| 151 | "android.hardware.graphics.allocator@2.0", |
| 152 | "android.hardware.graphics.allocator@3.0", |
| 153 | "android.hardware.graphics.bufferqueue@2.0", |
Sungtak Lee | 92573a2 | 2022-12-10 05:48:38 +0000 | [diff] [blame^] | 154 | "android.hardware.common-V2-ndk", |
| 155 | "android.hardware.common.fmq-V1-ndk", |
| 156 | "android.hardware.media.bufferpool2-V1-ndk", |
Lajos Molnar | 99d4d11 | 2022-01-28 12:42:05 -0800 | [diff] [blame] | 157 | ], |
| 158 | |
| 159 | shared_libs: [ |
Sungtak Lee | 92573a2 | 2022-12-10 05:48:38 +0000 | [diff] [blame^] | 160 | "libbinder_ndk", |
Lajos Molnar | 99d4d11 | 2022-01-28 12:42:05 -0800 | [diff] [blame] | 161 | "libui", |
| 162 | "libdl", |
Lajos Molnar | 99d4d11 | 2022-01-28 12:42:05 -0800 | [diff] [blame] | 163 | "libvndksupport", |
| 164 | "libprocessgroup", |
| 165 | ], |
| 166 | } |
| 167 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 168 | // public dependency for implementing Codec 2 components |
| 169 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 170 | name: "libcodec2-impl-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 171 | |
| 172 | shared_libs: [ |
| 173 | "libbase", // for C2_LOG |
| 174 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 175 | "libcodec2", |
| 176 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 177 | "libutils", |
| 178 | ], |
Jooyung Han | e3cf41a | 2020-04-30 04:22:22 +0900 | [diff] [blame] | 179 | |
| 180 | min_sdk_version: "29", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 181 | } |
| 182 | |
| 183 | // public dependency for implementing Codec 2 framework utilities |
| 184 | // THIS IS ONLY FOR FRAMEWORK USE ONLY |
| 185 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 186 | name: "libcodec2-internal-defaults", |
| 187 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 188 | |
Wonsik Kim | 8f9e90a | 2020-02-25 14:40:18 -0800 | [diff] [blame] | 189 | header_libs: [ |
| 190 | "libcodec2_internal", |
| 191 | ], |
| 192 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 193 | shared_libs: [ |
| 194 | "libcutils", // for properties |
| 195 | ], |
| 196 | |
| 197 | // TODO: separate internal headers so they can be exposed here |
| 198 | } |