Steven Moreland | bf0cfe7 | 2017-04-14 04:12:13 -0700 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "libmedia_headers", |
| 3 | vendor_available: true, |
| 4 | export_include_dirs: ["include"], |
| 5 | } |
| 6 | |
Jaekyun Seok | 08dab5a | 2016-12-07 15:08:17 +0900 | [diff] [blame] | 7 | cc_library { |
Dan Willemsen | 442a2ee | 2016-08-26 17:52:29 -0700 | [diff] [blame] | 8 | name: "libmedia_helper", |
Steven Moreland | fbd30d0 | 2017-04-17 17:44:48 -0700 | [diff] [blame] | 9 | vendor_available: true, |
Mikhail Naganov | 913d06c | 2016-11-01 12:49:22 -0700 | [diff] [blame] | 10 | srcs: ["AudioParameter.cpp", "TypeConverter.cpp"], |
Dan Willemsen | 442a2ee | 2016-08-26 17:52:29 -0700 | [diff] [blame] | 11 | cflags: [ |
| 12 | "-Werror", |
| 13 | "-Wno-error=deprecated-declarations", |
| 14 | "-Wall", |
| 15 | ], |
Jaekyun Seok | 08dab5a | 2016-12-07 15:08:17 +0900 | [diff] [blame] | 16 | shared: { |
| 17 | shared_libs: ["libutils", "liblog"], |
| 18 | }, |
Dan Willemsen | 442a2ee | 2016-08-26 17:52:29 -0700 | [diff] [blame] | 19 | clang: true, |
| 20 | } |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 21 | |
| 22 | cc_library_shared { |
| 23 | name: "libmedia", |
| 24 | |
| 25 | aidl: { |
| 26 | local_include_dirs: ["aidl"], |
| 27 | export_aidl_headers: true, |
| 28 | }, |
| 29 | |
| 30 | srcs: [ |
| 31 | "aidl/android/IGraphicBufferSource.aidl", |
| 32 | "aidl/android/IOMXBufferSource.aidl", |
| 33 | |
| 34 | "IDataSource.cpp", |
| 35 | "IHDCP.cpp", |
| 36 | "BufferingSettings.cpp", |
| 37 | "mediaplayer.cpp", |
| 38 | "IMediaCodecList.cpp", |
| 39 | "IMediaCodecService.cpp", |
| 40 | "IMediaHTTPConnection.cpp", |
| 41 | "IMediaHTTPService.cpp", |
| 42 | "IMediaExtractor.cpp", |
| 43 | "IMediaExtractorService.cpp", |
| 44 | "IMediaPlayerService.cpp", |
| 45 | "IMediaPlayerClient.cpp", |
| 46 | "IMediaRecorderClient.cpp", |
| 47 | "IMediaPlayer.cpp", |
| 48 | "IMediaRecorder.cpp", |
| 49 | "IMediaSource.cpp", |
| 50 | "IRemoteDisplay.cpp", |
| 51 | "IRemoteDisplayClient.cpp", |
| 52 | "IResourceManagerClient.cpp", |
| 53 | "IResourceManagerService.cpp", |
| 54 | "IStreamSource.cpp", |
| 55 | "MediaCodecBuffer.cpp", |
| 56 | "MediaCodecInfo.cpp", |
| 57 | "MediaDefs.cpp", |
| 58 | "MediaUtils.cpp", |
| 59 | "Metadata.cpp", |
| 60 | "mediarecorder.cpp", |
| 61 | "IMediaMetadataRetriever.cpp", |
| 62 | "mediametadataretriever.cpp", |
| 63 | "MidiDeviceInfo.cpp", |
| 64 | "MidiIoWrapper.cpp", |
| 65 | "JetPlayer.cpp", |
| 66 | "IOMX.cpp", |
| 67 | "MediaScanner.cpp", |
| 68 | "MediaScannerClient.cpp", |
| 69 | "CharacterEncodingDetector.cpp", |
| 70 | "IMediaDeathNotifier.cpp", |
| 71 | "MediaProfiles.cpp", |
| 72 | "MediaResource.cpp", |
| 73 | "MediaResourcePolicy.cpp", |
| 74 | "OMXBuffer.cpp", |
| 75 | "Visualizer.cpp", |
| 76 | "StringArray.cpp", |
| 77 | "omx/1.0/WGraphicBufferSource.cpp", |
| 78 | "omx/1.0/WOmx.cpp", |
| 79 | "omx/1.0/WOmxBufferSource.cpp", |
| 80 | "omx/1.0/WOmxNode.cpp", |
| 81 | "omx/1.0/WOmxObserver.cpp", |
| 82 | ], |
| 83 | |
| 84 | shared_libs: [ |
| 85 | "libui", |
| 86 | "liblog", |
| 87 | "libcutils", |
| 88 | "libutils", |
| 89 | "libbinder", |
| 90 | "libsonivox", |
| 91 | "libicuuc", |
| 92 | "libicui18n", |
| 93 | "libexpat", |
| 94 | "libcamera_client", |
| 95 | "libstagefright_foundation", |
| 96 | "libgui", |
| 97 | "libdl", |
| 98 | "libaudioutils", |
| 99 | "libaudioclient", |
| 100 | "libmedia_helper", |
| 101 | "libmediadrm", |
| 102 | "libmediametrics", |
| 103 | "libbase", |
| 104 | "libhidlbase", |
| 105 | "libhidltransport", |
| 106 | "libhwbinder", |
| 107 | "libhidlmemory", |
| 108 | "android.hidl.memory@1.0", |
| 109 | "android.hidl.token@1.0-utils", |
| 110 | "android.hardware.graphics.common@1.0", |
| 111 | "android.hardware.graphics.bufferqueue@1.0", |
| 112 | "android.hardware.media@1.0", |
| 113 | "android.hardware.media.omx@1.0", |
| 114 | ], |
| 115 | |
| 116 | export_shared_lib_headers: [ |
| 117 | "libbinder", |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame^] | 118 | "libicuuc", |
| 119 | "libicui18n", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 120 | "libsonivox", |
| 121 | "libmediadrm", |
| 122 | "android.hidl.token@1.0-utils", |
| 123 | "android.hardware.media.omx@1.0", |
| 124 | "android.hidl.memory@1.0", |
| 125 | ], |
| 126 | |
| 127 | // for memory heap analysis |
| 128 | static_libs: [ |
| 129 | "libc_malloc_debug_backtrace", |
| 130 | ], |
| 131 | |
| 132 | include_dirs: [ |
| 133 | "frameworks/native/include/media/openmax", |
| 134 | "frameworks/av/include/media/", |
| 135 | "frameworks/av/media/libstagefright", |
| 136 | ], |
| 137 | |
| 138 | export_include_dirs: [ |
| 139 | "aidl", |
| 140 | "include", |
| 141 | ], |
| 142 | cflags: [ |
| 143 | "-Werror", |
| 144 | "-Wno-error=deprecated-declarations", |
| 145 | "-Wall", |
| 146 | ], |
| 147 | |
| 148 | sanitize: { |
| 149 | misc_undefined: [ |
| 150 | "unsigned-integer-overflow", |
| 151 | "signed-integer-overflow", |
| 152 | ], |
| 153 | cfi: true, |
| 154 | diag: { |
| 155 | cfi: true, |
| 156 | }, |
| 157 | }, |
| 158 | } |