blob: 6dce472ceec411a08219b576ba2aa0cd95583416 [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 ],
38
39 cflags: [
40 "-Werror",
41 "-Wall",
42 ],
43}
Adam Stonefb679e32018-02-07 10:25:48 -080044
45// This is the version of the drm metrics configured for protobuf lite.
46cc_library_shared {
47 name: "libmediadrmmetrics_lite",
48 srcs: [
49 "DrmMetrics.cpp",
50 "PluginMetricsReporting.cpp",
51 "protos/metrics.proto",
52 ],
53
54 proto: {
55 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080056 type: "lite",
Adam Stonefb679e32018-02-07 10:25:48 -080057 },
58 shared_libs: [
59 "android.hardware.drm@1.0",
60 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -070061 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -080062 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080063 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080064 "liblog",
65 "libmediametrics",
66 "libprotobuf-cpp-lite",
67 "libutils",
68 ],
69 cflags: [
70 // Suppress unused parameter and no error options. These cause problems
71 // with the when using the map type in a proto definition.
72 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -080073 ],
74}
75
76// This is the version of the drm metrics library configured for full protobuf.
77cc_library_shared {
78 name: "libmediadrmmetrics_full",
79 srcs: [
80 "DrmMetrics.cpp",
81 "PluginMetricsReporting.cpp",
82 "protos/metrics.proto",
83 ],
84
85 proto: {
86 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080087 type: "full",
Adam Stonefb679e32018-02-07 10:25:48 -080088 },
89 shared_libs: [
90 "android.hardware.drm@1.0",
91 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -070092 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -080093 "libbase",
94 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080095 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080096 "liblog",
97 "libmediametrics",
98 "libprotobuf-cpp-full",
Adam Stone32494f52018-02-26 22:53:27 -080099 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -0800100 "libutils",
101 ],
102 cflags: [
103 // Suppress unused parameter and no error options. These cause problems
Adam Stone32494f52018-02-26 22:53:27 -0800104 // when using the map type in a proto definition.
105 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -0800106 ],
107}
108