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