| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 1 | // | 
|  | 2 | // libmediadrm | 
|  | 3 | // | 
|  | 4 |  | 
| Wei Jia | 4049f13 | 2018-01-22 10:37:31 -0800 | [diff] [blame] | 5 | // TODO: change it back to cc_library_shared when MediaPlayer2 switches to | 
|  | 6 | // using NdkMediaDrm, instead of MediaDrm.java. | 
|  | 7 | cc_library { | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 8 | name: "libmediadrm", | 
|  | 9 |  | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 10 | srcs: [ | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 11 | "DrmPluginPath.cpp", | 
|  | 12 | "DrmSessionManager.cpp", | 
|  | 13 | "ICrypto.cpp", | 
|  | 14 | "IDrm.cpp", | 
|  | 15 | "IDrmClient.cpp", | 
|  | 16 | "IMediaDrmService.cpp", | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 17 | "SharedLibrary.cpp", | 
|  | 18 | "DrmHal.cpp", | 
|  | 19 | "CryptoHal.cpp", | 
|  | 20 | ], | 
|  | 21 |  | 
|  | 22 | shared_libs: [ | 
|  | 23 | "libbinder", | 
|  | 24 | "libcutils", | 
|  | 25 | "libdl", | 
|  | 26 | "liblog", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 27 | "libmediadrmmetrics_lite", | 
| John W. Bruce | 33ecc4f | 2017-04-03 16:49:05 -0700 | [diff] [blame] | 28 | "libmediametrics", | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 29 | "libmediautils", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 30 | "libprotobuf-cpp-lite", | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 31 | "libstagefright_foundation", | 
|  | 32 | "libutils", | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 33 | "android.hardware.drm@1.0", | 
| Jeff Tinker | 6d998b6 | 2017-12-18 14:37:43 -0800 | [diff] [blame] | 34 | "android.hardware.drm@1.1", | 
| Jeff Tinker | c8baaba | 2018-10-23 11:32:36 -0700 | [diff] [blame^] | 35 | "android.hardware.drm@1.2", | 
| Steven Moreland | 6536606 | 2017-10-05 11:34:01 -0700 | [diff] [blame] | 36 | "libhidlallocatorutils", | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 37 | "libhidlbase", | 
| Colin Cross | 53f2035 | 2017-04-20 23:21:01 -0700 | [diff] [blame] | 38 | "libhidltransport", | 
|  | 39 | ], | 
|  | 40 |  | 
|  | 41 | cflags: [ | 
|  | 42 | "-Werror", | 
|  | 43 | "-Wall", | 
|  | 44 | ], | 
|  | 45 | } | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 46 |  | 
|  | 47 | // This is the version of the drm metrics configured for protobuf lite. | 
|  | 48 | cc_library_shared { | 
|  | 49 | name: "libmediadrmmetrics_lite", | 
|  | 50 | srcs: [ | 
|  | 51 | "DrmMetrics.cpp", | 
|  | 52 | "PluginMetricsReporting.cpp", | 
|  | 53 | "protos/metrics.proto", | 
|  | 54 | ], | 
|  | 55 |  | 
|  | 56 | proto: { | 
|  | 57 | export_proto_headers: true, | 
| Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 58 | type: "lite", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 59 | }, | 
|  | 60 | shared_libs: [ | 
|  | 61 | "android.hardware.drm@1.0", | 
|  | 62 | "android.hardware.drm@1.1", | 
|  | 63 | "libbase", | 
|  | 64 | "libbinder", | 
| Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 65 | "libhidlbase", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 66 | "liblog", | 
|  | 67 | "libmediametrics", | 
|  | 68 | "libprotobuf-cpp-lite", | 
| Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 69 | "libstagefright_foundation", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 70 | "libutils", | 
|  | 71 | ], | 
|  | 72 | cflags: [ | 
|  | 73 | // Suppress unused parameter and no error options. These cause problems | 
|  | 74 | // with the when using the map type in a proto definition. | 
|  | 75 | "-Wno-unused-parameter", | 
|  | 76 | "-Wno-error", | 
|  | 77 | ], | 
|  | 78 | } | 
|  | 79 |  | 
|  | 80 | // This is the version of the drm metrics library configured for full protobuf. | 
|  | 81 | cc_library_shared { | 
|  | 82 | name: "libmediadrmmetrics_full", | 
|  | 83 | srcs: [ | 
|  | 84 | "DrmMetrics.cpp", | 
|  | 85 | "PluginMetricsReporting.cpp", | 
|  | 86 | "protos/metrics.proto", | 
|  | 87 | ], | 
|  | 88 |  | 
|  | 89 | proto: { | 
|  | 90 | export_proto_headers: true, | 
| Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 91 | type: "full", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 92 | }, | 
|  | 93 | shared_libs: [ | 
|  | 94 | "android.hardware.drm@1.0", | 
|  | 95 | "android.hardware.drm@1.1", | 
|  | 96 | "libbase", | 
|  | 97 | "libbinder", | 
| Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 98 | "libhidlbase", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 99 | "liblog", | 
|  | 100 | "libmediametrics", | 
|  | 101 | "libprotobuf-cpp-full", | 
| Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 102 | "libstagefright_foundation", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 103 | "libutils", | 
|  | 104 | ], | 
|  | 105 | cflags: [ | 
|  | 106 | // Suppress unused parameter and no error options. These cause problems | 
| Adam Stone | 32494f5 | 2018-02-26 22:53:27 -0800 | [diff] [blame] | 107 | // when using the map type in a proto definition. | 
|  | 108 | "-Wno-unused-parameter", | 
|  | 109 | "-Wno-error", | 
| Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame] | 110 | ], | 
|  | 111 | } | 
|  | 112 |  |