1package {
2    default_applicable_licenses: [
3        "frameworks_av_media_libmediaplayerservice_license",
4    ],
5}
6
7// Added automatically by a large-scale-change
8// See: http://go/android-license-faq
9license {
10    name: "frameworks_av_media_libmediaplayerservice_license",
11    visibility: [":__subpackages__"],
12    license_kinds: [
13        "SPDX-license-identifier-Apache-2.0",
14    ],
15    license_text: [
16        "NOTICE",
17    ],
18}
19
20filegroup {
21    name: "libmediaplayerservice_sources",
22
23    srcs: [
24        "ActivityManager.cpp",
25        "DeathNotifier.cpp",
26        "MediaPlayerFactory.cpp",
27        "MediaPlayerService.cpp",
28        "MediaRecorderClient.cpp",
29        "MetadataRetrieverClient.cpp",
30        "StagefrightMetadataRetriever.cpp",
31        "StagefrightRecorder.cpp",
32        "TestPlayerStub.cpp",
33    ],
34}
35
36cc_defaults {
37    name: "libmediaplayerservice_defaults",
38
39    srcs: [
40        ":libmediaplayerservice_sources",
41    ],
42
43    shared_libs: [
44        "android.hardware.media.c2@1.0",
45        "android.hardware.media.omx@1.0",
46        "av-types-aidl-cpp",
47        "framework-permission-aidl-cpp",
48        "libaudioclient_aidl_conversion",
49        "libbase",
50        "libbinder_ndk",
51        "libactivitymanager_aidl",
52        "libandroid_net",
53        "libaudioclient",
54        "libbinder",
55        "libcamera_client",
56        "libcodec2_client",
57        "libcrypto",
58        "libcutils",
59        "libdatasource",
60        "libdl",
61        "libdrmframework",
62        "libgui",
63        "libhidlbase",
64        "liblog",
65        "libmedia",
66        "libmedia_codeclist",
67        "libmedia_omx",
68        "libmediadrm",
69        "libmediametrics",
70        "libmediautils",
71        "libmemunreachable",
72        "libnetd_client",
73        "libpowermanager",
74        "libstagefright",
75        "libstagefright_foundation",
76        "libstagefright_httplive",
77        "libutils",
78        "packagemanager_aidl-cpp",
79    ],
80
81    header_libs: [
82        "media_plugin_headers",
83        "libmediautils_headers",
84        "libstagefright_rtsp_headers",
85        "libstagefright_webm_headers",
86    ],
87
88    static_libs: [
89        "libplayerservice_datasource",
90        "libstagefright_nuplayer",
91        "libstagefright_rtsp",
92        "libstagefright_timedtext",
93        "framework-permission-aidl-cpp",
94    ],
95
96    cflags: [
97        "-Werror",
98        "-Wno-error=deprecated-declarations",
99        "-Wall",
100    ],
101
102    sanitize: {
103        cfi: true,
104    },
105}
106
107cc_library {
108    name: "libmediaplayerservice",
109
110    defaults: [
111        "libmediaplayerservice_defaults",
112    ],
113
114    export_shared_lib_headers: [
115        "libmedia",
116        "framework-permission-aidl-cpp",
117    ],
118
119    export_header_lib_headers: [
120        "libmediautils_headers",
121    ],
122
123    export_include_dirs: [
124        ".",
125    ],
126
127    local_include_dirs: ["include"],
128}
129