blob: 5ea4614da14276ca239a136ec5306c73059f71f2 [file] [log] [blame]
Colin Cross53f20352017-04-20 23:21:01 -07001//
2// libmediadrm
3//
4
Wei Jia4049f132018-01-22 10:37:31 -08005// TODO: change it back to cc_library_shared when MediaPlayer2 switches to
6// using NdkMediaDrm, instead of MediaDrm.java.
7cc_library {
Colin Cross53f20352017-04-20 23:21:01 -07008 name: "libmediadrm",
9
Colin Cross53f20352017-04-20 23:21:01 -070010
11 srcs: [
Colin Cross53f20352017-04-20 23:21:01 -070012 "DrmPluginPath.cpp",
13 "DrmSessionManager.cpp",
14 "ICrypto.cpp",
15 "IDrm.cpp",
16 "IDrmClient.cpp",
17 "IMediaDrmService.cpp",
Colin Cross53f20352017-04-20 23:21:01 -070018 "SharedLibrary.cpp",
19 "DrmHal.cpp",
20 "CryptoHal.cpp",
21 ],
22
23 shared_libs: [
24 "libbinder",
25 "libcutils",
26 "libdl",
27 "liblog",
Adam Stonefb679e32018-02-07 10:25:48 -080028 "libmediadrmmetrics_lite",
John W. Bruce33ecc4f2017-04-03 16:49:05 -070029 "libmediametrics",
Colin Cross53f20352017-04-20 23:21:01 -070030 "libmediautils",
Adam Stonefb679e32018-02-07 10:25:48 -080031 "libprotobuf-cpp-lite",
Colin Cross53f20352017-04-20 23:21:01 -070032 "libstagefright_foundation",
33 "libutils",
Colin Cross53f20352017-04-20 23:21:01 -070034 "android.hardware.drm@1.0",
Jeff Tinker6d998b62017-12-18 14:37:43 -080035 "android.hardware.drm@1.1",
Steven Moreland65366062017-10-05 11:34:01 -070036 "libhidlallocatorutils",
Colin Cross53f20352017-04-20 23:21:01 -070037 "libhidlbase",
Colin Cross53f20352017-04-20 23:21:01 -070038 "libhidltransport",
39 ],
40
41 cflags: [
42 "-Werror",
43 "-Wall",
44 ],
45}
Adam Stonefb679e32018-02-07 10:25:48 -080046
47// This is the version of the drm metrics configured for protobuf lite.
48cc_library_shared {
49 name: "libmediadrmmetrics_lite",
50 srcs: [
51 "DrmMetrics.cpp",
52 "PluginMetricsReporting.cpp",
53 "protos/metrics.proto",
54 ],
55
56 proto: {
57 export_proto_headers: true,
58 type: "lite",
59 },
60 shared_libs: [
61 "android.hardware.drm@1.0",
62 "android.hardware.drm@1.1",
63 "libbase",
64 "libbinder",
65 "liblog",
66 "libmediametrics",
67 "libprotobuf-cpp-lite",
68 "libutils",
69 ],
70 cflags: [
71 // Suppress unused parameter and no error options. These cause problems
72 // with the when using the map type in a proto definition.
73 "-Wno-unused-parameter",
74 "-Wno-error",
75 ],
76}
77
78// This is the version of the drm metrics library configured for full protobuf.
79cc_library_shared {
80 name: "libmediadrmmetrics_full",
81 srcs: [
82 "DrmMetrics.cpp",
83 "PluginMetricsReporting.cpp",
84 "protos/metrics.proto",
85 ],
86
87 proto: {
88 export_proto_headers: true,
89 type: "full",
90 },
91 shared_libs: [
92 "android.hardware.drm@1.0",
93 "android.hardware.drm@1.1",
94 "libbase",
95 "libbinder",
96 "liblog",
97 "libmediametrics",
98 "libprotobuf-cpp-full",
99 "libutils",
100 ],
101 cflags: [
102 // Suppress unused parameter and no error options. These cause problems
103 // when using the map type in a proto definition.
104 "-Wno-unused-parameter",
105 "-Wno-error",
106 ],
107}
108