Home | History | Annotate | Download | only in libstagefright
      1 cc_library_headers {
      2     name: "libstagefright_headers",
      3     export_include_dirs: ["include"],
      4     vendor_available: true,
      5 }
      6 
      7 cc_library_static {
      8     name: "libstagefright_esds",
      9 
     10     srcs: ["ESDS.cpp"],
     11 
     12     cflags: [
     13         "-Werror",
     14         "-Wall",
     15     ],
     16     sanitize: {
     17         misc_undefined: [
     18             "signed-integer-overflow",
     19         ],
     20         cfi: true,
     21     },
     22 
     23     shared_libs: ["libmedia"],
     24 }
     25 
     26 cc_library_static {
     27     name: "libstagefright_metadatautils",
     28 
     29     srcs: ["MetaDataUtils.cpp"],
     30 
     31     cflags: [
     32         "-Werror",
     33         "-Wall",
     34     ],
     35     sanitize: {
     36         misc_undefined: [
     37             "signed-integer-overflow",
     38         ],
     39         cfi: true,
     40     },
     41 
     42     shared_libs: ["libmedia", "libmediandk"],
     43 }
     44 
     45 cc_library_shared {
     46     name: "libstagefright_codecbase",
     47 
     48     export_include_dirs: ["include"],
     49 
     50     srcs: [
     51         "CodecBase.cpp",
     52         "FrameRenderTracker.cpp",
     53         "MediaCodecListWriter.cpp",
     54     ],
     55 
     56     cflags: [
     57         "-Werror",
     58         "-Wall",
     59     ],
     60 
     61     shared_libs: [
     62         "libgui",
     63         "liblog",
     64         "libmedia_omx",
     65         "libstagefright_foundation",
     66         "libui",
     67         "libutils",
     68         "android.hardware.cas.native (a] 1.0",
     69     ],
     70 
     71     sanitize: {
     72         cfi: true,
     73         misc_undefined: [
     74             "unsigned-integer-overflow",
     75             "signed-integer-overflow",
     76         ],
     77     },
     78 }
     79 
     80 cc_library_static {
     81     name: "libstagefright_mpeg2extractor",
     82 
     83     srcs: [
     84         "Utils.cpp",
     85         "MediaSource.cpp",
     86         "HevcUtils.cpp",
     87     ],
     88 
     89     shared_libs: [
     90         "liblog",
     91         "libmedia",
     92         "libmedia_omx",
     93     ],
     94 
     95     export_include_dirs: [
     96         "include",
     97     ],
     98 
     99     cflags: [
    100         "-Wno-multichar",
    101         "-Werror",
    102         "-Wno-error=deprecated-declarations",
    103         "-Wall",
    104     ],
    105 
    106     sanitize: {
    107         cfi: true,
    108         misc_undefined: [
    109             "unsigned-integer-overflow",
    110             "signed-integer-overflow",
    111         ],
    112     },
    113 }
    114 
    115 cc_library {
    116     name: "libstagefright",
    117 
    118     srcs: [
    119         "AACWriter.cpp",
    120         "ACodec.cpp",
    121         "ACodecBufferChannel.cpp",
    122         "AHierarchicalStateMachine.cpp",
    123         "AMRWriter.cpp",
    124         "AudioPlayer.cpp",
    125         "AudioSource.cpp",
    126         "BufferImpl.cpp",
    127         "CallbackDataSource.cpp",
    128         "CallbackMediaSource.cpp",
    129         "CameraSource.cpp",
    130         "CameraSourceTimeLapse.cpp",
    131         "DataConverter.cpp",
    132         "DataSourceBase.cpp",
    133         "DataSourceFactory.cpp",
    134         "DataURISource.cpp",
    135         "ClearFileSource.cpp",
    136         "FileSource.cpp",
    137         "FrameDecoder.cpp",
    138         "HTTPBase.cpp",
    139         "HevcUtils.cpp",
    140         "InterfaceUtils.cpp",
    141         "JPEGSource.cpp",
    142         "MPEG2TSWriter.cpp",
    143         "MPEG4Writer.cpp",
    144         "MediaAdapter.cpp",
    145         "MediaClock.cpp",
    146         "MediaCodec.cpp",
    147         "MediaCodecList.cpp",
    148         "MediaCodecListOverrides.cpp",
    149         "MediaCodecSource.cpp",
    150         "MediaExtractor.cpp",
    151         "MediaExtractorFactory.cpp",
    152         "MediaSource.cpp",
    153         "MediaSync.cpp",
    154         "MediaTrack.cpp",
    155         "http/ClearMediaHTTP.cpp",
    156         "http/MediaHTTP.cpp",
    157         "MediaMuxer.cpp",
    158         "NuCachedSource2.cpp",
    159         "NuMediaExtractor.cpp",
    160         "OggWriter.cpp",
    161         "OMXClient.cpp",
    162         "OmxInfoBuilder.cpp",
    163         "RemoteMediaExtractor.cpp",
    164         "RemoteMediaSource.cpp",
    165         "SimpleDecodingSource.cpp",
    166         "SkipCutBuffer.cpp",
    167         "StagefrightMediaScanner.cpp",
    168         "StagefrightMetadataRetriever.cpp",
    169         "StagefrightPluginLoader.cpp",
    170         "SurfaceUtils.cpp",
    171         "Utils.cpp",
    172         "ThrottledSource.cpp",
    173         "VideoFrameSchedulerBase.cpp",
    174         "VideoFrameScheduler.cpp",
    175     ],
    176 
    177     shared_libs: [
    178         "libaudioutils",
    179         "libbase",
    180         "libbinder",
    181         "libcamera_client",
    182         "libcutils",
    183         "libdl",
    184         "libdl_android",
    185         "libdrmframework",
    186         "libgui",
    187         "liblog",
    188         "libmedia",
    189         "libmedia_omx",
    190         "libmedia_omx_client",
    191         "libaudioclient",
    192         "libmediametrics",
    193         "libmediautils",
    194         "libui",
    195         "libutils",
    196         "libmedia_helper",
    197         "libstagefright_codecbase",
    198         "libstagefright_foundation",
    199         "libstagefright_omx_utils",
    200         "libRScpp",
    201         "libhidlallocatorutils",
    202         "libhidlbase",
    203         "libhidlmemory",
    204         "android.hidl.allocator (a] 1.0",
    205         "android.hardware.cas.native (a] 1.0",
    206         "android.hardware.media.omx (a] 1.0",
    207     ],
    208 
    209     static_libs: [
    210         "libstagefright_color_conversion",
    211         "libyuv_static",
    212         "libstagefright_mediafilter",
    213         "libstagefright_webm",
    214         "libstagefright_timedtext",
    215         "libogg",
    216         "libwebm",
    217         "libstagefright_esds",
    218         "libstagefright_id3",
    219         "libFLAC",
    220     ],
    221 
    222     header_libs:[
    223         "libnativeloader-dummy-headers",
    224         "libstagefright_xmlparser_headers",
    225         "media_ndk_headers",
    226     ],
    227 
    228     export_shared_lib_headers: [
    229         "libgui",
    230         "libhidlmemory",
    231         "libmedia",
    232         "android.hidl.allocator (a] 1.0",
    233     ],
    234 
    235     export_include_dirs: [
    236         "include",
    237     ],
    238 
    239     cflags: [
    240         "-Wno-multichar",
    241         "-Werror",
    242         "-Wno-error=deprecated-declarations",
    243         "-Wall",
    244     ],
    245 
    246     version_script: "exports.lds",
    247 
    248     product_variables: {
    249         debuggable: {
    250             // enable experiments only in userdebug and eng builds
    251             cflags: ["-DENABLE_STAGEFRIGHT_EXPERIMENTS"],
    252         },
    253     },
    254 
    255     sanitize: {
    256         cfi: true,
    257         misc_undefined: [
    258             "unsigned-integer-overflow",
    259             "signed-integer-overflow",
    260         ],
    261     },
    262 }
    263 
    264 cc_library_static {
    265     name: "libstagefright_player2",
    266 
    267     srcs: [
    268         "ClearFileSource.cpp",
    269         "DataURISource.cpp",
    270         "DataSourceBase.cpp",
    271         "HTTPBase.cpp",
    272         "HevcUtils.cpp",
    273         "MediaClock.cpp",
    274         "MediaSource.cpp",
    275         "NdkUtils.cpp",
    276         "Utils.cpp",
    277         "VideoFrameSchedulerBase.cpp",
    278         "VideoFrameScheduler2.cpp",
    279         "http/ClearMediaHTTP.cpp",
    280     ],
    281 
    282     shared_libs: [
    283         "libgui",
    284         "liblog",
    285         "libnetd_client",
    286         "libutils",
    287         "libstagefright_foundation",
    288         "libandroid",
    289     ],
    290 
    291     static_libs: [
    292         "libmedia_player2_util",
    293         "libmedia2_jni_core",
    294     ],
    295 
    296     export_include_dirs: [
    297         "include",
    298     ],
    299 
    300     cflags: [
    301         "-Wno-multichar",
    302         "-Werror",
    303         "-Wno-error=deprecated-declarations",
    304         "-Wall",
    305     ],
    306 
    307     product_variables: {
    308         debuggable: {
    309             // enable experiments only in userdebug and eng builds
    310             cflags: ["-DENABLE_STAGEFRIGHT_EXPERIMENTS"],
    311         },
    312     },
    313 
    314     sanitize: {
    315         cfi: true,
    316         misc_undefined: [
    317             "unsigned-integer-overflow",
    318             "signed-integer-overflow",
    319         ],
    320     },
    321 }
    322 
    323