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