Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 1 | cc_binary { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 2 | name: "android.hardware.media.c2@1.0-service", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 3 | defaults: ["hidl_defaults"], |
| 4 | soc_specific: true, |
| 5 | relative_install_path: "hw", |
| 6 | srcs: [ |
| 7 | "vendor.cpp", |
| 8 | ], |
| 9 | |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 10 | init_rc: ["android.hardware.media.c2@1.0-service.rc"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 11 | |
| 12 | shared_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 13 | "android.hardware.media.c2@1.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 14 | "android.hardware.media.omx@1.0", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 15 | "libavservices_minijail_vendor", |
| 16 | "libbinder", |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 17 | "libcodec2_hidl@1.0", |
| 18 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 19 | "libhidlbase", |
| 20 | "libhidltransport", |
| 21 | "libhwbinder", |
| 22 | "liblog", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 23 | "libstagefright_omx", |
| 24 | "libstagefright_xmlparser", |
| 25 | "libutils", |
| 26 | ], |
| 27 | |
| 28 | arch: { |
| 29 | arm: { |
| 30 | required: ["codec2.vendor.base.policy"], |
| 31 | }, |
| 32 | x86: { |
| 33 | required: ["codec2.vendor.base.policy"], |
| 34 | }, |
| 35 | }, |
| 36 | |
| 37 | compile_multilib: "32", |
| 38 | } |
| 39 | |
| 40 | cc_library_shared { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 41 | name: "libcodec2_serviceregistrant", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 42 | // need vendor version for update packaging, system version may have more dependencies |
| 43 | vendor_available: true, |
| 44 | srcs: [ |
| 45 | "C2SoftwareCodecServiceRegistrant.cpp", |
| 46 | ], |
| 47 | |
| 48 | header_libs: [ |
| 49 | "libmedia_headers", |
| 50 | ], |
| 51 | |
| 52 | shared_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 53 | "android.hardware.media.c2@1.0", |
| 54 | "libcodec2_hidl@1.0", |
| 55 | "libcodec2_vndk", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 56 | "liblog", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 57 | "libutils", |
| 58 | ], |
| 59 | |
| 60 | // Codecs |
| 61 | runtime_libs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame^] | 62 | "libcodec2_soft_avcdec", |
| 63 | "libcodec2_soft_avcenc", |
| 64 | "libcodec2_soft_aacdec", |
| 65 | "libcodec2_soft_aacenc", |
| 66 | "libcodec2_soft_amrnbdec", |
| 67 | "libcodec2_soft_amrnbenc", |
| 68 | "libcodec2_soft_amrwbdec", |
| 69 | "libcodec2_soft_amrwbenc", |
| 70 | "libcodec2_soft_hevcdec", |
| 71 | "libcodec2_soft_g711alawdec", |
| 72 | "libcodec2_soft_g711mlawdec", |
| 73 | "libcodec2_soft_mpeg2dec", |
| 74 | "libcodec2_soft_h263dec", |
| 75 | "libcodec2_soft_h263enc", |
| 76 | "libcodec2_soft_mpeg4dec", |
| 77 | "libcodec2_soft_mpeg4enc", |
| 78 | "libcodec2_soft_mp3dec", |
| 79 | "libcodec2_soft_vorbisdec", |
| 80 | "libcodec2_soft_opusdec", |
| 81 | "libcodec2_soft_vp8dec", |
| 82 | "libcodec2_soft_vp9dec", |
| 83 | "libcodec2_soft_vp8enc", |
| 84 | "libcodec2_soft_vp9enc", |
| 85 | "libcodec2_soft_rawdec", |
| 86 | "libcodec2_soft_flacdec", |
| 87 | "libcodec2_soft_flacenc", |
| 88 | "libcodec2_soft_gsmdec", |
| 89 | "libcodec2_soft_xaacdec", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 90 | ], |
| 91 | |
| 92 | compile_multilib: "32", |
| 93 | } |
| 94 | |