From 728d1cbcfae014bfdfc559d2a58f40036a08d0d1 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 10 Sep 2020 10:12:53 +0200 Subject: Revert "add meson project" This reverts commit 1db4b409322e559a3d3a03677dd482a0613f3b29. --- src/config.h.in | 35 ------------- src/meson.build | 151 -------------------------------------------------------- 2 files changed, 186 deletions(-) delete mode 100644 src/config.h.in delete mode 100644 src/meson.build (limited to 'src') diff --git a/src/config.h.in b/src/config.h.in deleted file mode 100644 index 25af2cd..0000000 --- a/src/config.h.in +++ /dev/null @@ -1,35 +0,0 @@ -/* -*- 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 GTKBUILDERDIR "@datadir@" - -/* Features */ -#mesondefine WITH_KEYRING diff --git a/src/meson.build b/src/meson.build deleted file mode 100644 index 0c72490..0000000 --- a/src/meson.build +++ /dev/null @@ -1,151 +0,0 @@ -# configuration -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('gettext_package', meson.project_name()) -conf_data.set('WITH_KEYRING', get_option('keyring').enabled()) - -configure_file(input: 'config.h.in', output: 'config.h', configuration: conf_data) - -gpm_marshal = gnome.genmarshal('gpm-marshal', sources: 'gpm-marshal.list', prefix: 'gpm_marshal') - -dbus_binding_powermanager = custom_target('org.mate.PowerManager.h', - input: 'org.mate.PowerManager.xml', - output: 'org.mate.PowerManager.h', - command: [dbus_binding_tool, '--prefix=gpm_manager', '--mode=glib-server', '--output=@OUTPUT@', '@INPUT@'] -) - -dbus_binding_backlight = custom_target('org.mate.PowerManager.Backlight.h', - input: 'org.mate.PowerManager.Backlight.xml', - output: 'org.mate.PowerManager.Backlight.h', - command: [dbus_binding_tool, '--prefix=gpm_backlight', '--mode=glib-server', '--output=@OUTPUT@', '@INPUT@'] -) - -dbus_binding_kbdbacklight = custom_target('org.mate.PowerManager.KbdBacklight.h', - input: 'org.mate.PowerManager.KbdBacklight.xml', - output: 'org.mate.PowerManager.KbdBacklight.h', - command: [dbus_binding_tool, '--prefix=gpm_kbd_backlight', '--mode=glib-server', '--output=@OUTPUT@', '@INPUT@'] -) - -statics_resources = gnome.compile_resources( - 'mate-power-statistics-resources', - '../data/org.mate.power-manager.statistics.gresource.xml', - c_name: 'statistics', - source_dir: '../data' -) - -preferences_resources = gnome.compile_resources( - 'mate-power-preferences-resources', - '../data/org.mate.power-manager.preferences.gresource.xml', - c_name: 'preferences', - source_dir: '../data' -) - -power_manager_resources = gnome.compile_resources( - 'mate-power-manager-resources', - '../data/org.mate.power-manager.manager.gresource.xml', - c_name: 'preferences', - source_dir: '../data' -) - -src_libgpmshared_a = [ - gpm_marshal, - dbus_binding_powermanager, - dbus_binding_backlight, - dbus_binding_kbdbacklight, - 'egg-color.c', - 'egg-color.h', - 'egg-precision.h', - 'egg-precision.c', - 'egg-array-float.c', - 'egg-array-float.h', - 'egg-idletime.h', - 'egg-idletime.c', - 'egg-discrete.h', - 'egg-discrete.c', - 'egg-console-kit.h', - 'egg-console-kit.c', - 'gpm-common.h', - 'gpm-common.c', - 'gpm-brightness.h', - 'gpm-brightness.c', - 'gpm-upower.c', - 'gpm-upower.h', -] - -mpm_static_lib = static_library('libgpmshared', src_libgpmshared_a, dependencies: dependencies) - -executable('mate-power-backlight-helper', 'gpm-backlight-helper.c', dependencies: dependencies, link_with: [mpm_static_lib]) - -executable( - 'mate-power-statistics', - [ - 'gpm-statistics.c', - 'gpm-point-obj.c', - 'gpm-point-obj.h', - 'gpm-graph-widget.h', - 'gpm-graph-widget.c' - ], - dependencies: dependencies, - link_with: [mpm_static_lib] -) - -executable( - 'mate-power-preferences', - [ - preferences_resources, - 'gpm-prefs.c', - 'gpm-prefs-core.h', - 'gpm-prefs-core.c' - ], - dependencies: dependencies, - link_with: [mpm_static_lib] -) - -executable( - 'mate-power-manager', - [ - power_manager_resources, - 'gpm-dpms.h', - 'gpm-dpms.c', - 'gpm-phone.h', - 'gpm-phone.c', - 'gpm-backlight.h', - 'gpm-backlight.c', - 'gpm-idle.h', - 'gpm-idle.c', - 'gpm-load.h', - 'gpm-load.c', - 'gpm-control.h', - 'gpm-control.c', - 'gpm-button.h', - 'gpm-button.c', - 'gpm-kbd-backlight.h', - 'gpm-kbd-backlight.c', - 'gpm-main.c', - 'gpm-manager.h', - 'gpm-manager.c', - 'gpm-tray-icon.h', - 'gpm-tray-icon.c', - 'gpm-screensaver.h', - 'gpm-screensaver.c', - 'gpm-session.h', - 'gpm-session.c', - 'gpm-networkmanager.h', - 'gpm-networkmanager.c', - 'gpm-icon-names.h', - 'gsd-media-keys-window.h', - 'gsd-media-keys-window.c', - 'msd-osd-window.h', - 'msd-osd-window.c', - 'gpm-engine.h', - 'gpm-engine.c', - ], - dependencies: dependencies, - link_with: [mpm_static_lib], - install : true) -- cgit v1.2.1