• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2package {
3    default_applicable_licenses: ["frameworks_av_media_mediaserver_license"],
4}
5
6// Added automatically by a large-scale-change
7// See: http://go/android-license-faq
8license {
9    name: "frameworks_av_media_mediaserver_license",
10    visibility: [":__subpackages__"],
11    license_kinds: [
12        "SPDX-license-identifier-Apache-2.0",
13    ],
14    license_text: [
15        "NOTICE",
16    ],
17}
18
19cc_library_static {
20    name: "libregistermsext",
21    srcs: ["register.cpp"],
22
23    cflags: [
24        "-Werror",
25        "-Wall",
26    ],
27}
28
29cc_binary {
30    name: "mediaserver",
31
32    srcs: ["main_mediaserver.cpp"],
33
34    shared_libs: [
35        "android.hardware.media.omx@1.0",
36        "libandroidicu",
37        "libfmq",
38        "libbinder",
39        "libhidlbase",
40        "liblog",
41        "libmediaplayerservice",
42        "libresourcemanagerservice",
43        "libutils",
44    ],
45
46    static_libs: [
47        "libregistermsext",
48    ],
49
50    include_dirs: [
51        "frameworks/av/media/libmediaplayerservice",
52        "frameworks/av/services/mediaresourcemanager",
53    ],
54
55    // By default mediaserver runs in 32-bit to save memory, except
56    // on 64-bit-only lunch targets.
57    // ****************************************************************
58    // TO ENABLE 64-BIT MEDIASERVER ON MIXED 32/64-BIT DEVICES, COMMENT
59    // OUT THE FOLLOWING LINE:
60    // ****************************************************************
61    compile_multilib: "prefer32",
62
63    init_rc: ["mediaserver.rc"],
64
65    cflags: [
66        "-Werror",
67        "-Wall",
68    ],
69
70    vintf_fragments: ["manifest_media_c2_software.xml"],
71}
72