1package {
2    default_applicable_licenses: [
3        "frameworks_av_media_libmediaplayerservice_nuplayer_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_nuplayer_license",
11    visibility: [":__subpackages__"],
12    license_kinds: [
13        "SPDX-license-identifier-Apache-2.0",
14    ],
15    license_text: [
16        "NOTICE",
17    ],
18}
19
20cc_library_headers {
21    name: "libstagefright_nuplayer_headers",
22
23    export_include_dirs: [
24        "include",
25    ],
26}
27
28cc_library_static {
29
30    srcs: [
31        "AWakeLock.cpp",
32        "GenericSource.cpp",
33        "HTTPLiveSource.cpp",
34        "NuPlayer.cpp",
35        "NuPlayerCCDecoder.cpp",
36        "NuPlayerDecoder.cpp",
37        "NuPlayerDecoderBase.cpp",
38        "NuPlayerDecoderPassThrough.cpp",
39        "NuPlayerDriver.cpp",
40        "NuPlayerDrm.cpp",
41        "NuPlayerRenderer.cpp",
42        "NuPlayerStreamListener.cpp",
43        "RTSPSource.cpp",
44        "RTPSource.cpp",
45        "StreamingSource.cpp",
46    ],
47
48    local_include_dirs: [
49        "include/nuplayer",
50    ],
51
52    export_include_dirs: [
53        "include",
54    ],
55
56    header_libs: [
57        "libmediadrm_headers",
58        "libmediametrics_headers",
59        "media_plugin_headers",
60        "libstagefright_headers",
61        "libstagefright_httplive_headers",
62        "libstagefright_mpeg2support_headers",
63        "libstagefright_rtsp_headers",
64    ],
65
66    cflags: [
67        "-Werror",
68        "-Wall",
69    ],
70
71    product_variables: {
72        debuggable: {
73            cflags: [
74                "-DENABLE_STAGEFRIGHT_EXPERIMENTS",
75            ],
76        }
77    },
78
79    shared_libs: [
80        "libbinder",
81        "libdatasource",
82        "libui",
83        "libgui",
84        "libmedia",
85        "libmediadrm",
86        "libpowermanager",
87        "android.hardware.drm-V1-ndk",
88    ],
89
90    static_libs: [
91        "libplayerservice_datasource",
92        "libstagefright_esds",
93        "libstagefright_timedtext",
94    ],
95
96    name: "libstagefright_nuplayer",
97
98    sanitize: {
99        cfi: true,
100    },
101
102}
103