diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/media/meson.build | 23 | ||||
-rw-r--r-- | modules/meson.build | 2 |
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/media/meson.build b/modules/media/meson.build new file mode 100644 index 0000000000..efab5a3b3e --- /dev/null +++ b/modules/media/meson.build @@ -0,0 +1,23 @@ +all_media_backends = [ +] + +enabled_media_backends = get_option('media').split(',') + +if enabled_media_backends.contains('none') + media_backends = [] +elif enabled_media_backends.contains('all') + media_backends = all_media_backends +else + media_backends = [] + foreach b: enabled_media_backends + if all_media_backends.contains(b) + media_backends += b + else + error('No media backend named "@0@" exists.'.format (b)) + endif + endforeach +endif + +media_subdir = 'gtk-4.0/@0@/media'.format(gtk_binary_version) +media_install_dir = join_paths(get_option('libdir'), media_subdir) + diff --git a/modules/meson.build b/modules/meson.build index cde966a094..670f9fd96c 100644 --- a/modules/meson.build +++ b/modules/meson.build @@ -1,3 +1,5 @@ if os_unix subdir('printbackends') endif + +subdir('media') |