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, |
| 10 | } |
| 11 | |
| 12 | // !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!! |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 13 | // use libcodec2-impl-defaults instead |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 14 | cc_library_shared { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 15 | name: "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 16 | vendor_available: true, |
| 17 | |
| 18 | srcs: [ |
| 19 | "C2AllocatorIon.cpp", |
| 20 | "C2AllocatorGralloc.cpp", |
| 21 | "C2Buffer.cpp", |
| 22 | "C2Config.cpp", |
| 23 | "C2PlatformStorePluginLoader.cpp", |
| 24 | "C2Store.cpp", |
| 25 | "platform/C2BqBuffer.cpp", |
Chong Zhang | c8ce1d8 | 2019-03-27 10:18:38 -0700 | [diff] [blame] | 26 | "types.cpp", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 27 | "util/C2Debug.cpp", |
| 28 | "util/C2InterfaceHelper.cpp", |
| 29 | "util/C2InterfaceUtils.cpp", |
| 30 | "util/C2ParamUtils.cpp", |
| 31 | ], |
| 32 | |
| 33 | export_include_dirs: [ |
| 34 | "include", |
| 35 | ], |
| 36 | |
| 37 | export_shared_lib_headers: [ |
| 38 | "libbase", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 39 | "android.hardware.media.bufferpool@2.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 40 | ], |
| 41 | |
| 42 | local_include_dirs: [ |
| 43 | "internal", |
| 44 | ], |
| 45 | |
Pawin Vongmasa | cc1b476 | 2018-11-26 00:46:29 -0800 | [diff] [blame] | 46 | header_libs: [ |
| 47 | "media_plugin_headers", |
| 48 | "libcodec2_headers", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 49 | ], |
| 50 | |
| 51 | shared_libs: [ |
| 52 | "android.hardware.graphics.allocator@2.0", |
Pawin Vongmasa | d032f2d | 2019-05-15 08:42:44 -0700 | [diff] [blame] | 53 | "android.hardware.graphics.allocator@3.0", |
Marissa Wall | 8806edc | 2019-06-21 09:50:47 -0700 | [diff] [blame^] | 54 | "android.hardware.graphics.allocator@4.0", |
Pawin Vongmasa | ef939bf | 2019-03-03 04:44:59 -0800 | [diff] [blame] | 55 | "android.hardware.graphics.bufferqueue@2.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 56 | "android.hardware.graphics.mapper@2.0", |
Pawin Vongmasa | d032f2d | 2019-05-15 08:42:44 -0700 | [diff] [blame] | 57 | "android.hardware.graphics.mapper@3.0", |
Marissa Wall | 8806edc | 2019-06-21 09:50:47 -0700 | [diff] [blame^] | 58 | "android.hardware.graphics.mapper@4.0", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 59 | "android.hardware.media.bufferpool@2.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 60 | "libbase", |
| 61 | "libbinder", |
| 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", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 71 | "libstagefright_bufferpool@2.0", |
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 | ], |
| 93 | } |
| 94 | |
| 95 | // public dependency for implementing Codec 2 framework utilities |
| 96 | // THIS IS ONLY FOR FRAMEWORK USE ONLY |
| 97 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 98 | name: "libcodec2-internal-defaults", |
| 99 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 100 | |
| 101 | shared_libs: [ |
| 102 | "libcutils", // for properties |
| 103 | ], |
| 104 | |
| 105 | // TODO: separate internal headers so they can be exposed here |
| 106 | } |
| 107 | |