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