blob: 52c743855c4d81d7777a3af0cf38632a4f691a8f [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",
Robert Shih79673cf2019-09-20 21:45:01 -070047 "libmedia",
Adam Stonefb679e32018-02-07 10:25:48 -080048 "libmediadrmmetrics_lite",
John W. Bruce33ecc4f2017-04-03 16:49:05 -070049 "libmediametrics",
Colin Cross53f20352017-04-20 23:21:01 -070050 "libmediautils",
Robert Shih79673cf2019-09-20 21:45:01 -070051 "libresourcemanagerservice",
Colin Cross53f20352017-04-20 23:21:01 -070052 "libstagefright_foundation",
53 "libutils",
Colin Cross53f20352017-04-20 23:21:01 -070054 "android.hardware.drm@1.0",
Jeff Tinker6d998b62017-12-18 14:37:43 -080055 "android.hardware.drm@1.1",
Jeff Tinkerc8baaba2018-10-23 11:32:36 -070056 "android.hardware.drm@1.2",
Steven Moreland65366062017-10-05 11:34:01 -070057 "libhidlallocatorutils",
Colin Cross53f20352017-04-20 23:21:01 -070058 "libhidlbase",
Colin Cross53f20352017-04-20 23:21:01 -070059 ],
60
61 cflags: [
62 "-Werror",
63 "-Wall",
64 ],
65}
Adam Stonefb679e32018-02-07 10:25:48 -080066
67// This is the version of the drm metrics configured for protobuf lite.
68cc_library_shared {
69 name: "libmediadrmmetrics_lite",
70 srcs: [
71 "DrmMetrics.cpp",
72 "PluginMetricsReporting.cpp",
73 "protos/metrics.proto",
74 ],
75
Marco Nelissen55b259c2019-09-27 10:21:55 -070076 local_include_dirs: [
77 "include"
78 ],
79
Adam Stonefb679e32018-02-07 10:25:48 -080080 proto: {
81 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080082 type: "lite",
Adam Stonefb679e32018-02-07 10:25:48 -080083 },
Marco Nelissen6b285942019-10-21 14:52:30 -070084 header_libs: [
85 "libmedia_headers",
86 ],
Adam Stonefb679e32018-02-07 10:25:48 -080087 shared_libs: [
88 "android.hardware.drm@1.0",
89 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -070090 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -080091 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080092 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080093 "liblog",
94 "libmediametrics",
95 "libprotobuf-cpp-lite",
96 "libutils",
97 ],
98 cflags: [
99 // Suppress unused parameter and no error options. These cause problems
100 // with the when using the map type in a proto definition.
101 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -0800102 ],
103}
104
105// This is the version of the drm metrics library configured for full protobuf.
106cc_library_shared {
107 name: "libmediadrmmetrics_full",
108 srcs: [
109 "DrmMetrics.cpp",
110 "PluginMetricsReporting.cpp",
111 "protos/metrics.proto",
112 ],
113
Marco Nelissen55b259c2019-09-27 10:21:55 -0700114 local_include_dirs: [
115 "include"
116 ],
117
Adam Stonefb679e32018-02-07 10:25:48 -0800118 proto: {
119 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -0800120 type: "full",
Adam Stonefb679e32018-02-07 10:25:48 -0800121 },
Marco Nelissen6b285942019-10-21 14:52:30 -0700122 header_libs: [
123 "libmedia_headers",
124 ],
Adam Stonefb679e32018-02-07 10:25:48 -0800125 shared_libs: [
126 "android.hardware.drm@1.0",
127 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -0700128 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -0800129 "libbase",
130 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -0800131 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -0800132 "liblog",
133 "libmediametrics",
134 "libprotobuf-cpp-full",
Adam Stone32494f52018-02-26 22:53:27 -0800135 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -0800136 "libutils",
137 ],
138 cflags: [
139 // Suppress unused parameter and no error options. These cause problems
Adam Stone32494f52018-02-26 22:53:27 -0800140 // when using the map type in a proto definition.
141 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -0800142 ],
143}
144