1codecparser_sources = files([ 2 'gstjpeg2000sampling.c', 3 'gstjpegparser.c', 4 'gstmpegvideoparser.c', 5 'gsth264parser.c', 6 'gstvc1parser.c', 7 'gstmpeg4parser.c', 8 'gsth265parser.c', 9 'gstvp8parser.c', 10 'gstvp8rangedecoder.c', 11 'gstvp9parser.c', 12 'vp9utils.c', 13 'parserutils.c', 14 'nalutils.c', 15 'dboolhuff.c', 16 'vp8utils.c', 17 'gstmpegvideometa.c', 18 'gstav1parser.c' 19]) 20codecparser_headers = [ 21 'codecparsers-prelude.h', 22 'gstmpegvideoparser.h', 23 'gsth264parser.h', 24 'gstvc1parser.h', 25 'gstmpeg4parser.h', 26 'gsth265parser.h', 27 'gstvp8parser.h', 28 'gstvp8rangedecoder.h', 29 'gstjpeg2000sampling.h', 30 'gstjpegparser.h', 31 'gstmpegvideometa.h', 32 'gstvp9parser.h', 33 'gstav1parser.h' 34] 35install_headers(codecparser_headers, subdir : 'gstreamer-1.0/gst/codecparsers') 36 37cp_args = [ 38 '-DGST_USE_UNSTABLE_API', 39 '-DBUILDING_GST_CODEC_PARSERS', 40 '-DG_LOG_DOMAIN="GStreamer-CodecParsers"', 41 '-Dvp8_norm=gst_codecparsers_vp8_norm', 42 '-Dvp8dx_start_decode=gst_codecparsers_vp8dx_start_decode', 43 '-Dvp8dx_bool_decoder_fill=gst_codecparsers_vp8dx_bool_decoder_fill', 44] 45 46gstcodecparsers = library('gstcodecparsers-' + api_version, 47 codecparser_sources, 48 c_args : gst_plugins_bad_args + cp_args, 49 include_directories : [configinc, libsinc], 50 version : libversion, 51 soversion : soversion, 52 darwin_versions : osxversion, 53 install : true, 54 dependencies : [gstbase_dep, libm], 55) 56 57pkg_name = 'gstreamer-codecparsers-1.0' 58pkgconfig.generate(gstcodecparsers, 59 libraries : [gst_dep, gstbase_dep], 60 variables : pkgconfig_variables, 61 subdirs : pkgconfig_subdirs, 62 name : pkg_name, 63 description : 'Bitstream parsers for GStreamer elements', 64) 65 66gstcodecparsers_dep = declare_dependency(link_with : gstcodecparsers, 67 include_directories : [libsinc], 68 dependencies : [gstbase_dep]) 69 70libraries += [[pkg_name, {'lib': gstcodecparsers}]] 71meson.override_dependency(pkg_name, gstcodecparsers_dep) 72