blob: 94f9e02d7efc3f4a9aac35c30dfe27d3e554c187 [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",
Jeff Tinkerc8baaba2018-10-23 11:32:36 -070035 "android.hardware.drm@1.2",
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,
Adam Stone32494f52018-02-26 22:53:27 -080058 type: "lite",
Adam Stonefb679e32018-02-07 10:25:48 -080059 },
60 shared_libs: [
61 "android.hardware.drm@1.0",
62 "android.hardware.drm@1.1",
63 "libbase",
64 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080065 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080066 "liblog",
67 "libmediametrics",
68 "libprotobuf-cpp-lite",
Adam Stone32494f52018-02-26 22:53:27 -080069 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -080070 "libutils",
71 ],
72 cflags: [
73 // Suppress unused parameter and no error options. These cause problems
74 // with the when using the map type in a proto definition.
75 "-Wno-unused-parameter",
76 "-Wno-error",
77 ],
78}
79
80// This is the version of the drm metrics library configured for full protobuf.
81cc_library_shared {
82 name: "libmediadrmmetrics_full",
83 srcs: [
84 "DrmMetrics.cpp",
85 "PluginMetricsReporting.cpp",
86 "protos/metrics.proto",
87 ],
88
89 proto: {
90 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080091 type: "full",
Adam Stonefb679e32018-02-07 10:25:48 -080092 },
93 shared_libs: [
94 "android.hardware.drm@1.0",
95 "android.hardware.drm@1.1",
96 "libbase",
97 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080098 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080099 "liblog",
100 "libmediametrics",
101 "libprotobuf-cpp-full",
Adam Stone32494f52018-02-26 22:53:27 -0800102 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -0800103 "libutils",
104 ],
105 cflags: [
106 // Suppress unused parameter and no error options. These cause problems
Adam Stone32494f52018-02-26 22:53:27 -0800107 // when using the map type in a proto definition.
108 "-Wno-unused-parameter",
109 "-Wno-error",
Adam Stonefb679e32018-02-07 10:25:48 -0800110 ],
111}
112