Debian Codegraph @

src/meson.build

raw
1 subdir('action-impls')
2 subdir('actions')
3 subdir('legacy')
4 subdir('systemd')
5 subdir('selinux')
6 subdir('cgroups')
7
8 system_monitor_sources = [
9 'application.cpp',
10 'column-view-persister.c',
11 'disk.c',
12 'disks.c',
13 'gsm-graph.c',
14 'interface.cpp',
15 'load-graph.cpp',
16 'lsof.cpp',
17 'mem-map.c',
18 'memmaps.cpp',
19 'open-file.cpp',
20 'openfiles.cpp',
21 'prefsdialog.cpp',
22 'prettytable.cpp',
23 'procactions.cpp',
24 'procdialogs.cpp',
25 'procinfo.cpp',
26 'proclist.cpp',
27 'procproperties.cpp',
28 'proctable.cpp',
29 'setaffinity.cpp',
30 'smooth_refresh.cpp',
31 'update_interval.cpp',
32 'util.cpp',
33 ]
34
35 system_monitor_headers = [
36 'legacy/e_date.h',
37 'legacy/gsm_color_button.h',
38 'legacy/treeview.h',
39 'application.h',
40 'column-view-persister.h',
41 'defaulttable.h',
42 'disk.h',
43 'disks.h',
44 'gsm-graph.h',
45 'interface.h',
46 'load-graph.h',
47 'lsof.h',
48 'mem-map.h',
49 'memmaps.h',
50 'open-file.h',
51 'openfiles.h',
52 'prefsdialog.h',
53 'prettytable.h',
54 'procactions.h',
55 'procdialogs.h',
56 'procinfo.h',
57 'proclist.h',
58 'procproperties.h',
59 'proctable.h',
60 'setaffinity.h',
61 'settings-keys.h',
62 'smooth_refresh.h',
63 'update_interval.h',
64 'util.h',
65 ]
66
67 gresourceconf = configuration_data()
68 gresourceconf.set('metainfo_file', '@[email protected]'.format(app_id))
69
70 gresource_file = configure_file(
71 input: 'gsm.gresource.xml.in',
72 output: 'gsm.gresource.xml',
73 configuration: gresourceconf,
74 )
75
76 gsm_resource = gnome.compile_resources(
77 'gsm-resources',
78 gresource_file,
79 c_name: 'gsm',
80 dependencies: metainfo_file,
81 source_dir: meson.project_source_root(),
82 )
83
84 gsm_schemas = configure_file(
85 input : 'org.gnome.gnome-system-monitor.gschema.xml.in',
86 output: 'org.gnome.gnome-system-monitor.gschema.xml',
87 configuration: dataconf,
88 install: true,
89 install_dir: get_option('datadir') / 'glib-2.0' / 'schemas',
90 )
91
92 gnome.compile_schemas(depend_files: gsm_schemas)
93
94 gsm_gsettings = gnome.mkenums('org.gnome.gnome-system-monitor.enums.xml',
95 sources: system_monitor_headers,
96 comments: '<!-- @comment@ -->',
97 fhead: '<schemalist>',
98 vhead: ' <@type@ id=\'org.gnome.gnome-system-monitor.@EnumName@\'>',
99 vprod: ' <value nick=\'@valuenick@\' value=\'@valuenum@\'/>',
100 vtail: ' </@type@>',
101 ftail: '</schemalist>',
102 install_header: true,
103 install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'),
104 )
105
106 system_monitor_dependencies = [
107 glibmm,
108 giomm,
109 gio_unix,
110 gmodule,
111 gtk,
112 gtkmm,
113 libgtop,
114 libadwaita,
115 libgsm_actions_dep,
116 libgsm_systemd_dep,
117 libgsm_selinux_dep,
118 libgsm_cgroups_dep,
119 ]
120 libgsm = static_library(
121 'libgsm',
122 system_monitor_sources + [gsm_resource],
123 include_directories: rootInclude,
124 dependencies: system_monitor_dependencies,
125 link_with: libgsm_legacy,
126 )
127 libgsm_dep = declare_dependency(
128 dependencies: system_monitor_dependencies,
129 include_directories: rootInclude,
130 link_with: libgsm,
131 )
132
133 executable(meson.project_name(),
134 ['main.cpp'],
135 dependencies: libgsm_dep,
136 install: true,
137 )
138
139 gnome.post_install(
140 glib_compile_schemas: true,
141 )