1package { 2 default_applicable_licenses: ["frameworks_av_services_mediacodec_license"], 3} 4 5// Added automatically by a large-scale-change 6// See: http://go/android-license-faq 7license { 8 name: "frameworks_av_services_mediacodec_license", 9 visibility: [":__subpackages__"], 10 license_kinds: [ 11 "SPDX-license-identifier-Apache-2.0", 12 ], 13 license_text: [ 14 "NOTICE", 15 ], 16} 17 18cc_binary { 19 name: "mediaswcodec", 20 vendor_available: true, 21 min_sdk_version: "29", 22 apex_available: ["com.android.media.swcodec"], 23 24 srcs: [ 25 "main_swcodecservice.cpp", 26 ], 27 28 shared_libs: [ 29 "libavservices_minijail", 30 "libbase", 31 "libhidlbase", 32 "liblog", 33 "libmedia_codecserviceregistrant", 34 ], 35 36 header_libs: [ 37 "libmedia_headers", 38 ], 39 40 cflags: [ 41 "-Werror", 42 "-Wall", 43 "-Wno-error=deprecated-declarations", 44 ], 45} 46 47prebuilt_etc { 48 name: "mediaswcodec.policy", 49 sub_dir: "seccomp_policy", 50 arch: { 51 arm: { 52 src: "seccomp_policy/mediaswcodec-arm.policy", 53 }, 54 arm64: { 55 src: "seccomp_policy/mediaswcodec-arm64.policy", 56 }, 57 riscv64: { 58 src: "seccomp_policy/mediaswcodec-riscv64.policy", 59 }, 60 x86: { 61 src: "seccomp_policy/mediaswcodec-x86.policy", 62 }, 63 x86_64: { 64 src: "seccomp_policy/mediaswcodec-x86_64.policy", 65 }, 66 }, 67 required: [ 68 "crash_dump.policy", 69 "code_coverage.policy", 70 ], 71} 72 73// media.codec -- the one that handles vendor & HW codecs 74 75cc_binary { 76 name: "android.hardware.media.omx@1.0-service", 77 relative_install_path: "hw", 78 vendor: true, 79 80 srcs: [ 81 "main_codecservice.cpp", 82 ], 83 84 shared_libs: [ 85 "libbinder", 86 "libutils", 87 "liblog", 88 "libbase", 89 "libavservices_minijail", 90 "libcutils", 91 "libhidlbase", 92 "libstagefright_omx", 93 "libstagefright_xmlparser", 94 "android.hardware.media.omx@1.0", 95 "android.hidl.memory@1.0", 96 ], 97 98 // OMX interfaces force this to stay in 32-bit mode; 99 compile_multilib: "32", 100 101 init_rc: ["android.hardware.media.omx@1.0-service.rc"], 102 103 required: [ 104 "mediacodec.policy", 105 ], 106 107 cflags: [ 108 "-Werror", 109 "-Wall", 110 "-Wno-error=deprecated-declarations", 111 ], 112} 113 114 115prebuilt_etc { 116 name: "mediacodec.policy", 117 sub_dir: "seccomp_policy", 118 arch: { 119 arm: { 120 src: "seccomp_policy/mediacodec-arm.policy", 121 }, 122 arm64: { 123 src: "seccomp_policy/mediacodec-arm64.policy", 124 }, 125 riscv64: { 126 enabled: false, 127 }, 128 x86: { 129 src: "seccomp_policy/mediacodec-x86.policy", 130 }, 131 x86_64: { 132 src: "seccomp_policy/mediacodec-x86_64.policy", 133 }, 134 }, 135 required: [ 136 "crash_dump.policy", 137 "code_coverage.policy", 138 ], 139} 140