From 1db4b409322e559a3d3a03677dd482a0613f3b29 Mon Sep 17 00:00:00 2001 From: "Victor A. Santos" Date: Mon, 30 Mar 2020 18:54:42 -0300 Subject: add meson project fix indentation in some files --- applets/brightness/config.h.in | 32 +++++++++++++++++++++++ applets/brightness/meson.build | 59 ++++++++++++++++++++++++++++++++++++++++++ applets/inhibit/config.h.in | 32 +++++++++++++++++++++++ applets/inhibit/meson.build | 58 +++++++++++++++++++++++++++++++++++++++++ applets/meson.build | 2 ++ 5 files changed, 183 insertions(+) create mode 100644 applets/brightness/config.h.in create mode 100644 applets/brightness/meson.build create mode 100644 applets/inhibit/config.h.in create mode 100644 applets/inhibit/meson.build create mode 100644 applets/meson.build (limited to 'applets') diff --git a/applets/brightness/config.h.in b/applets/brightness/config.h.in new file mode 100644 index 0000000..8753c98 --- /dev/null +++ b/applets/brightness/config.h.in @@ -0,0 +1,32 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * + * Copyright (C) 2020 Victor A. Santos + * + * Licensed under the GNU General Public License Version 2 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/* Project */ +#define VERSION "@version@" + +/* Directories */ +#define SYSCONFDIR "@sysconfdir@" +#define DATADIR "@datadir@" +#define BINDIR "@bindir@" +#define SBINDIR "@sbindir@" +#define MATELOCALEDIR "@localedir@" +#define GPM_ICONS_DATA "@iconsdir@" +#define BRIGHTNESS_MENU_UI_DIR "@uidir@" diff --git a/applets/brightness/meson.build b/applets/brightness/meson.build new file mode 100644 index 0000000..3394551 --- /dev/null +++ b/applets/brightness/meson.build @@ -0,0 +1,59 @@ +conf_data = configuration_data() +conf_data.set('version', meson.project_version()) +conf_data.set('sysconfdir', sysconfdir_path) +conf_data.set('datadir', datadir_path) +conf_data.set('bindir', bindir_path) +conf_data.set('sbindir', sbindir_path) +conf_data.set('localedir', localedir_path) +conf_data.set('iconsdir', iconsdir_path) +conf_data.set('uidir', uidir_path) +conf_data.set('gettext_package', meson.project_name()) + +configure_file(input: 'config.h.in', output: 'config.h', configuration: conf_data) + +executable( + 'mate-brightness-applet', + [ + 'brightness-applet.c', + 'gpm-common.c', + ], + dependencies: dependencies, + install: true, + install_dir: libexecdir_path +) + +desktop_data = configuration_data() +desktop_data.set('LIBEXECDIR', libexecdir_path) +desktop_data.set('VERSION', meson.project_version()) + +desktop_in = 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, + output: 'org.mate.BrightnessApplet.mate-panel-applet.desktop', + type: 'desktop', + po_dir: podir, + install: true, + install_dir: appletdir_path, +) + +service_data = configuration_data() +service_data.set('LIBEXECDIR', libexecdir_path) + +service_file = configure_file( + input: 'org.mate.panel.applet.BrightnessAppletFactory.service.in', + output: 'org.mate.panel.applet.BrightnessAppletFactory.service', + configuration: service_data, + install: true, + install_dir: servicedir_path +) + +install_data( + ['brightness-applet-menu.xml'], + install_dir: uidir_path +) + diff --git a/applets/inhibit/config.h.in b/applets/inhibit/config.h.in new file mode 100644 index 0000000..ccff4c9 --- /dev/null +++ b/applets/inhibit/config.h.in @@ -0,0 +1,32 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * + * Copyright (C) 2020 Victor A. Santos + * + * Licensed under the GNU General Public License Version 2 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/* Project */ +#define VERSION "@version@" + +/* Directories */ +#define SYSCONFDIR "@sysconfdir@" +#define DATADIR "@datadir@" +#define BINDIR "@bindir@" +#define SBINDIR "@sbindir@" +#define MATELOCALEDIR "@localedir@" +#define GPM_ICONS_DATA "@iconsdir@" +#define INHIBIT_MENU_UI_DIR "@uidir@" diff --git a/applets/inhibit/meson.build b/applets/inhibit/meson.build new file mode 100644 index 0000000..ed807df --- /dev/null +++ b/applets/inhibit/meson.build @@ -0,0 +1,58 @@ +conf_data = configuration_data() +conf_data.set('version', meson.project_version()) +conf_data.set('sysconfdir', sysconfdir_path) +conf_data.set('datadir', datadir_path) +conf_data.set('bindir', bindir_path) +conf_data.set('sbindir', sbindir_path) +conf_data.set('localedir', localedir_path) +conf_data.set('iconsdir', iconsdir_path) +conf_data.set('uidir', uidir_path) +conf_data.set('gettext_package', meson.project_name()) + +configure_file(input: 'config.h.in', output: 'config.h', configuration: conf_data) + +executable( + 'mate-inhibit-applet', + [ + 'inhibit-applet.c', + 'gpm-common.c', + ], + dependencies: dependencies, + install: true, + install_dir: libexecdir_path +) + +desktop_data = configuration_data() +desktop_data.set('LIBEXECDIR', libexecdir_path) +desktop_data.set('VERSION', meson.project_version()) + +desktop_in = configure_file( + input: 'org.mate.InhibitApplet.mate-panel-applet.desktop.in.in', + output: 'org.mate.InhibitApplet.mate-panel-applet.desktop.in', + configuration: desktop_data +) + +i18n.merge_file( + input: desktop_in, + output: 'org.mate.InhibitApplet.mate-panel-applet.desktop', + type: 'desktop', + po_dir: podir, + install: true, + install_dir: appletdir_path, +) + +service_data = configuration_data() +service_data.set('LIBEXECDIR', libexecdir_path) + +service_file = configure_file( + input: 'org.mate.panel.applet.InhibitAppletFactory.service.in', + output: 'org.mate.panel.applet.InhibitAppletFactory.service', + configuration: service_data, + install: true, + install_dir: servicedir_path +) + +install_data( + ['inhibit-applet-menu.xml'], + install_dir: uidir_path +) diff --git a/applets/meson.build b/applets/meson.build new file mode 100644 index 0000000..521132d --- /dev/null +++ b/applets/meson.build @@ -0,0 +1,2 @@ +subdir('brightness') +subdir('inhibit') -- cgit v1.2.1