phosh-media-player/meson.build
Guido Günther 6db441683d example: Add example Vala quick setting plugin
Add a simple example future plugins can be based on together
with the needed build files and ci.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-06-07 11:55:03 +02:00

42 lines
1.2 KiB
Meson

project(
'phosh-vala-plugins',
'vala',
version: '0.48.0',
license: 'GPL-3.0-or-later',
meson_version: '>= 1.2.0',
default_options: ['warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11'],
)
prefix = get_option('prefix')
libdir = prefix / get_option('libdir')
datadir = prefix / get_option('datadir')
vapi_dir = meson.project_source_root() / 'vapi'
add_project_arguments(['--vapidir', vapi_dir], language: 'vala')
gnome = import('gnome')
i18n = import('i18n')
pkgconfig = import('pkgconfig')
phosh_dep = dependency('phosh-plugins', version: '>= 0.45')
lockscreen_plugins_dir = phosh_dep.get_variable('lockscreen_plugins_dir')
quick_setting_plugins_dir = phosh_dep.get_variable('quick_setting_plugins_dir')
common_deps = [
dependency('gio-2.0'),
dependency('gtk+-3.0'),
dependency('libphosh-0.45'),
# For our bundles phosh-0.45 vapi
dependency('gnome-desktop-3.0'),
dependency('libnm'),
]
common_c_args = ['-include', 'phosh-vala-plugins-config.h', '-DG_LOG_USE_STRUCTURED']
conf = configuration_data()
conf.set_quoted('G_LOG_DOMAIN', meson.project_name())
configure_file(output: 'phosh-vala-plugins-config.h', configuration: conf)
subdir('po')
# The example plugin
subdir('vala-quick-setting')