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