blob: 84f2f6da63c642cfa4a8470175f5313656e4f7c8 [file] [log] [blame]
Colin Cross53f20352017-04-20 23:21:01 -07001//
2// libmediadrm
3//
4
Marco Nelissen55b259c2019-09-27 10:21:55 -07005cc_library_headers {
6 name: "libmediadrm_headers",
7
8 export_include_dirs: [
9 "interface"
10 ],
11
12}
13
Marco Nelissend1ecb912019-09-24 09:27:40 -070014cc_library_shared {
Colin Cross53f20352017-04-20 23:21:01 -070015 name: "libmediadrm",
16
Colin Cross53f20352017-04-20 23:21:01 -070017 srcs: [
Colin Cross53f20352017-04-20 23:21:01 -070018 "DrmPluginPath.cpp",
19 "DrmSessionManager.cpp",
20 "ICrypto.cpp",
21 "IDrm.cpp",
22 "IDrmClient.cpp",
23 "IMediaDrmService.cpp",
Colin Cross53f20352017-04-20 23:21:01 -070024 "SharedLibrary.cpp",
25 "DrmHal.cpp",
26 "CryptoHal.cpp",
27 ],
28
Marco Nelissen55b259c2019-09-27 10:21:55 -070029 local_include_dirs: [
30 "include",
31 "interface"
32 ],
33
34 export_include_dirs: [
35 "include"
36 ],
37
Marco Nelissen6b285942019-10-21 14:52:30 -070038 header_libs: [
39 "libmedia_headers",
40 ],
41
Colin Cross53f20352017-04-20 23:21:01 -070042 shared_libs: [
43 "libbinder",
44 "libcutils",
45 "libdl",
46 "liblog",
Adam Stonefb679e32018-02-07 10:25:48 -080047 "libmediadrmmetrics_lite",
John W. Bruce33ecc4f2017-04-03 16:49:05 -070048 "libmediametrics",
Colin Cross53f20352017-04-20 23:21:01 -070049 "libmediautils",
50 "libstagefright_foundation",
51 "libutils",
Colin Cross53f20352017-04-20 23:21:01 -070052 "android.hardware.drm@1.0",
Jeff Tinker6d998b62017-12-18 14:37:43 -080053 "android.hardware.drm@1.1",
Jeff Tinkerc8baaba2018-10-23 11:32:36 -070054 "android.hardware.drm@1.2",
Steven Moreland65366062017-10-05 11:34:01 -070055 "libhidlallocatorutils",
Colin Cross53f20352017-04-20 23:21:01 -070056 "libhidlbase",
Colin Cross53f20352017-04-20 23:21:01 -070057 ],
58
59 cflags: [
60 "-Werror",
61 "-Wall",
62 ],
63}
Adam Stonefb679e32018-02-07 10:25:48 -080064
65// This is the version of the drm metrics configured for protobuf lite.
66cc_library_shared {
67 name: "libmediadrmmetrics_lite",
68 srcs: [
69 "DrmMetrics.cpp",
70 "PluginMetricsReporting.cpp",
71 "protos/metrics.proto",
72 ],
73
Marco Nelissen55b259c2019-09-27 10:21:55 -070074 local_include_dirs: [
75 "include"
76 ],
77
Adam Stonefb679e32018-02-07 10:25:48 -080078 proto: {
79 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080080 type: "lite",
Adam Stonefb679e32018-02-07 10:25:48 -080081 },
Marco Nelissen6b285942019-10-21 14:52:30 -070082 header_libs: [
83 "libmedia_headers",
84 ],
Adam Stonefb679e32018-02-07 10:25:48 -080085 shared_libs: [
86 "android.hardware.drm@1.0",
87 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -070088 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -080089 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080090 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080091 "liblog",
92 "libmediametrics",
93 "libprotobuf-cpp-lite",
94 "libutils",
95 ],
96 cflags: [
97 // Suppress unused parameter and no error options. These cause problems
98 // with the when using the map type in a proto definition.
99 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -0800100 ],
101}
102
103// This is the version of the drm metrics library configured for full protobuf.
104cc_library_shared {
105 name: "libmediadrmmetrics_full",
106 srcs: [
107 "DrmMetrics.cpp",
108 "PluginMetricsReporting.cpp",
109 "protos/metrics.proto",
110 ],
111
Marco Nelissen55b259c2019-09-27 10:21:55 -0700112 local_include_dirs: [
113 "include"
114 ],
115
Adam Stonefb679e32018-02-07 10:25:48 -0800116 proto: {
117 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -0800118 type: "full",
Adam Stonefb679e32018-02-07 10:25:48 -0800119 },
Marco Nelissen6b285942019-10-21 14:52:30 -0700120 header_libs: [
121 "libmedia_headers",
122 ],
Adam Stonefb679e32018-02-07 10:25:48 -0800123 shared_libs: [
124 "android.hardware.drm@1.0",
125 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -0700126 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -0800127 "libbase",
128 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -0800129 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -0800130 "liblog",
131 "libmediametrics",
132 "libprotobuf-cpp-full",
Adam Stone32494f52018-02-26 22:53:27 -0800133 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -0800134 "libutils",
135 ],
136 cflags: [
137 // Suppress unused parameter and no error options. These cause problems
Adam Stone32494f52018-02-26 22:53:27 -0800138 // when using the map type in a proto definition.
139 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -0800140 ],
141}
142