summaryrefslogtreecommitdiff
path: root/typing-break/meson.build
blob: 29033b95af48970c555d07238ddf2131d959f717 (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
cflags = [
  '-DIMAGEDIR="@0@"'.format(mcc_directorydir),
  '-DMATELOCALEDIR="@0@"'.format(mcc_pixmaps),
]

deps = [
  gtk_dep,
  glib_dep,
  mate_desktop_dep,
  x11_dep,
  xext_dep,
  xscrnsaver_dep,
  m_dep
]
deps += [appindicator_dep,ayatana_dep]
executable(
  'mate-typing-monitor',
  sources : [
    'drw-break-window.c',
    'drw-monitor.c',
    'drwright.c',
    'drw-selection.c',
    'drw-timer.c',
    'drw-utils.c',
    'main.c'
  ],
  include_directories : config_inc,
  dependencies : deps,
  c_args : cflags,
  install : true,
  install_dir : get_option('bindir')
)

install_data(
  'mate-typing-monitor.png',
  install_dir: join_paths(mcc_icondir, 'hicolor', '48x48', 'apps')
)

install_data(
  'mate-typing-monitor.svg',
  install_dir: join_paths(mcc_icondir, 'hicolor', 'scalable', 'apps')
)

icons = [
  'bar-disabled.png',
  'bar-green.png',
  'bar.png',
  'bar-red.png',
  'ocean-stripes.png'
]

foreach icon: icons
  install_data(
    icon,
    install_dir : mcc_pixmaps
  )
endforeach