blob: c29d00433cf0240a0402d3523dd95c0c62d2defd [file] [log] [blame]
Colin Cross53f20352017-04-20 23:21:01 -07001//
2// libmediadrm
3//
4
Marco Nelissena5232042019-09-24 09:27:40 -07005cc_library_shared {
Colin Cross53f20352017-04-20 23:21:01 -07006 name: "libmediadrm",
7
Colin Cross53f20352017-04-20 23:21:01 -07008 srcs: [
Colin Cross53f20352017-04-20 23:21:01 -07009 "DrmPluginPath.cpp",
10 "DrmSessionManager.cpp",
11 "ICrypto.cpp",
12 "IDrm.cpp",
13 "IDrmClient.cpp",
14 "IMediaDrmService.cpp",
Colin Cross53f20352017-04-20 23:21:01 -070015 "SharedLibrary.cpp",
16 "DrmHal.cpp",
17 "CryptoHal.cpp",
18 ],
19
20 shared_libs: [
21 "libbinder",
22 "libcutils",
23 "libdl",
24 "liblog",
Adam Stonefb679e32018-02-07 10:25:48 -080025 "libmediadrmmetrics_lite",
John W. Bruce33ecc4f2017-04-03 16:49:05 -070026 "libmediametrics",
Colin Cross53f20352017-04-20 23:21:01 -070027 "libmediautils",
28 "libstagefright_foundation",
29 "libutils",
Colin Cross53f20352017-04-20 23:21:01 -070030 "android.hardware.drm@1.0",
Jeff Tinker6d998b62017-12-18 14:37:43 -080031 "android.hardware.drm@1.1",
Jeff Tinkerc8baaba2018-10-23 11:32:36 -070032 "android.hardware.drm@1.2",
Steven Moreland65366062017-10-05 11:34:01 -070033 "libhidlallocatorutils",
Colin Cross53f20352017-04-20 23:21:01 -070034 "libhidlbase",
Colin Cross53f20352017-04-20 23:21:01 -070035 ],
36
37 cflags: [
38 "-Werror",
39 "-Wall",
40 ],
41}
Adam Stonefb679e32018-02-07 10:25:48 -080042
43// This is the version of the drm metrics configured for protobuf lite.
44cc_library_shared {
45 name: "libmediadrmmetrics_lite",
46 srcs: [
47 "DrmMetrics.cpp",
48 "PluginMetricsReporting.cpp",
49 "protos/metrics.proto",
50 ],
51
52 proto: {
53 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080054 type: "lite",
Adam Stonefb679e32018-02-07 10:25:48 -080055 },
56 shared_libs: [
57 "android.hardware.drm@1.0",
58 "android.hardware.drm@1.1",
Robert Shiha5033262019-05-06 14:15:12 -070059 "android.hardware.drm@1.2",
Adam Stonefb679e32018-02-07 10:25:48 -080060 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080061 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080062 "liblog",
63 "libmediametrics",
64 "libprotobuf-cpp-lite",
65 "libutils",
66 ],
67 cflags: [
68 // Suppress unused parameter and no error options. These cause problems
69 // with the when using the map type in a proto definition.
70 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -080071 ],
72}
73
74// This is the version of the drm metrics library configured for full protobuf.
75cc_library_shared {
76 name: "libmediadrmmetrics_full",
77 srcs: [
78 "DrmMetrics.cpp",
79 "PluginMetricsReporting.cpp",
80 "protos/metrics.proto",
81 ],
82
83 proto: {
84 export_proto_headers: true,
Adam Stone32494f52018-02-26 22:53:27 -080085 type: "full",
Adam Stonefb679e32018-02-07 10:25:48 -080086 },
87 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 "libbase",
92 "libbinder",
Adam Stone32494f52018-02-26 22:53:27 -080093 "libhidlbase",
Adam Stonefb679e32018-02-07 10:25:48 -080094 "liblog",
95 "libmediametrics",
96 "libprotobuf-cpp-full",
Adam Stone32494f52018-02-26 22:53:27 -080097 "libstagefright_foundation",
Adam Stonefb679e32018-02-07 10:25:48 -080098 "libutils",
99 ],
100 cflags: [
101 // Suppress unused parameter and no error options. These cause problems
Adam Stone32494f52018-02-26 22:53:27 -0800102 // when using the map type in a proto definition.
103 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -0800104 ],
105}
106