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