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