• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// service library
2package {
3    default_applicable_licenses: [
4        "frameworks_av_services_mediaextractor_license",
5    ],
6}
7
8// Added automatically by a large-scale-change
9// See: http://go/android-license-faq
10license {
11    name: "frameworks_av_services_mediaextractor_license",
12    visibility: [":__subpackages__"],
13    license_kinds: [
14        "SPDX-license-identifier-Apache-2.0",
15    ],
16    license_text: [
17        "NOTICE",
18    ],
19}
20
21cc_library_shared {
22    name: "libmediaextractorservice",
23    cflags: [
24        "-Wall",
25        "-Werror",
26    ],
27    srcs: ["MediaExtractorService.cpp"],
28
29    shared_libs: [
30        "libdatasource",
31        "libmedia",
32        "libstagefright",
33        "libstagefright_foundation",
34        "libbinder",
35        "libutils",
36        "liblog",
37    ],
38    header_libs: [
39        "libmediametrics_headers",
40    ],
41}
42
43// service executable
44cc_binary {
45    name: "mediaextractor",
46
47    srcs: ["main_extractorservice.cpp"],
48    shared_libs: [
49        "libmedia",
50        "libmediaextractorservice",
51        "libmediautils",
52        "libbinder",
53        "libutils",
54        "liblog",
55        "libavservices_minijail",
56    ],
57    init_rc: ["mediaextractor.rc"],
58
59    cflags: [
60        "-Wall",
61        "-Werror",
62    ],
63
64    required: ["mediaextractor.policy"],
65}
66
67prebuilt_etc {
68    name: "mediaextractor.policy",
69    sub_dir: "seccomp_policy",
70    arch: {
71        arm: {
72            src: "seccomp_policy/mediaextractor-arm.policy",
73        },
74        arm64: {
75            src: "seccomp_policy/mediaextractor-arm64.policy",
76        },
77        x86: {
78            src: "seccomp_policy/mediaextractor-x86.policy",
79        },
80        x86_64: {
81            src: "seccomp_policy/mediaextractor-x86_64.policy",
82        },
83    },
84    required: [
85        "crash_dump.policy",
86        "code_coverage.policy",
87    ],
88}
89