| 1 |
dlna_gst_headers = files('gupnp-dlna-gst-utils.h') |
| 2 |
|
| 3 |
dlna_backend_dir = meson.current_build_dir() |
| 4 |
|
| 5 |
install_headers(dlna_gst_headers, subdir : headers_subdir) |
| 6 |
|
| 7 |
dlna_gst_sources = files( |
| 8 |
'gupnp-dlna-gst-audio-information.c', |
| 9 |
'gupnp-dlna-gst-container-information.c', |
| 10 |
'gupnp-dlna-gst-image-information.c', |
| 11 |
'gupnp-dlna-gst-information.c', |
| 12 |
'gupnp-dlna-gst-info-utils.c', |
| 13 |
'gupnp-dlna-gst-utils.c', |
| 14 |
'gupnp-dlna-gst-video-information.c' |
| 15 |
) |
| 16 |
|
| 17 |
libgupnp_dlna_gst = library( |
| 18 |
'gupnp-dlna-gst-2.0', |
| 19 |
dlna_gst_sources, |
| 20 |
version: library_version, |
| 21 |
dependencies : [ |
| 22 |
glib, |
| 23 |
gio, |
| 24 |
gstreamer_pbu, |
| 25 |
gstreamer, |
| 26 |
gupnp_dlna |
| 27 |
], |
| 28 |
include_directories : [ |
| 29 |
toplevel_incdir, |
| 30 |
metadata_incdir, |
| 31 |
config_h_inc], |
| 32 |
c_args : ['-DG_LOG_DOMAIN="gupnp-dlna-metadata"'], |
| 33 |
install: true |
| 34 |
) |
| 35 |
|
| 36 |
gupnp_dlna_gst = declare_dependency( |
| 37 |
link_with: libgupnp_dlna_gst, |
| 38 |
include_directories : [include_directories('.')] |
| 39 |
) |
| 40 |
|
| 41 |
meson.override_dependency('gupnp-dlna-gst-2.0', gupnp_dlna_gst) |
| 42 |
|
| 43 |
shared_module( |
| 44 |
'gstreamer', |
| 45 |
files( |
| 46 |
'gupnp-dlna-gst-metadata-backend.c', |
| 47 |
'gupnp-dlna-gst-metadata-extractor.c', |
| 48 |
), |
| 49 |
link_with: libgupnp_dlna_gst, |
| 50 |
dependencies : [ |
| 51 |
glib, |
| 52 |
gstreamer_pbu, |
| 53 |
], |
| 54 |
include_directories : [ |
| 55 |
toplevel_incdir, |
| 56 |
metadata_incdir, |
| 57 |
config_h_inc], |
| 58 |
install: true, |
| 59 |
install_dir : metadata_backend_dir |
| 60 |
) |
| 61 |
|
| 62 |
pkg.generate( |
| 63 |
libgupnp_dlna_gst, |
| 64 |
version: meson.project_version(), |
| 65 |
subdirs : 'gupnp-dlna-2.0', |
| 66 |
name: 'gupnp-dlna-gst-2.0', |
| 67 |
description : 'GStreamer specific utils using GUPnP-DLNA', |
| 68 |
libraries: gupnp_dlna, |
| 69 |
requires: gstreamer_pbu |
| 70 |
) |
| 71 |
|
| 72 |
if get_option('introspection') |
| 73 |
gupnp_dlna_gst_gir = gnome.generate_gir( |
| 74 |
libgupnp_dlna_gst, |
| 75 |
sources : dlna_gst_headers + |
| 76 |
dlna_gst_sources, |
| 77 |
namespace : 'GUPnPDLNAGst', |
| 78 |
nsversion : '2.0', |
| 79 |
symbol_prefix : 'gupnp_dlna_gst', |
| 80 |
identifier_prefix : 'GUPnPDLNAGst', |
| 81 |
install: true, |
| 82 |
includes : ['GObject-2.0', gupnp_dlna_gir.get(0), 'Gst-1.0', 'GstPbutils-1.0'] |
| 83 |
) |
| 84 |
endif |