blob: d6db1d4e2b333c706281933723c9dae8645e7f27 [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 srcs: [
Colin Cross53f20352017-04-20 23:21:01 -070011 "DrmPluginPath.cpp",
12 "DrmSessionManager.cpp",
13 "ICrypto.cpp",
14 "IDrm.cpp",
15 "IDrmClient.cpp",
16 "IMediaDrmService.cpp",
Colin Cross53f20352017-04-20 23:21:01 -070017 "SharedLibrary.cpp",
18 "DrmHal.cpp",
19 "CryptoHal.cpp",
20 ],
21
22 shared_libs: [
23 "libbinder",
24 "libcutils",
25 "libdl",
26 "liblog",
Adam Stonefb679e32018-02-07 10:25:48 -080027 "libmediadrmmetrics_lite",
John W. Bruce33ecc4f2017-04-03 16:49:05 -070028 "libmediametrics",
Colin Cross53f20352017-04-20 23:21:01 -070029 "libmediautils",
30 "libstagefright_foundation",
31 "libutils",
Colin Cross53f20352017-04-20 23:21:01 -070032 "android.hardware.drm@1.0",
Jeff Tinker6d998b62017-12-18 14:37:43 -080033 "android.hardware.drm@1.1",
Jeff Tinkerc8baaba2018-10-23 11:32:36 -070034 "android.hardware.drm@1.2",
Steven Moreland65366062017-10-05 11:34:01 -070035 "libhidlallocatorutils",
Colin Cross53f20352017-04-20 23:21:01 -070036 "libhidlbase",
Colin Cross53f20352017-04-20 23:21:01 -070037 "libhidltransport",
38 ],
39
40 cflags: [
41 "-Werror",
42 "-Wall",
43 ],
44}
Adam Stonefb679e32018-02-07 10:25:48 -080045
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,
Adam Stone32494f52018-02-26 22:53:27 -080057 type: "lite",
Adam Stonefb679e32018-02-07 10:25:48 -080058 },
59 shared_libs: [
60 "android.hardware.drm@1.0",
61 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -070062 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -080063 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080064 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080065 "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",
Adam Stonefb679e32018-02-07 10:25:48 -080074 ],
75}
76
77// This is the version of the drm metrics library configured for full protobuf.
78cc_library_shared {
79 name: "libmediadrmmetrics_full",
80 srcs: [
81 "DrmMetrics.cpp",
82 "PluginMetricsReporting.cpp",
83 "protos/metrics.proto",
84 ],
85
86 proto: {
87 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080088 type: "full",
Adam Stonefb679e32018-02-07 10:25:48 -080089 },
90 shared_libs: [
91 "android.hardware.drm@1.0",
92 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -070093 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -080094 "libbase",
95 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080096 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080097 "liblog",
98 "libmediametrics",
99 "libprotobuf-cpp-full",
Adam Stone32494f52018-02-26 22:53:27 -0800100 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -0800101 "libutils",
102 ],
103 cflags: [
104 // Suppress unused parameter and no error options. These cause problems
Adam Stone32494f52018-02-26 22:53:27 -0800105 // when using the map type in a proto definition.
106 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -0800107 ],
108}
109