blob: e906500f2b959f0e8c2affeb42f5bce9e63c6ef9 [file] [log] [blame]
// service library
cc_library_shared {
name: "libmediaextractorservice",
cflags: [
"-Wall",
"-Werror",
],
srcs: ["MediaExtractorService.cpp"],
shared_libs: [
"libdatasource",
"libmedia",
"libstagefright",
"libbinder",
"libutils",
],
}
// service executable
cc_binary {
name: "mediaextractor",
srcs: ["main_extractorservice.cpp"],
shared_libs: [
"libmedia",
"libmediaextractorservice",
"libbinder",
"libutils",
"liblog",
"libavservices_minijail",
],
target: {
android: {
product_variables: {
malloc_not_svelte: {
// Scudo increases memory footprint, so only enable on
// non-svelte devices.
shared_libs: ["libc_scudo"],
},
},
},
},
init_rc: ["mediaextractor.rc"],
include_dirs: ["frameworks/av/media/libmedia"],
cflags: [
"-Wall",
"-Werror",
],
}
prebuilt_etc {
name: "mediaextractor.policy",
sub_dir: "seccomp_policy",
arch: {
arm: {
src: "seccomp_policy/mediaextractor-arm.policy",
},
arm64: {
src: "seccomp_policy/mediaextractor-arm64.policy",
},
x86: {
src: "seccomp_policy/mediaextractor-x86.policy",
},
x86_64: {
src: "seccomp_policy/mediaextractor-x86_64.policy",
},
},
required: ["crash_dump.policy"],
}