blob: 91d1f7ea1c47fc9dae3aa30bc1176cc0ad5d749a [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",
Adam Stonefb679e32018-02-07 10:25:48 -080030 "libprotobuf-cpp-lite",
Colin Cross53f20352017-04-20 23:21:01 -070031 "libstagefright_foundation",
32 "libutils",
Colin Cross53f20352017-04-20 23:21:01 -070033 "android.hardware.drm@1.0",
Jeff Tinker6d998b62017-12-18 14:37:43 -080034 "android.hardware.drm@1.1",
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",
62 "libbase",
63 "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",
Adam Stone32494f52018-02-26 22:53:27 -080068 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -080069 "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",
Adam Stonefb679e32018-02-07 10:25:48 -080075 ],
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,
Adam Stone32494f52018-02-26 22:53:27 -080089 type: "full",
Adam Stonefb679e32018-02-07 10:25:48 -080090 },
91 shared_libs: [
92 "android.hardware.drm@1.0",
93 "android.hardware.drm@1.1",
94 "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