diff options
author | Jens Georg <mail@jensge.org> | 2019-10-31 17:06:43 +0100 |
---|---|---|
committer | Jens Georg <jensg@openismus.com> | 2020-08-01 18:14:31 +0200 |
commit | 480f34544ae363685162ddd9cbb571d82adb83ae (patch) | |
tree | b5a4fb46d007bb528a7263901e10b8fe3ef8da29 | |
parent | f7abe5c0038b0e056b6fe5c34437ca6ac977d13a (diff) | |
download | gupnp-dlna-480f34544ae363685162ddd9cbb571d82adb83ae.tar.gz |
build: Add option for default backend
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | meson_options.txt | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 10b305d..8306b98 100644 --- a/meson.build +++ b/meson.build @@ -12,7 +12,7 @@ metadata_backend_dir = join_paths(get_option('prefix'), get_option('libdir'), 'g library_version = '3.0.0' config = configuration_data() -config.set_quoted('GUPNP_DLNA_DEFAULT_METADATA_BACKEND', 'gstreamer') +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) diff --git a/meson_options.txt b/meson_options.txt index 60361a6..5036081 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,2 +1,3 @@ option('gstreamer_backend', type : 'feature', value: 'enabled') +option('default_backend', type: 'string', value: 'gstreamer') option('introspection', type: 'boolean', value: 'true') |