blob: 4991e50e8e914638af51a01a9c769db58e7e35a9 [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",
75 "-Wno-error",
76 ],
77}
78
79// This is the version of the drm metrics library configured for full protobuf.
80cc_library_shared {
81 name: "libmediadrmmetrics_full",
82 srcs: [
83 "DrmMetrics.cpp",
84 "PluginMetricsReporting.cpp",
85 "protos/metrics.proto",
86 ],
87
88 proto: {
89 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080090 type: "full",
Adam Stonefb679e32018-02-07 10:25:48 -080091 },
92 shared_libs: [
93 "android.hardware.drm@1.0",
94 "android.hardware.drm@1.1",
95 "libbase",
96 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080097 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080098 "liblog",
99 "libmediametrics",
100 "libprotobuf-cpp-full",
Adam Stone32494f52018-02-26 22:53:27 -0800101 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -0800102 "libutils",
103 ],
104 cflags: [
105 // Suppress unused parameter and no error options. These cause problems
Adam Stone32494f52018-02-26 22:53:27 -0800106 // when using the map type in a proto definition.
107 "-Wno-unused-parameter",
108 "-Wno-error",
Adam Stonefb679e32018-02-07 10:25:48 -0800109 ],
110}
111