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", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 20 | "IMediaDrmService.cpp", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 21 | "SharedLibrary.cpp", |
| 22 | "DrmHal.cpp", |
| 23 | "CryptoHal.cpp", |
Robert Shih | 28c2ed3 | 2019-10-27 22:55:12 -0700 | [diff] [blame] | 24 | "DrmUtils.cpp", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 25 | ], |
| 26 | |
Marco Nelissen | 13aa1a4 | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 27 | local_include_dirs: [ |
| 28 | "include", |
| 29 | "interface" |
| 30 | ], |
| 31 | |
| 32 | export_include_dirs: [ |
| 33 | "include" |
| 34 | ], |
| 35 | |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 36 | header_libs: [ |
| 37 | "libmedia_headers", |
| 38 | ], |
| 39 | |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 40 | shared_libs: [ |
| 41 | "libbinder", |
Robert Shih | 0f3a8a0 | 2019-11-14 15:43:39 -0800 | [diff] [blame^] | 42 | "libbinder_ndk", |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 43 | "libcutils", |
| 44 | "libdl", |
| 45 | "liblog", |
Robert Shih | c3af31b | 2019-09-20 21:45:01 -0700 | [diff] [blame] | 46 | "libmedia", |
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 | |
Robert Shih | 0f3a8a0 | 2019-11-14 15:43:39 -0800 | [diff] [blame^] | 59 | static_libs: [ |
| 60 | "resourcemanager_aidl_interface-ndk_platform", |
| 61 | ], |
| 62 | |
Robert Shih | 28c2ed3 | 2019-10-27 22:55:12 -0700 | [diff] [blame] | 63 | export_shared_lib_headers: [ |
| 64 | "android.hardware.drm@1.0", |
| 65 | "android.hardware.drm@1.1", |
| 66 | "android.hardware.drm@1.2", |
| 67 | ], |
| 68 | |
Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 69 | cflags: [ |
| 70 | "-Werror", |
| 71 | "-Wall", |
| 72 | ], |
| 73 | } |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 74 | |
| 75 | // This is the version of the drm metrics configured for protobuf lite. |
| 76 | cc_library_shared { |
| 77 | name: "libmediadrmmetrics_lite", |
| 78 | srcs: [ |
| 79 | "DrmMetrics.cpp", |
| 80 | "PluginMetricsReporting.cpp", |
| 81 | "protos/metrics.proto", |
| 82 | ], |
| 83 | |
Marco Nelissen | 13aa1a4 | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 84 | local_include_dirs: [ |
| 85 | "include" |
| 86 | ], |
| 87 | |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 88 | proto: { |
| 89 | export_proto_headers: true, |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 90 | type: "lite", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 91 | }, |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 92 | header_libs: [ |
| 93 | "libmedia_headers", |
| 94 | ], |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 95 | shared_libs: [ |
| 96 | "android.hardware.drm@1.0", |
| 97 | "android.hardware.drm@1.1", |
Robert Shih | a503326 | 2019-05-06 14:15:12 -0700 | [diff] [blame] | 98 | "android.hardware.drm@1.2", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 99 | "libbinder", |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 100 | "libhidlbase", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 101 | "liblog", |
| 102 | "libmediametrics", |
| 103 | "libprotobuf-cpp-lite", |
| 104 | "libutils", |
| 105 | ], |
| 106 | cflags: [ |
| 107 | // Suppress unused parameter and no error options. These cause problems |
| 108 | // with the when using the map type in a proto definition. |
| 109 | "-Wno-unused-parameter", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 110 | ], |
| 111 | } |
| 112 | |
| 113 | // This is the version of the drm metrics library configured for full protobuf. |
| 114 | cc_library_shared { |
| 115 | name: "libmediadrmmetrics_full", |
| 116 | srcs: [ |
| 117 | "DrmMetrics.cpp", |
| 118 | "PluginMetricsReporting.cpp", |
| 119 | "protos/metrics.proto", |
| 120 | ], |
| 121 | |
Marco Nelissen | 13aa1a4 | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 122 | local_include_dirs: [ |
| 123 | "include" |
| 124 | ], |
| 125 | |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 126 | proto: { |
| 127 | export_proto_headers: true, |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 128 | type: "full", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 129 | }, |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 130 | header_libs: [ |
| 131 | "libmedia_headers", |
| 132 | ], |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 133 | shared_libs: [ |
| 134 | "android.hardware.drm@1.0", |
| 135 | "android.hardware.drm@1.1", |
Robert Shih | a503326 | 2019-05-06 14:15:12 -0700 | [diff] [blame] | 136 | "android.hardware.drm@1.2", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 137 | "libbase", |
| 138 | "libbinder", |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 139 | "libhidlbase", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 140 | "liblog", |
| 141 | "libmediametrics", |
| 142 | "libprotobuf-cpp-full", |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 143 | "libstagefright_foundation", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 144 | "libutils", |
| 145 | ], |
| 146 | cflags: [ |
| 147 | // Suppress unused parameter and no error options. These cause problems |
Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 148 | // when using the map type in a proto definition. |
| 149 | "-Wno-unused-parameter", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 150 | ], |
| 151 | } |
| 152 | |