Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["frameworks_av_license"], |
| 3 | } |
| 4 | |
| 5 | // DO NOT DEPEND ON THIS DIRECTLY |
| 6 | // use libcodec2-aidl-client-defaults instead |
| 7 | cc_library { |
| 8 | name: "libcodec2_aidl_client", |
| 9 | |
| 10 | srcs: [ |
Wonsik Kim | f32782a | 2022-12-12 14:38:46 -0800 | [diff] [blame] | 11 | "BufferTypes.cpp", |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 12 | "ParamTypes.cpp", |
| 13 | ], |
| 14 | |
| 15 | header_libs: [ |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 16 | "libcodec2_internal", // private |
| 17 | "libgui_headers", |
| 18 | ], |
| 19 | |
| 20 | shared_libs: [ |
Wonsik Kim | f32782a | 2022-12-12 14:38:46 -0800 | [diff] [blame] | 21 | "android.hardware.common-V2-ndk", |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 22 | "android.hardware.media.bufferpool@2.0", |
Wonsik Kim | f32782a | 2022-12-12 14:38:46 -0800 | [diff] [blame] | 23 | "android.hardware.media.bufferpool2-V1-ndk", |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 24 | "android.hardware.media.c2-V1-ndk", |
| 25 | "libbinder_ndk", |
| 26 | "libbase", |
| 27 | "libcodec2", |
Wonsik Kim | ab22b47 | 2022-12-13 17:28:36 -0800 | [diff] [blame] | 28 | "libcodec2_hal_common", |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 29 | "libcodec2_vndk", |
| 30 | "libcutils", |
| 31 | "liblog", |
| 32 | "libnativewindow", |
Wonsik Kim | f32782a | 2022-12-12 14:38:46 -0800 | [diff] [blame] | 33 | "libstagefright_aidl_bufferpool2", |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 34 | "libutils", |
| 35 | ], |
| 36 | |
Wonsik Kim | f32782a | 2022-12-12 14:38:46 -0800 | [diff] [blame] | 37 | static_libs: [ |
| 38 | "libaidlcommonsupport", |
| 39 | ], |
| 40 | |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 41 | export_include_dirs: [ |
| 42 | "include", |
| 43 | ], |
| 44 | |
| 45 | export_shared_lib_headers: [ |
| 46 | "android.hardware.media.c2-V1-ndk", |
| 47 | "libcodec2", |
Wonsik Kim | ab22b47 | 2022-12-13 17:28:36 -0800 | [diff] [blame] | 48 | "libcodec2_hal_common", |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 49 | ], |
| 50 | } |
| 51 | |
| 52 | // DO NOT DEPEND ON THIS DIRECTLY |
Wonsik Kim | f003264 | 2023-07-20 14:42:27 -0700 | [diff] [blame^] | 53 | // use libcodec2-aidl-defaults instead |
| 54 | cc_library { |
| 55 | name: "libcodec2_aidl", |
| 56 | vendor_available: true, |
| 57 | min_sdk_version: "34", |
| 58 | apex_available: [ |
| 59 | "//apex_available:platform", |
| 60 | "com.android.media.swcodec", |
| 61 | "test_com.android.media.swcodec", |
| 62 | ], |
| 63 | |
| 64 | srcs: [ |
| 65 | "BufferTypes.cpp", |
| 66 | "Component.cpp", |
| 67 | "ComponentInterface.cpp", |
| 68 | "ComponentStore.cpp", |
| 69 | "Configurable.cpp", |
| 70 | "InputBufferManager.cpp", |
| 71 | "ParamTypes.cpp", |
| 72 | ], |
| 73 | |
| 74 | header_libs: [ |
| 75 | "libcodec2_internal", // private |
| 76 | ], |
| 77 | |
| 78 | shared_libs: [ |
| 79 | "android.hardware.common-V2-ndk", |
| 80 | "android.hardware.media.bufferpool2-V1-ndk", |
| 81 | "android.hardware.media.c2-V1-ndk", |
| 82 | "libbase", |
| 83 | "libbinder_ndk", |
| 84 | "libcodec2", |
| 85 | "libcodec2_hal_common", |
| 86 | "libcodec2_hidl_plugin_stub", |
| 87 | "libcodec2_vndk", |
| 88 | "libcutils", |
| 89 | "libhidlbase", |
| 90 | "liblog", |
| 91 | "libstagefright_aidl_bufferpool2", |
| 92 | "libstagefright_bufferpool@2.0.1", |
| 93 | "libui", |
| 94 | "libutils", |
| 95 | ], |
| 96 | |
| 97 | static_libs: [ |
| 98 | "libaidlcommonsupport", |
| 99 | ], |
| 100 | |
| 101 | target: { |
| 102 | vendor: { |
| 103 | exclude_shared_libs: [ |
| 104 | "libcodec2_hidl_plugin_stub", |
| 105 | ], |
| 106 | shared_libs: [ |
| 107 | "libcodec2_hidl_plugin", |
| 108 | ], |
| 109 | }, |
| 110 | apex: { |
| 111 | exclude_shared_libs: [ |
| 112 | "libcodec2_hidl_plugin_stub", |
| 113 | "libcodec2_hidl_plugin", |
| 114 | ], |
| 115 | }, |
| 116 | }, |
| 117 | |
| 118 | export_include_dirs: [ |
| 119 | "include", |
| 120 | ], |
| 121 | |
| 122 | export_shared_lib_headers: [ |
| 123 | "android.hardware.media.c2-V1-ndk", |
| 124 | "libcodec2", |
| 125 | "libstagefright_bufferpool@2.0.1", |
| 126 | "libui", |
| 127 | ], |
| 128 | } |
| 129 | |
| 130 | // public dependency for Codec 2.0 HAL service implementations |
| 131 | cc_defaults { |
| 132 | name: "libcodec2-aidl-defaults", |
| 133 | min_sdk_version: "34", |
| 134 | defaults: ["libcodec2-impl-defaults"], |
| 135 | |
| 136 | shared_libs: [ |
| 137 | "android.hardware.media.c2-V1-ndk", |
| 138 | "libcodec2_aidl", |
| 139 | ], |
| 140 | } |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 141 | |
| 142 | // public dependency for Codec 2.0 HAL client |
| 143 | cc_defaults { |
| 144 | name: "libcodec2-aidl-client-defaults", |
| 145 | min_sdk_version: "34", |
| 146 | defaults: ["libcodec2-impl-defaults"], |
| 147 | |
| 148 | shared_libs: [ |
| 149 | "android.hardware.media.c2-V1-ndk", |
| 150 | "libcodec2_aidl_client", |
| 151 | ], |
| 152 | } |