summaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 4810ad77db4cc108e67431ac35ae9362b0744b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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')
)