1// service library 2cc_library_shared { 3 name: "libmediaextractorservice", 4 cflags: [ 5 "-Wall", 6 "-Werror", 7 ], 8 srcs: ["MediaExtractorService.cpp"], 9 10 shared_libs: [ 11 "libmedia", 12 "libstagefright", 13 "libbinder", 14 "libutils", 15 ], 16} 17 18// service executable 19cc_binary { 20 name: "mediaextractor", 21 22 srcs: ["main_extractorservice.cpp"], 23 shared_libs: [ 24 "libmedia", 25 "libmediaextractorservice", 26 "libbinder", 27 "libutils", 28 "liblog", 29 "libavservices_minijail", 30 ], 31 target: { 32 android: { 33 product_variables: { 34 malloc_not_svelte: { 35 // Scudo increases memory footprint, so only enable on 36 // non-svelte devices. 37 shared_libs: ["libc_scudo"], 38 }, 39 }, 40 }, 41 }, 42 init_rc: ["mediaextractor.rc"], 43 44 include_dirs: ["frameworks/av/media/libmedia"], 45 46 cflags: [ 47 "-Wall", 48 "-Werror", 49 ], 50} 51 52prebuilt_etc { 53 name: "mediaextractor.policy", 54 sub_dir: "seccomp_policy", 55 arch: { 56 arm: { 57 src: "seccomp_policy/mediaextractor-arm.policy", 58 }, 59 arm64: { 60 src: "seccomp_policy/mediaextractor-arm64.policy", 61 }, 62 x86: { 63 src: "seccomp_policy/mediaextractor-x86.policy", 64 }, 65 x86_64: { 66 src: "seccomp_policy/mediaextractor-x86_64.policy", 67 }, 68 }, 69 required: ["crash_dump.policy"], 70} 71 72