• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// libmediadrm
3//
4
5// TODO: change it back to cc_library_shared when MediaPlayer2 switches to
6// using NdkMediaDrm, instead of MediaDrm.java.
7cc_library {
8    name: "libmediadrm",
9
10    srcs: [
11        "DrmPluginPath.cpp",
12        "DrmSessionManager.cpp",
13        "ICrypto.cpp",
14        "IDrm.cpp",
15        "IDrmClient.cpp",
16        "IMediaDrmService.cpp",
17        "SharedLibrary.cpp",
18        "DrmHal.cpp",
19        "CryptoHal.cpp",
20    ],
21
22    shared_libs: [
23        "libbinder",
24        "libcutils",
25        "libdl",
26        "liblog",
27        "libmediadrmmetrics_lite",
28        "libmediametrics",
29        "libmediautils",
30        "libprotobuf-cpp-lite",
31        "libstagefright_foundation",
32        "libutils",
33        "android.hardware.drm@1.0",
34        "android.hardware.drm@1.1",
35        "libhidlallocatorutils",
36        "libhidlbase",
37        "libhidltransport",
38    ],
39
40    cflags: [
41        "-Werror",
42        "-Wall",
43    ],
44}
45
46// This is the version of the drm metrics configured for protobuf lite.
47cc_library_shared {
48    name: "libmediadrmmetrics_lite",
49    srcs: [
50        "DrmMetrics.cpp",
51        "PluginMetricsReporting.cpp",
52        "protos/metrics.proto",
53    ],
54
55    proto: {
56        export_proto_headers: true,
57        type: "lite",
58    },
59    shared_libs: [
60        "android.hardware.drm@1.0",
61        "android.hardware.drm@1.1",
62        "libbase",
63        "libbinder",
64        "libhidlbase",
65        "liblog",
66        "libmediametrics",
67        "libprotobuf-cpp-lite",
68        "libstagefright_foundation",
69        "libutils",
70    ],
71    cflags: [
72        // Suppress unused parameter and no error options. These cause problems
73        // with the when using the map type in a proto definition.
74        "-Wno-unused-parameter",
75        "-Wno-error",
76    ],
77}
78
79// This is the version of the drm metrics library configured for full protobuf.
80cc_library_shared {
81    name: "libmediadrmmetrics_full",
82    srcs: [
83        "DrmMetrics.cpp",
84        "PluginMetricsReporting.cpp",
85        "protos/metrics.proto",
86    ],
87
88    proto: {
89        export_proto_headers: true,
90        type: "full",
91    },
92    shared_libs: [
93        "android.hardware.drm@1.0",
94        "android.hardware.drm@1.1",
95        "libbase",
96        "libbinder",
97        "libhidlbase",
98        "liblog",
99        "libmediametrics",
100        "libprotobuf-cpp-full",
101        "libstagefright_foundation",
102        "libutils",
103    ],
104    cflags: [
105        // Suppress unused parameter and no error options. These cause problems
106        // when using the map type in a proto definition.
107        "-Wno-unused-parameter",
108        "-Wno-error",
109    ],
110}
111
112