| Dan Willemsen | 442a2ee | 2016-08-26 17:52:29 -0700 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libmedia_helper", |
| 3 | srcs: ["AudioParameter.cpp"], |
| 4 | cflags: [ |
| 5 | "-Werror", |
| 6 | "-Wno-error=deprecated-declarations", |
| 7 | "-Wall", |
| 8 | ], |
| 9 | clang: true, |
| 10 | } |
| Colin Cross | 8c9f6f7 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 11 | |
| 12 | cc_library_shared { |
| 13 | name: "libmedia", |
| 14 | |
| 15 | srcs: [ |
| 16 | "IDataSource.cpp", |
| 17 | "IHDCP.cpp", |
| 18 | "mediaplayer.cpp", |
| 19 | "IMediaCodecList.cpp", |
| 20 | "IMediaCodecService.cpp", |
| 21 | "IMediaHTTPConnection.cpp", |
| 22 | "IMediaHTTPService.cpp", |
| 23 | "IMediaExtractor.cpp", |
| 24 | "IMediaExtractorService.cpp", |
| 25 | "IMediaPlayerService.cpp", |
| 26 | "IMediaPlayerClient.cpp", |
| 27 | "IMediaRecorderClient.cpp", |
| 28 | "IMediaPlayer.cpp", |
| 29 | "IMediaRecorder.cpp", |
| 30 | "IMediaSource.cpp", |
| 31 | "IRemoteDisplay.cpp", |
| 32 | "IRemoteDisplayClient.cpp", |
| 33 | "IResourceManagerClient.cpp", |
| 34 | "IResourceManagerService.cpp", |
| 35 | "IStreamSource.cpp", |
| 36 | "MediaCodecInfo.cpp", |
| 37 | "MediaDefs.cpp", |
| 38 | "MediaUtils.cpp", |
| 39 | "Metadata.cpp", |
| 40 | "mediarecorder.cpp", |
| 41 | "IMediaMetadataRetriever.cpp", |
| 42 | "mediametadataretriever.cpp", |
| 43 | "MidiIoWrapper.cpp", |
| 44 | "JetPlayer.cpp", |
| 45 | "IOMX.cpp", |
| 46 | "MediaScanner.cpp", |
| 47 | "MediaScannerClient.cpp", |
| 48 | "CharacterEncodingDetector.cpp", |
| 49 | "IMediaDeathNotifier.cpp", |
| 50 | "MediaProfiles.cpp", |
| 51 | "MediaResource.cpp", |
| 52 | "MediaResourcePolicy.cpp", |
| 53 | "Visualizer.cpp", |
| 54 | "StringArray.cpp", |
| 55 | ], |
| 56 | |
| 57 | shared_libs: [ |
| 58 | "libui", |
| 59 | "liblog", |
| 60 | "libcutils", |
| 61 | "libutils", |
| 62 | "libbinder", |
| 63 | "libsonivox", |
| 64 | "libicuuc", |
| 65 | "libicui18n", |
| 66 | "libexpat", |
| 67 | "libcamera_client", |
| 68 | "libstagefright_foundation", |
| 69 | "libgui", |
| 70 | "libdl", |
| 71 | "libaudioutils", |
| 72 | "libaudioclient", |
| 73 | ], |
| 74 | |
| 75 | header_libs: ["libaudioeffects"], |
| 76 | |
| Colin Cross | cc19bbb | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 77 | export_shared_lib_headers: [ |
| 78 | "libbinder", |
| 79 | "libicuuc", |
| 80 | "libicui18n", |
| 81 | ], |
| Colin Cross | 8c9f6f7 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 82 | |
| 83 | whole_static_libs: ["libmedia_helper"], |
| 84 | |
| 85 | // for memory heap analysis |
| 86 | static_libs: [ |
| 87 | "libc_malloc_debug_backtrace", |
| 88 | ], |
| 89 | |
| 90 | include_dirs: [ |
| 91 | "frameworks/native/include/media/openmax", |
| 92 | "frameworks/av/include/media/", |
| 93 | "frameworks/av/media/libstagefright", |
| 94 | ], |
| 95 | |
| 96 | cflags: [ |
| 97 | "-Werror", |
| 98 | "-Wno-error=deprecated-declarations", |
| 99 | "-Wall", |
| 100 | ], |
| 101 | |
| 102 | sanitize: { |
| 103 | misc_undefined: [ |
| 104 | "unsigned-integer-overflow", |
| 105 | "signed-integer-overflow", |
| 106 | ], |
| 107 | }, |
| 108 | } |