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", |
Wonsik Kim | 65febd2 | 2023-09-20 16:26:02 -0700 | [diff] [blame^] | 56 | min_sdk_version: "30", |
Wonsik Kim | f003264 | 2023-07-20 14:42:27 -0700 | [diff] [blame] | 57 | vendor_available: true, |
Wonsik Kim | f003264 | 2023-07-20 14:42:27 -0700 | [diff] [blame] | 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", |
Sungtak Lee | a9a6773 | 2023-09-14 16:12:16 +0000 | [diff] [blame] | 91 | "libnativewindow", |
Wonsik Kim | f003264 | 2023-07-20 14:42:27 -0700 | [diff] [blame] | 92 | "libstagefright_aidl_bufferpool2", |
| 93 | "libstagefright_bufferpool@2.0.1", |
| 94 | "libui", |
| 95 | "libutils", |
| 96 | ], |
| 97 | |
| 98 | static_libs: [ |
| 99 | "libaidlcommonsupport", |
| 100 | ], |
| 101 | |
| 102 | target: { |
| 103 | vendor: { |
| 104 | exclude_shared_libs: [ |
| 105 | "libcodec2_hidl_plugin_stub", |
| 106 | ], |
| 107 | shared_libs: [ |
| 108 | "libcodec2_hidl_plugin", |
| 109 | ], |
| 110 | }, |
| 111 | apex: { |
| 112 | exclude_shared_libs: [ |
| 113 | "libcodec2_hidl_plugin_stub", |
| 114 | "libcodec2_hidl_plugin", |
| 115 | ], |
| 116 | }, |
| 117 | }, |
| 118 | |
| 119 | export_include_dirs: [ |
| 120 | "include", |
| 121 | ], |
| 122 | |
| 123 | export_shared_lib_headers: [ |
| 124 | "android.hardware.media.c2-V1-ndk", |
| 125 | "libcodec2", |
| 126 | "libstagefright_bufferpool@2.0.1", |
| 127 | "libui", |
| 128 | ], |
| 129 | } |
| 130 | |
| 131 | // public dependency for Codec 2.0 HAL service implementations |
| 132 | cc_defaults { |
| 133 | name: "libcodec2-aidl-defaults", |
Wonsik Kim | 65febd2 | 2023-09-20 16:26:02 -0700 | [diff] [blame^] | 134 | min_sdk_version: "30", |
Wonsik Kim | f003264 | 2023-07-20 14:42:27 -0700 | [diff] [blame] | 135 | defaults: ["libcodec2-impl-defaults"], |
| 136 | |
| 137 | shared_libs: [ |
| 138 | "android.hardware.media.c2-V1-ndk", |
Wonsik Kim | 8e2a19f | 2023-08-30 11:05:45 -0700 | [diff] [blame] | 139 | "libbinder_ndk", |
Wonsik Kim | f003264 | 2023-07-20 14:42:27 -0700 | [diff] [blame] | 140 | "libcodec2_aidl", |
| 141 | ], |
| 142 | } |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 143 | |
| 144 | // public dependency for Codec 2.0 HAL client |
| 145 | cc_defaults { |
| 146 | name: "libcodec2-aidl-client-defaults", |
Wonsik Kim | 7055d7f | 2022-12-09 10:56:05 -0800 | [diff] [blame] | 147 | defaults: ["libcodec2-impl-defaults"], |
| 148 | |
| 149 | shared_libs: [ |
| 150 | "android.hardware.media.c2-V1-ndk", |
| 151 | "libcodec2_aidl_client", |
| 152 | ], |
| 153 | } |
Wonsik Kim | dfe47c1 | 2023-08-31 10:38:09 -0700 | [diff] [blame] | 154 | |
| 155 | cc_fuzz { |
| 156 | name: "libcodec2-aidl-fuzzer", |
| 157 | vendor: true, |
| 158 | srcs: [ |
| 159 | "fuzzer.cpp", |
| 160 | ], |
| 161 | defaults: [ |
| 162 | "libcodec2-aidl-defaults", |
| 163 | "service_fuzzer_defaults", |
Devin Moore | 88cc0d4 | 2023-10-16 22:26:56 +0000 | [diff] [blame] | 164 | "libcodec2-runtime-libs", |
Wonsik Kim | dfe47c1 | 2023-08-31 10:38:09 -0700 | [diff] [blame] | 165 | ], |
| 166 | shared_libs: [ |
| 167 | "libcodec2_vndk", |
Wonsik Kim | dfe47c1 | 2023-08-31 10:38:09 -0700 | [diff] [blame] | 168 | ], |
| 169 | fuzz_config: { |
| 170 | cc: [ |
| 171 | "wonsik@google.com", |
| 172 | ], |
| 173 | }, |
| 174 | } |