diff options
author | Jens Georg <mail@jensge.org> | 2021-05-26 22:56:38 +0000 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2021-05-26 22:56:38 +0000 |
commit | eb28c34fd624302b787287efc88e256f5bf48578 (patch) | |
tree | 6bc917599f2620fe819ad149d746decdba998d72 /meson.build | |
parent | 3330b34e49c8063c1d11f57168bdd1571cd9fa8d (diff) | |
download | gupnp-dlna-eb28c34fd624302b787287efc88e256f5bf48578.tar.gz |
build: Add Meson build support
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..3819ef8 --- /dev/null +++ b/meson.build @@ -0,0 +1,67 @@ +project( + 'gupnp-dlna', + 'c', + version: '0.11.0' +) + +pkg = import('pkgconfig') +gnome = import('gnome') + +shareddir = join_paths(get_option('prefix'), get_option('datadir'), 'gupnp-dlna-2.0') +metadata_backend_dir = join_paths(get_option('prefix'), get_option('libdir'), 'gupnp-dlna') +library_version = '3.0.0' + +config = configuration_data() +config.set_quoted('GUPNP_DLNA_DEFAULT_METADATA_BACKEND', get_option('default_backend')) +config.set_quoted('GUPNP_DLNA_DEFAULT_METADATA_BACKEND_DIR', metadata_backend_dir) + +configure_file(output: 'config.h', configuration: config) +add_global_arguments('-DHAVE_CONFIG_H=1', language : 'c') + +glib = dependency('glib-2.0') +gobject = dependency('gobject-2.0') +gio = dependency('gio-2.0') +gmodule = dependency('gmodule-2.0') +xml = dependency('libxml-2.0') +config_dep = declare_dependency( + include_directories : include_directories('.') +) + +gstreamer = dependency('gstreamer-1.0', required: get_option('gstreamer_backend'), disabler : true) +gstreamer_pbu = dependency('gstreamer-pbutils-1.0', required: get_option('gstreamer_backend'), disabler : true) + +# default is relative to the source dir; if test_media is absolute, join_paths() will return that instead +media_dir = join_paths(meson.current_source_dir(), get_option('test_media')) +dlna_profile_dir = join_paths(meson.current_source_dir(), 'data') + +install_data( + files( + 'data/dlna-profiles.rng', + 'data/aac.xml', + 'data/ac3.xml', + 'data/amr.xml', + 'data/avc.xml', + 'data/common.xml', + 'data/jpeg.xml', + 'data/lpcm.xml', + 'data/mp3.xml', + 'data/mpeg1.xml', + 'data/mpeg4.xml', + 'data/mpeg-common.xml', + 'data/mpeg-ps.xml', + 'data/mpeg-ts.xml', + 'data/png.xml', + 'data/wma.xml' + ), + install_dir : join_paths(shareddir, 'dlna-profiles') +) + +subdir('libgupnp-dlna') +subdir('tools') +if get_option('introspection') + if get_option('vapi') + subdir('vala') + endif +endif +subdir('doc') +subdir('tests') |