Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 1 | // |
| 2 | // libmediadrm |
| 3 | // |
| 4 | |
Marco Nelissen | 55b259c | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 5 | cc_library_headers { |
| 6 | name: "libmediadrm_headers", |
| 7 | |
| 8 | export_include_dirs: [ |
| 9 | "interface" |
| 10 | ], |
| 11 | |
| 12 | } |
| 13 | |
Marco Nelissen | d1ecb91 | 2019-09-24 09:27:40 -0700 | [diff] [blame] | 14 | cc_library_shared { |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 15 | name: "libmediadrm", |
| 16 | |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 17 | srcs: [ |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 18 | "DrmPluginPath.cpp", |
| 19 | "DrmSessionManager.cpp", |
| 20 | "ICrypto.cpp", |
| 21 | "IDrm.cpp", |
| 22 | "IDrmClient.cpp", |
| 23 | "IMediaDrmService.cpp", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 24 | "SharedLibrary.cpp", |
| 25 | "DrmHal.cpp", |
| 26 | "CryptoHal.cpp", |
| 27 | ], |
| 28 | |
Marco Nelissen | 55b259c | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 29 | local_include_dirs: [ |
| 30 | "include", |
| 31 | "interface" |
| 32 | ], |
| 33 | |
| 34 | export_include_dirs: [ |
| 35 | "include" |
| 36 | ], |
| 37 | |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 38 | header_libs: [ |
| 39 | "libmedia_headers", |
| 40 | ], |
| 41 | |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 42 | shared_libs: [ |
| 43 | "libbinder", |
| 44 | "libcutils", |
| 45 | "libdl", |
| 46 | "liblog", |
Robert Shih | 79673cf | 2019-09-20 21:45:01 -0700 | [diff] [blame] | 47 | "libmedia", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 48 | "libmediadrmmetrics_lite", |
John W. Bruce | 33ecc4f | 2017-04-03 16:49:05 -0700 | [diff] [blame] | 49 | "libmediametrics", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 50 | "libmediautils", |
Robert Shih | 79673cf | 2019-09-20 21:45:01 -0700 | [diff] [blame] | 51 | "libresourcemanagerservice", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 52 | "libstagefright_foundation", |
| 53 | "libutils", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 54 | "android.hardware.drm@1.0", |
Jeff Tinker | 6d998b6 | 2017-12-18 14:37:43 -0800 | [diff] [blame] | 55 | "android.hardware.drm@1.1", |
Jeff Tinker | c8baaba | 2018-10-23 11:32:36 -0700 | [diff] [blame] | 56 | "android.hardware.drm@1.2", |
Steven Moreland | 6536606 | 2017-10-05 11:34:01 -0700 | [diff] [blame] | 57 | "libhidlallocatorutils", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 58 | "libhidlbase", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 59 | ], |
| 60 | |
| 61 | cflags: [ |
| 62 | "-Werror", |
| 63 | "-Wall", |
| 64 | ], |
| 65 | } |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 66 | |
| 67 | // This is the version of the drm metrics configured for protobuf lite. |
| 68 | cc_library_shared { |
| 69 | name: "libmediadrmmetrics_lite", |
| 70 | srcs: [ |
| 71 | "DrmMetrics.cpp", |
| 72 | "PluginMetricsReporting.cpp", |
| 73 | "protos/metrics.proto", |
| 74 | ], |
| 75 | |
Marco Nelissen | 55b259c | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 76 | local_include_dirs: [ |
| 77 | "include" |
| 78 | ], |
| 79 | |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 80 | proto: { |
| 81 | export_proto_headers: true, |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 82 | type: "lite", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 83 | }, |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 84 | header_libs: [ |
| 85 | "libmedia_headers", |
| 86 | ], |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 87 | shared_libs: [ |
| 88 | "android.hardware.drm@1.0", |
| 89 | "android.hardware.drm@1.1", |
Robert Shih | a503326 | 2019-05-06 14:15:12 -0700 | [diff] [blame] | 90 | "android.hardware.drm@1.2", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 91 | "libbinder", |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 92 | "libhidlbase", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 93 | "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 Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 102 | ], |
| 103 | } |
| 104 | |
| 105 | // This is the version of the drm metrics library configured for full protobuf. |
| 106 | cc_library_shared { |
| 107 | name: "libmediadrmmetrics_full", |
| 108 | srcs: [ |
| 109 | "DrmMetrics.cpp", |
| 110 | "PluginMetricsReporting.cpp", |
| 111 | "protos/metrics.proto", |
| 112 | ], |
| 113 | |
Marco Nelissen | 55b259c | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 114 | local_include_dirs: [ |
| 115 | "include" |
| 116 | ], |
| 117 | |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 118 | proto: { |
| 119 | export_proto_headers: true, |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 120 | type: "full", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 121 | }, |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 122 | header_libs: [ |
| 123 | "libmedia_headers", |
| 124 | ], |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 125 | shared_libs: [ |
| 126 | "android.hardware.drm@1.0", |
| 127 | "android.hardware.drm@1.1", |
Robert Shih | a503326 | 2019-05-06 14:15:12 -0700 | [diff] [blame] | 128 | "android.hardware.drm@1.2", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 129 | "libbase", |
| 130 | "libbinder", |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 131 | "libhidlbase", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 132 | "liblog", |
| 133 | "libmediametrics", |
| 134 | "libprotobuf-cpp-full", |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 135 | "libstagefright_foundation", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 136 | "libutils", |
| 137 | ], |
| 138 | cflags: [ |
| 139 | // Suppress unused parameter and no error options. These cause problems |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 140 | // when using the map type in a proto definition. |
| 141 | "-Wno-unused-parameter", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 142 | ], |
| 143 | } |
| 144 | |