Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 1 | cc_library_headers { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 2 | name: "libcodec2_internal", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 3 | |
| 4 | export_include_dirs: [ |
| 5 | "internal", |
| 6 | ], |
| 7 | |
| 8 | // TODO: Remove this when this module is moved back to frameworks/av. |
| 9 | vendor_available: true, |
Jooyung Han | e3cf41a | 2020-04-30 04:22:22 +0900 | [diff] [blame] | 10 | |
| 11 | min_sdk_version: "29", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | // !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!! |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 15 | // use libcodec2-impl-defaults instead |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 16 | cc_library_shared { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 17 | name: "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 18 | vendor_available: true, |
Jooyung Han | e3cf41a | 2020-04-30 04:22:22 +0900 | [diff] [blame] | 19 | min_sdk_version: "29", |
Wonsik Kim | 155d5cb | 2019-10-09 12:49:49 -0700 | [diff] [blame] | 20 | // TODO: b/147147883 |
| 21 | double_loadable: true, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 22 | |
| 23 | srcs: [ |
Pin-chih Lin | f72774b | 2019-11-19 18:26:47 +0800 | [diff] [blame] | 24 | "C2AllocatorBlob.cpp", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 25 | "C2AllocatorIon.cpp", |
| 26 | "C2AllocatorGralloc.cpp", |
| 27 | "C2Buffer.cpp", |
| 28 | "C2Config.cpp", |
| 29 | "C2PlatformStorePluginLoader.cpp", |
| 30 | "C2Store.cpp", |
| 31 | "platform/C2BqBuffer.cpp", |
Chong Zhang | c8ce1d8 | 2019-03-27 10:18:38 -0700 | [diff] [blame] | 32 | "types.cpp", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 33 | "util/C2Debug.cpp", |
| 34 | "util/C2InterfaceHelper.cpp", |
| 35 | "util/C2InterfaceUtils.cpp", |
| 36 | "util/C2ParamUtils.cpp", |
| 37 | ], |
| 38 | |
| 39 | export_include_dirs: [ |
| 40 | "include", |
| 41 | ], |
| 42 | |
| 43 | export_shared_lib_headers: [ |
| 44 | "libbase", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 45 | "android.hardware.media.bufferpool@2.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 46 | ], |
| 47 | |
| 48 | local_include_dirs: [ |
| 49 | "internal", |
| 50 | ], |
| 51 | |
Pawin Vongmasa | cc1b476 | 2018-11-26 00:46:29 -0800 | [diff] [blame] | 52 | header_libs: [ |
| 53 | "media_plugin_headers", |
| 54 | "libcodec2_headers", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 55 | ], |
| 56 | |
| 57 | shared_libs: [ |
Pawin Vongmasa | ef939bf | 2019-03-03 04:44:59 -0800 | [diff] [blame] | 58 | "android.hardware.graphics.bufferqueue@2.0", |
Marissa Wall | 2a24a30 | 2019-11-25 11:19:18 -0800 | [diff] [blame] | 59 | "android.hardware.graphics.common@1.2", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 60 | "android.hardware.media.bufferpool@2.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 61 | "libbase", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 62 | "libcutils", |
| 63 | "libdl", |
| 64 | "libhardware", |
| 65 | "libhidlbase", |
| 66 | "libion", |
| 67 | "libfmq", |
| 68 | "liblog", |
Chong Zhang | c8ce1d8 | 2019-03-27 10:18:38 -0700 | [diff] [blame] | 69 | "libnativewindow", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 70 | "libstagefright_foundation", |
Pawin Vongmasa | 329ac9c | 2019-09-09 21:28:05 -0700 | [diff] [blame] | 71 | "libstagefright_bufferpool@2.0.1", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 72 | "libui", |
| 73 | "libutils", |
| 74 | ], |
| 75 | |
| 76 | cflags: [ |
| 77 | "-Werror", |
| 78 | "-Wall", |
| 79 | ], |
| 80 | } |
| 81 | |
| 82 | // public dependency for implementing Codec 2 components |
| 83 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 84 | name: "libcodec2-impl-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 85 | |
| 86 | shared_libs: [ |
| 87 | "libbase", // for C2_LOG |
| 88 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 89 | "libcodec2", |
| 90 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 91 | "libutils", |
| 92 | ], |
Jooyung Han | e3cf41a | 2020-04-30 04:22:22 +0900 | [diff] [blame] | 93 | |
| 94 | min_sdk_version: "29", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | // public dependency for implementing Codec 2 framework utilities |
| 98 | // THIS IS ONLY FOR FRAMEWORK USE ONLY |
| 99 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 100 | name: "libcodec2-internal-defaults", |
| 101 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 102 | |
Wonsik Kim | 8f9e90a | 2020-02-25 14:40:18 -0800 | [diff] [blame] | 103 | header_libs: [ |
| 104 | "libcodec2_internal", |
| 105 | ], |
| 106 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 107 | shared_libs: [ |
| 108 | "libcutils", // for properties |
| 109 | ], |
| 110 | |
| 111 | // TODO: separate internal headers so they can be exposed here |
| 112 | } |
| 113 | |