blob: a9617ec0c219a7f39661769f8d6dd6f70d5698e5 [file] [log] [blame]
Anton Hansson33de46e2019-02-01 11:17:57 +00001
Bob Badour56786ac2021-02-25 15:24:36 -08002package {
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
Anton Hansson33de46e2019-02-01 11:17:57 +000019cc_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: [
Pawin Vongmasaa4c39652020-06-30 09:30:58 -070035 "android.hardware.media.omx@1.0",
36 "libandroidicu",
shubang6d266262020-10-09 00:15:04 -070037 "libfmq",
Pawin Vongmasaa4c39652020-06-30 09:30:58 -070038 "libbinder",
39 "libhidlbase",
Anton Hansson33de46e2019-02-01 11:17:57 +000040 "liblog",
41 "libmediaplayerservice",
Pawin Vongmasaa4c39652020-06-30 09:30:58 -070042 "libresourcemanagerservice",
Anton Hansson33de46e2019-02-01 11:17:57 +000043 "libutils",
Anton Hansson33de46e2019-02-01 11:17:57 +000044 ],
45
46 static_libs: [
Anton Hansson33de46e2019-02-01 11:17:57 +000047 "libregistermsext",
48 ],
49
50 include_dirs: [
51 "frameworks/av/media/libmediaplayerservice",
52 "frameworks/av/services/mediaresourcemanager",
53 ],
54
Alistair Delva1ab0b882020-06-09 11:47:23 -070055 // mediaserver has only been verified on 32-bit, see b/126502613
56 // use "prefer32" to *only* enable 64-bit builds on 64-bit-only lunch
57 // targets, which allows them to reach 'boot_complete'.
58 compile_multilib: "prefer32",
Ray Essick3c9b0122019-03-01 10:17:32 -080059
Anton Hansson33de46e2019-02-01 11:17:57 +000060 init_rc: ["mediaserver.rc"],
61
62 cflags: [
63 "-Werror",
64 "-Wall",
65 ],
66
Pawin Vongmasac976f122019-04-10 02:08:28 -070067 vintf_fragments: ["manifest_media_c2_software.xml"],
Anton Hansson33de46e2019-02-01 11:17:57 +000068}