diff options
Diffstat (limited to 'applets/brightness')
-rw-r--r-- | applets/brightness/meson.build | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/applets/brightness/meson.build b/applets/brightness/meson.build new file mode 100644 index 0000000..a2a7c59 --- /dev/null +++ b/applets/brightness/meson.build @@ -0,0 +1,68 @@ +po_dir = join_paths(meson.source_root(), 'po') + +source_files = files( + 'gpm-common.c', + 'brightness-applet.c' +) + +cflags = [ + '-DMATELOCALEDIR="@0@"'.format(matelocaledir), + '-DG_LOG_DOMAIN="~/mate-power-manager.log"', + '-DGPM_ICONS_DATA="@0@"'.format(mateicons), + '-DBRIGHTNESS_MENU_UI_DIR="@0@"'.format(mateui), + '-DEGG_VERBOSE="GPM_VERBOSE"', + '-DEGG_LOGGING="GPM_LOGGING"', + '-DEGG_CONSOLE="GPM_CONSOLE"' + ] + +executable('mate-brightness-applet', + sources: source_files, + dependencies : [ + gtk, + glib, + cairo, + notify, + dbus, + dbusglib, + matepanel + ], + include_directories : config_inc, + c_args : cflags, + install : true, + install_dir: mateexecdir, +) + +# .service files + +service_data = configuration_data() +service_data.set('LIBEXECDIR', join_paths(prefix, get_option('libexecdir'))) + +configure_file( + input : 'org.mate.panel.applet.BrightnessAppletFactory.service.in', + output : 'org.mate.panel.applet.BrightnessAppletFactory.service', + configuration : service_data, + install : true, + install_dir : join_paths(matedatadir, 'dbus-1/services') +) + +desktop_data = configuration_data() +desktop_data.set('VERSION', meson.project_version()) +desktop_data.set('LIBEXECDIR', join_paths(prefix, get_option('libexecdir'))) +desktop_in_file = configure_file( + input : 'org.mate.BrightnessApplet.mate-panel-applet.desktop.in.in', + output : 'org.mate.BrightnessApplet.mate-panel-applet.desktop.in', + configuration : desktop_data +) + +i18n.merge_file( + input : desktop_in_file, + output : 'org.mate.BrightnessApplet.mate-panel-applet', + type : 'desktop', + po_dir : po_dir, + install : true, + install_dir : join_paths(matedatadir, 'mate-panel', 'applets') +) + +install_data('brightness-applet-menu.xml', + install_dir : join_paths(pkgdatadir, 'ui') +) |