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