| cc_library_headers { |
| name: "libstagefright_headers", |
| export_include_dirs: ["include"], |
| vendor_available: true, |
| } |
| |
| cc_library_static { |
| name: "libstagefright_esds", |
| |
| srcs: ["ESDS.cpp"], |
| |
| cflags: [ |
| "-Werror", |
| "-Wall", |
| ], |
| sanitize: { |
| misc_undefined: [ |
| "signed-integer-overflow", |
| ], |
| cfi: true, |
| }, |
| shared_libs: [ |
| "libstagefright_foundation", |
| "libutils" |
| ], |
| } |
| |
| cc_library_static { |
| name: "libstagefright_metadatautils", |
| |
| srcs: ["MetaDataUtils.cpp"], |
| |
| cflags: [ |
| "-Werror", |
| "-Wall", |
| ], |
| sanitize: { |
| misc_undefined: [ |
| "signed-integer-overflow", |
| ], |
| cfi: true, |
| }, |
| |
| shared_libs: ["libmedia", "libmediandk"], |
| } |
| |
| cc_library_shared { |
| name: "libstagefright_codecbase", |
| |
| export_include_dirs: ["include"], |
| |
| srcs: [ |
| "CodecBase.cpp", |
| "FrameRenderTracker.cpp", |
| "MediaCodecListWriter.cpp", |
| ], |
| |
| cflags: [ |
| "-Werror", |
| "-Wall", |
| ], |
| |
| header_libs: [ |
| "libmediadrm_headers", |
| ], |
| |
| shared_libs: [ |
| "libgui", |
| "liblog", |
| "libmedia_codeclist", |
| "libstagefright_foundation", |
| "libui", |
| "libutils", |
| "android.hardware.cas.native@1.0", |
| ], |
| |
| sanitize: { |
| cfi: true, |
| misc_undefined: [ |
| "unsigned-integer-overflow", |
| "signed-integer-overflow", |
| ], |
| }, |
| } |
| |
| cc_library_static { |
| name: "libstagefright_mpeg2extractor", |
| |
| srcs: [ |
| "Utils.cpp", |
| "MediaSource.cpp", |
| "HevcUtils.cpp", |
| ], |
| |
| shared_libs: [ |
| "liblog", |
| "libmedia", |
| "libmedia_omx", |
| ], |
| |
| export_include_dirs: [ |
| "include", |
| ], |
| |
| cflags: [ |
| "-Wno-multichar", |
| "-Werror", |
| "-Wno-error=deprecated-declarations", |
| "-Wall", |
| ], |
| |
| sanitize: { |
| cfi: true, |
| misc_undefined: [ |
| "unsigned-integer-overflow", |
| "signed-integer-overflow", |
| ], |
| }, |
| } |
| |
| cc_library { |
| name: "libstagefright", |
| |
| srcs: [ |
| "AACWriter.cpp", |
| "ACodec.cpp", |
| "ACodecBufferChannel.cpp", |
| "AHierarchicalStateMachine.cpp", |
| "AMRWriter.cpp", |
| "AudioSource.cpp", |
| "BufferImpl.cpp", |
| "CallbackDataSource.cpp", |
| "CallbackMediaSource.cpp", |
| "CameraSource.cpp", |
| "CameraSourceTimeLapse.cpp", |
| "DataConverter.cpp", |
| "FrameDecoder.cpp", |
| "HevcUtils.cpp", |
| "InterfaceUtils.cpp", |
| "JPEGSource.cpp", |
| "MPEG2TSWriter.cpp", |
| "MPEG4Writer.cpp", |
| "MediaAdapter.cpp", |
| "MediaClock.cpp", |
| "MediaCodec.cpp", |
| "MediaCodecList.cpp", |
| "MediaCodecListOverrides.cpp", |
| "MediaCodecSource.cpp", |
| "MediaExtractor.cpp", |
| "MediaExtractorFactory.cpp", |
| "MediaSource.cpp", |
| "MediaSync.cpp", |
| "MediaTrack.cpp", |
| "MediaMuxer.cpp", |
| "NuMediaExtractor.cpp", |
| "OggWriter.cpp", |
| "OMXClient.cpp", |
| "OmxInfoBuilder.cpp", |
| "RemoteMediaExtractor.cpp", |
| "RemoteMediaSource.cpp", |
| "SimpleDecodingSource.cpp", |
| "SkipCutBuffer.cpp", |
| "StagefrightMediaScanner.cpp", |
| "StagefrightPluginLoader.cpp", |
| "SurfaceUtils.cpp", |
| "ThrottledSource.cpp", |
| "Utils.cpp", |
| "VideoFrameSchedulerBase.cpp", |
| "VideoFrameScheduler.cpp", |
| ], |
| |
| shared_libs: [ |
| "libaudioutils", |
| "libbase", |
| "libbinder", |
| "libcamera_client", |
| "libcutils", |
| "libdatasource", |
| "libdl", |
| "libdl_android", |
| "libgui", |
| "liblog", |
| "libmedia", |
| "libmedia_codeclist", |
| "libmedia_omx", |
| "libmedia_omx_client", |
| "libaudioclient", |
| "libmediametrics", |
| "libmediautils", |
| "libui", |
| "libutils", |
| "libmedia_helper", |
| "libstagefright_codecbase", |
| "libstagefright_foundation", |
| "libstagefright_omx_utils", |
| "libRScpp", |
| "libhidlallocatorutils", |
| "libhidlbase", |
| "libhidlmemory", |
| "android.hidl.allocator@1.0", |
| "android.hardware.cas.native@1.0", |
| "android.hardware.media.omx@1.0", |
| ], |
| |
| static_libs: [ |
| "libstagefright_esds", |
| "libstagefright_color_conversion", |
| "libyuv_static", |
| "libstagefright_mediafilter", |
| "libstagefright_webm", |
| "libstagefright_timedtext", |
| "libogg", |
| "libwebm", |
| "libstagefright_id3", |
| ], |
| |
| header_libs:[ |
| "libmediadrm_headers", |
| "libnativeloader-headers", |
| "libstagefright_xmlparser_headers", |
| "media_ndk_headers", |
| ], |
| |
| export_shared_lib_headers: [ |
| "libgui", |
| "libhidlmemory", |
| "libmedia", |
| "android.hidl.allocator@1.0", |
| ], |
| |
| export_include_dirs: [ |
| "include", |
| ], |
| |
| cflags: [ |
| "-Wno-multichar", |
| "-Werror", |
| "-Wno-error=deprecated-declarations", |
| "-Wall", |
| ], |
| |
| version_script: "exports.lds", |
| |
| product_variables: { |
| debuggable: { |
| // enable experiments only in userdebug and eng builds |
| cflags: ["-DENABLE_STAGEFRIGHT_EXPERIMENTS"], |
| }, |
| }, |
| |
| sanitize: { |
| cfi: true, |
| misc_undefined: [ |
| "unsigned-integer-overflow", |
| "signed-integer-overflow", |
| ], |
| }, |
| } |