|
| 1 | +project('gst-airplay', 'c', version : '0.1', license : 'GPL') |
| 2 | + |
| 3 | +plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0') |
| 4 | + |
| 5 | +cc = meson.get_compiler('c') |
| 6 | + |
| 7 | +gst_version = meson.project_version() |
| 8 | + |
| 9 | +api_version = '1.0' |
| 10 | + |
| 11 | +gio_dep = dependency('gio-2.0') |
| 12 | + |
| 13 | +gst_dep = dependency('gstreamer-1.0', |
| 14 | + fallback : ['gstreamer', 'gst_dep']) |
| 15 | +gstbase_dep = dependency('gstreamer-base-1.0', |
| 16 | + fallback : ['gstreamer', 'gst_base_dep']) |
| 17 | +gstvideo_dep = dependency('gstreamer-video-1.0', |
| 18 | + fallback : ['gst-plugins-base', 'video_dep']) |
| 19 | + |
| 20 | +plugin_c_args = ['-DHAVE_CONFIG_H'] |
| 21 | + |
| 22 | +cdata = configuration_data() |
| 23 | +cdata.set_quoted('PACKAGE_VERSION', gst_version) |
| 24 | +cdata.set_quoted('PACKAGE', 'gst-airplay-plugin') |
| 25 | +cdata.set_quoted('GST_LICENSE', 'GPL') |
| 26 | +cdata.set_quoted('GST_API_VERSION', api_version) |
| 27 | +cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer airplay Plug-ins') |
| 28 | +cdata.set_quoted('GST_PACKAGE_ORIGIN', 'https://github.com/knuesel/gst-airplay') |
| 29 | +configure_file(output : 'config.h', configuration : cdata) |
| 30 | + |
| 31 | +#gstaudio_dep = dependency('gstreamer-audio-1.0', |
| 32 | +# fallback: ['gst-plugins-base', 'audio_dep']) |
| 33 | + |
| 34 | +# Video source |
| 35 | +airplay_sources = [ |
| 36 | + 'src/gstairplay.c', |
| 37 | + 'src/gstairplaysrc.c' |
| 38 | + ] |
| 39 | + |
| 40 | +libairplaydep = dependency('airplay') |
| 41 | + |
| 42 | +gstairplay = library('gstairplay', |
| 43 | + airplay_sources, |
| 44 | + c_args: plugin_c_args, |
| 45 | + dependencies : [gstbase_dep, gstvideo_dep, libairplaydep, gio_dep], |
| 46 | + install : true, |
| 47 | + install_dir : plugins_install_dir, |
| 48 | +) |
0 commit comments