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