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