Wonsik Kim | ab22b47 | 2022-12-13 17:28:36 -0800 | [diff] [blame] | 1 | cc_library { |
Wonsik Kim | ae54198 | 2022-12-09 09:24:30 -0800 | [diff] [blame] | 2 | name: "libcodec2_hal_common", |
Wonsik Kim | ab22b47 | 2022-12-13 17:28:36 -0800 | [diff] [blame] | 3 | double_loadable: true, |
Wonsik Kim | ae54198 | 2022-12-09 09:24:30 -0800 | [diff] [blame] | 4 | vendor_available: true, |
| 5 | apex_available: [ |
| 6 | "//apex_available:platform", |
| 7 | "com.android.media", |
| 8 | "com.android.media.swcodec", |
| 9 | ], |
| 10 | min_sdk_version: "29", |
Wonsik Kim | ab22b47 | 2022-12-13 17:28:36 -0800 | [diff] [blame] | 11 | |
| 12 | srcs: [ |
| 13 | "BufferTypes.cpp", |
Arun Johnson | fb94610 | 2023-12-27 01:10:34 +0000 | [diff] [blame] | 14 | "MultiAccessUnitHelper.cpp", |
Wonsik Kim | ab22b47 | 2022-12-13 17:28:36 -0800 | [diff] [blame] | 15 | ], |
| 16 | |
| 17 | export_include_dirs: ["include/"], |
| 18 | |
| 19 | header_libs: [ |
| 20 | "libcodec2_internal", // private |
| 21 | "libgui_headers", |
| 22 | ], |
| 23 | |
| 24 | shared_libs: [ |
| 25 | "libbase", |
| 26 | "libcodec2", |
| 27 | "libcodec2_vndk", |
| 28 | "liblog", |
| 29 | "libstagefright_foundation", |
Arun Johnson | fb94610 | 2023-12-27 01:10:34 +0000 | [diff] [blame] | 30 | "server_configurable_flags", |
Wonsik Kim | ab22b47 | 2022-12-13 17:28:36 -0800 | [diff] [blame] | 31 | ], |
Arun Johnson | fb94610 | 2023-12-27 01:10:34 +0000 | [diff] [blame] | 32 | |
| 33 | static_libs: ["aconfig_mediacodec_flags_c_lib"], |
Wonsik Kim | ae54198 | 2022-12-09 09:24:30 -0800 | [diff] [blame] | 34 | } |
Wonsik Kim | e585c66 | 2023-10-18 16:09:47 -0700 | [diff] [blame] | 35 | |
| 36 | cc_library_static { |
| 37 | name: "libcodec2_hal_selection_static", |
| 38 | double_loadable: true, |
| 39 | vendor_available: true, |
| 40 | apex_available: [ |
| 41 | "//apex_available:platform", |
| 42 | "com.android.media", |
| 43 | "com.android.media.swcodec", |
| 44 | ], |
| 45 | min_sdk_version: "29", |
| 46 | |
| 47 | srcs: [ |
| 48 | "HalSelection.cpp", |
| 49 | ], |
| 50 | |
| 51 | export_include_dirs: ["include/"], |
| 52 | |
| 53 | shared_libs: [ |
| 54 | "libbase", |
| 55 | "server_configurable_flags", |
| 56 | ], |
| 57 | |
| 58 | static_libs: ["aconfig_mediacodec_flags_c_lib"], |
| 59 | } |
| 60 | |
| 61 | cc_defaults { |
| 62 | name: "libcodec2_hal_selection", |
| 63 | static_libs: [ |
| 64 | "aconfig_mediacodec_flags_c_lib", |
| 65 | "libcodec2_hal_selection_static", |
| 66 | ], |
| 67 | shared_libs: [ |
| 68 | "libbase", |
| 69 | "server_configurable_flags", |
| 70 | ], |
| 71 | } |