summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/meson.build103
-rw-r--r--src/msm.gresource.xml2
-rw-r--r--src/procdialogs.cpp2
3 files changed, 105 insertions, 2 deletions
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..4810ad7
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,103 @@
+system_monitor_sources = []
+
+msm_resource = gnome.compile_resources(
+ 'msm',
+ 'msm.gresource.xml',
+ source_dir: 'src',
+)
+
+system_monitor_sources += [
+ 'argv.cpp',
+ 'procman.cpp',
+ 'interface.cpp',
+ 'callbacks.cpp',
+ 'load-graph.cpp',
+ 'proctable.cpp',
+ 'prettytable.cpp',
+ 'util.cpp',
+ 'procactions.cpp',
+ 'procdialogs.cpp',
+ 'memmaps.cpp',
+ 'openfiles.cpp',
+ 'procproperties.cpp',
+ 'smooth_refresh.cpp',
+ 'disks.cpp',
+ 'selinux.cpp',
+ 'cgroups.cpp',
+ 'procman_gksu.cpp',
+ 'procman_pkexec.cpp',
+ 'sysinfo.cpp',
+ 'lsof.cpp',
+ 'selection.cpp',
+ 'settings-keys.cpp',
+ 'iconthemewrapper.cpp',
+ 'procman-app.cpp',
+ 'gsm_color_button.c',
+ msm_resource
+]
+
+system_monitor_headers = [
+ 'argv.h',
+ 'callbacks.h',
+ 'cgroups.h',
+ 'defaulttable.h',
+ 'disks.h',
+ 'gsm_color_button.h',
+ 'iconthemewrapper.h',
+ 'interface.h',
+ 'load-graph.h',
+ 'lsof.h',
+ 'memmaps.h',
+ 'openfiles.h',
+ 'prettytable.h',
+ 'procactions.h',
+ 'procdialogs.h',
+ 'procman-app.h',
+ 'procman_gksu.h',
+ 'procman.h',
+ 'procman_pkexec.h',
+ 'procproperties.h',
+ 'proctable.h',
+ 'selection.h',
+ 'selinux.h',
+ 'settings-keys.h',
+ 'smooth_refresh.h',
+ 'sysinfo.h',
+ 'util.h',
+]
+
+msm_schemas = configure_file(
+ input : 'org.mate.system-monitor.gschema.xml.in',
+ output: 'org.mate.system-monitor.gschema.xml',
+ configuration: dataconf,
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'),
+)
+
+msm_gsettings = gnome.mkenums('org.mate.mate-system-monitor.enums.xml',
+ sources: system_monitor_headers,
+ comments: '<!-- @comment@ -->',
+ fhead: '<schemalist>',
+ vhead: ' <@type@ id=\'org.mate.mate-system-monitor.@EnumName@\'>',
+ vprod: ' <value nick=\'@valuenick@\' value=\'@valuenum@\'/>',
+ vtail: ' </@type@>',
+ ftail: '</schemalist>',
+ install_header: true,
+ install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'),
+)
+
+executable(meson.project_name(),
+ system_monitor_sources,
+ include_directories: rootInclude,
+ dependencies: [
+ gmodule,
+ gtkmm,
+ libgtop,
+ libsystemd,
+ libwnck,
+ libxml,
+ librsvg,
+ ],
+ install: true,
+ install_dir : get_option('bindir')
+)
diff --git a/src/msm.gresource.xml b/src/msm.gresource.xml
index f9e9c0f..c77245e 100644
--- a/src/msm.gresource.xml
+++ b/src/msm.gresource.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
- <gresource prefix="/org/mate/system-monitor">
+ <gresource prefix="/org/mate/mate-system-monitor">
<file compressed="true" preprocess="xml-stripblanks">preferences.ui</file>
</gresource>
</gresources>
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
index c7b3e01..7e23301 100644
--- a/src/procdialogs.cpp
+++ b/src/procdialogs.cpp
@@ -465,7 +465,7 @@ procdialog_create_preferences_dialog (ProcData *procdata)
if (prefs_dialog)
return;
- builder = gtk_builder_new_from_resource("/org/mate/system-monitor/preferences.ui");
+ builder = gtk_builder_new_from_resource("/org/mate/mate-system-monitor/preferences.ui");
prefs_dialog = GET_WIDGET("preferences_dialog");
notebook = GET_WIDGET("notebook");