diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:01:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:01:24 +0000 |
commit | 1e2ccef73c5ca96f7884a452b65cdbbff51c43ca (patch) | |
tree | 15afec6ee566d7919e0e640816faeebc777e3911 /src/meson.build | |
parent | Initial commit. (diff) | |
download | gnome-system-monitor-1e2ccef73c5ca96f7884a452b65cdbbff51c43ca.tar.xz gnome-system-monitor-1e2ccef73c5ca96f7884a452b65cdbbff51c43ca.zip |
Adding upstream version 3.38.0.upstream/3.38.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/meson.build')
-rw-r--r-- | src/meson.build | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..76c5320 --- /dev/null +++ b/src/meson.build @@ -0,0 +1,106 @@ +subdir('legacy') + +system_monitor_sources = [ + 'application.cpp', + 'argv.cpp', + 'cgroups.cpp', + 'disks.cpp', + 'gsm_gksu.cpp', + 'gsm_gnomesu.cpp', + 'gsm_pkexec.cpp', + 'interface.cpp', + 'load-graph.cpp', + 'lsof.cpp', + 'main.cpp', + 'memmaps.cpp', + 'openfiles.cpp', + 'prefsdialog.cpp', + 'prettytable.cpp', + 'procactions.cpp', + 'procdialogs.cpp', + 'procproperties.cpp', + 'proctable.cpp', + 'selinux.cpp', + 'smooth_refresh.cpp', + 'systemd.cpp', + 'util.cpp', +] + +system_monitor_headers = [ + 'prettytable.h', + 'procdialogs.h', + 'cgroups.h', + 'application.h', + 'smooth_refresh.h', + 'gsm_gnomesu.h', + 'openfiles.h', + 'procproperties.h', + 'lsof.h', + 'proctable.h', + 'settings-keys.h', + 'memmaps.h', + 'procactions.h', + 'systemd.h', + 'argv.h', + 'prefsdialog.h', + 'selinux.h', + 'util.h', + 'gsm_gksu.h', + 'interface.h', + 'load-graph.h', + 'disks.h', + 'gsm_pkexec.h', + 'defaulttable.h', + 'legacy/treeview.h', + 'legacy/e_date.h', + 'legacy/gsm_color_button.h', +] + +gsm_resource_dir = join_paths(get_option('datadir'), meson.project_name()) +gsm_resource = gnome.compile_resources( + 'gsm', + 'gsm.gresource.xml', + gresource_bundle: true, + source_dir: meson.source_root(), + install: true, + install_dir: gsm_resource_dir, +) + +gsm_schemas = configure_file( + input : 'org.gnome.gnome-system-monitor.gschema.xml.in', + output: 'org.gnome.gnome-system-monitor.gschema.xml', + configuration: dataconf, + install: true, + install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'), +) + +gsm_gsettings = gnome.mkenums('org.gnome.gnome-system-monitor.enums.xml', + sources: system_monitor_headers, + comments: '<!-- @comment@ -->', + fhead: '<schemalist>', + vhead: ' <@type@ id=\'org.gnome.gnome-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, + ], + link_with: libgsm_legacy, + cpp_args: [ + '-DGSM_RESOURCE_FILE="@0@"'.format(join_paths( + get_option('prefix'), gsm_resource_dir, 'gsm.gresource')), + ], + install: true, +) |