Anton Hansson | 33de46e | 2019-02-01 11:17:57 +0000 | [diff] [blame] | 1 | |
Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 2 | package { |
| 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 |
| 8 | license { |
| 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 Hansson | 33de46e | 2019-02-01 11:17:57 +0000 | [diff] [blame] | 19 | cc_library_static { |
| 20 | name: "libregistermsext", |
| 21 | srcs: ["register.cpp"], |
| 22 | |
| 23 | cflags: [ |
| 24 | "-Werror", |
| 25 | "-Wall", |
| 26 | ], |
| 27 | } |
| 28 | |
| 29 | cc_binary { |
| 30 | name: "mediaserver", |
| 31 | |
| 32 | srcs: ["main_mediaserver.cpp"], |
| 33 | |
| 34 | shared_libs: [ |
Pawin Vongmasa | a4c3965 | 2020-06-30 09:30:58 -0700 | [diff] [blame] | 35 | "android.hardware.media.omx@1.0", |
| 36 | "libandroidicu", |
shubang | 6d26626 | 2020-10-09 00:15:04 -0700 | [diff] [blame] | 37 | "libfmq", |
Pawin Vongmasa | a4c3965 | 2020-06-30 09:30:58 -0700 | [diff] [blame] | 38 | "libbinder", |
| 39 | "libhidlbase", |
Anton Hansson | 33de46e | 2019-02-01 11:17:57 +0000 | [diff] [blame] | 40 | "liblog", |
| 41 | "libmediaplayerservice", |
Pawin Vongmasa | a4c3965 | 2020-06-30 09:30:58 -0700 | [diff] [blame] | 42 | "libresourcemanagerservice", |
Anton Hansson | 33de46e | 2019-02-01 11:17:57 +0000 | [diff] [blame] | 43 | "libutils", |
Anton Hansson | 33de46e | 2019-02-01 11:17:57 +0000 | [diff] [blame] | 44 | ], |
| 45 | |
| 46 | static_libs: [ |
Anton Hansson | 33de46e | 2019-02-01 11:17:57 +0000 | [diff] [blame] | 47 | "libregistermsext", |
| 48 | ], |
| 49 | |
| 50 | include_dirs: [ |
| 51 | "frameworks/av/media/libmediaplayerservice", |
| 52 | "frameworks/av/services/mediaresourcemanager", |
| 53 | ], |
| 54 | |
Alistair Delva | 1ab0b88 | 2020-06-09 11:47:23 -0700 | [diff] [blame] | 55 | // 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 Essick | 3c9b012 | 2019-03-01 10:17:32 -0800 | [diff] [blame] | 59 | |
Anton Hansson | 33de46e | 2019-02-01 11:17:57 +0000 | [diff] [blame] | 60 | init_rc: ["mediaserver.rc"], |
| 61 | |
| 62 | cflags: [ |
| 63 | "-Werror", |
| 64 | "-Wall", |
| 65 | ], |
| 66 | |
Pawin Vongmasa | c976f12 | 2019-04-10 02:08:28 -0700 | [diff] [blame] | 67 | vintf_fragments: ["manifest_media_c2_software.xml"], |
Anton Hansson | 33de46e | 2019-02-01 11:17:57 +0000 | [diff] [blame] | 68 | } |