package { default_applicable_licenses: ["frameworks_av_media_mediaserver_license"], } // Added automatically by a large-scale-change // See: http://go/android-license-faq license { name: "frameworks_av_media_mediaserver_license", visibility: [":__subpackages__"], license_kinds: [ "SPDX-license-identifier-Apache-2.0", ], license_text: [ "NOTICE", ], } cc_library_static { name: "libregistermsext", srcs: ["register.cpp"], cflags: [ "-Werror", "-Wall", ], } cc_binary { name: "mediaserver", srcs: ["main_mediaserver.cpp"], shared_libs: [ "android.hardware.media.omx@1.0", "libandroidicu", "libfmq", "libbinder", "libhidlbase", "liblog", "libmediaplayerservice", "libresourcemanagerservice", "libutils", ], static_libs: [ "libregistermsext", ], include_dirs: [ "frameworks/av/media/libmediaplayerservice", "frameworks/av/services/mediaresourcemanager", ], // By default mediaserver runs in 32-bit to save memory, except // on 64-bit-only lunch targets. // **************************************************************** // TO ENABLE 64-BIT MEDIASERVER ON MIXED 32/64-BIT DEVICES, COMMENT // OUT THE FOLLOWING LINE: // **************************************************************** compile_multilib: "prefer32", init_rc: ["mediaserver.rc"], cflags: [ "-Werror", "-Wall", ], vintf_fragments: ["manifest_media_c2_software.xml"], }