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, |
Pawin Vongmasa | e5c53f7 | 2019-03-03 17:30:18 -0800 | [diff] [blame^] | 17 | vndk: { |
| 18 | enabled: true, |
| 19 | }, |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 20 | |
| 21 | srcs: [ |
| 22 | "C2AllocatorIon.cpp", |
| 23 | "C2AllocatorGralloc.cpp", |
| 24 | "C2Buffer.cpp", |
| 25 | "C2Config.cpp", |
| 26 | "C2PlatformStorePluginLoader.cpp", |
| 27 | "C2Store.cpp", |
| 28 | "platform/C2BqBuffer.cpp", |
| 29 | "util/C2Debug.cpp", |
| 30 | "util/C2InterfaceHelper.cpp", |
| 31 | "util/C2InterfaceUtils.cpp", |
| 32 | "util/C2ParamUtils.cpp", |
| 33 | ], |
| 34 | |
| 35 | export_include_dirs: [ |
| 36 | "include", |
| 37 | ], |
| 38 | |
| 39 | export_shared_lib_headers: [ |
| 40 | "libbase", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 41 | "android.hardware.media.bufferpool@2.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 42 | ], |
| 43 | |
| 44 | local_include_dirs: [ |
| 45 | "internal", |
| 46 | ], |
| 47 | |
Pawin Vongmasa | cc1b476 | 2018-11-26 00:46:29 -0800 | [diff] [blame] | 48 | header_libs: [ |
| 49 | "media_plugin_headers", |
| 50 | "libcodec2_headers", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 51 | ], |
| 52 | |
| 53 | shared_libs: [ |
| 54 | "android.hardware.graphics.allocator@2.0", |
| 55 | "android.hardware.graphics.bufferqueue@1.0", |
| 56 | "android.hardware.graphics.mapper@2.0", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 57 | "android.hardware.media.bufferpool@2.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 58 | "libbase", |
| 59 | "libbinder", |
| 60 | "libcutils", |
| 61 | "libdl", |
| 62 | "libhardware", |
| 63 | "libhidlbase", |
| 64 | "libion", |
| 65 | "libfmq", |
| 66 | "liblog", |
| 67 | "libstagefright_bufferqueue_helper", |
| 68 | "libstagefright_foundation", |
Sungtak Lee | d331808 | 2018-09-07 15:52:43 -0700 | [diff] [blame] | 69 | "libstagefright_bufferpool@2.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 70 | "libui", |
| 71 | "libutils", |
| 72 | ], |
| 73 | |
| 74 | cflags: [ |
| 75 | "-Werror", |
| 76 | "-Wall", |
| 77 | ], |
| 78 | } |
| 79 | |
| 80 | // public dependency for implementing Codec 2 components |
| 81 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 82 | name: "libcodec2-impl-defaults", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 83 | |
| 84 | shared_libs: [ |
| 85 | "libbase", // for C2_LOG |
| 86 | "liblog", // for ALOG |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 87 | "libcodec2", |
| 88 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 89 | "libutils", |
| 90 | ], |
| 91 | } |
| 92 | |
| 93 | // public dependency for implementing Codec 2 framework utilities |
| 94 | // THIS IS ONLY FOR FRAMEWORK USE ONLY |
| 95 | cc_defaults { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 96 | name: "libcodec2-internal-defaults", |
| 97 | defaults: ["libcodec2-impl-defaults"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 98 | |
| 99 | shared_libs: [ |
| 100 | "libcutils", // for properties |
| 101 | ], |
| 102 | |
| 103 | // TODO: separate internal headers so they can be exposed here |
| 104 | } |
| 105 | |