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