summaryrefslogtreecommitdiff
path: root/applets/brightness/meson.build
blob: a2a7c59bc5963b3677a16dc6aedd0f18e85f5499 (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
po_dir = join_paths(meson.source_root(), 'po')

source_files = files(
  'gpm-common.c',
  'brightness-applet.c'
)

cflags = [
  '-DMATELOCALEDIR="@0@"'.format(matelocaledir),
  '-DG_LOG_DOMAIN="~/mate-power-manager.log"',
  '-DGPM_ICONS_DATA="@0@"'.format(mateicons),
  '-DBRIGHTNESS_MENU_UI_DIR="@0@"'.format(mateui),
  '-DEGG_VERBOSE="GPM_VERBOSE"',
  '-DEGG_LOGGING="GPM_LOGGING"',
  '-DEGG_CONSOLE="GPM_CONSOLE"'
  ]

executable('mate-brightness-applet',
  sources: source_files,
  dependencies : [
    gtk,
    glib,
    cairo,
    notify,
    dbus,
    dbusglib,
    matepanel
  ],
  include_directories : config_inc,
  c_args : cflags,
  install : true,
  install_dir: mateexecdir,
)

# .service files

service_data = configuration_data()
service_data.set('LIBEXECDIR', join_paths(prefix, get_option('libexecdir')))

configure_file(
  input : 'org.mate.panel.applet.BrightnessAppletFactory.service.in',
  output : 'org.mate.panel.applet.BrightnessAppletFactory.service',
  configuration : service_data,
  install : true,
  install_dir : join_paths(matedatadir, 'dbus-1/services')
)

desktop_data = configuration_data()
desktop_data.set('VERSION', meson.project_version())
desktop_data.set('LIBEXECDIR', join_paths(prefix, get_option('libexecdir')))
desktop_in_file = configure_file(
  input : 'org.mate.BrightnessApplet.mate-panel-applet.desktop.in.in',
  output : 'org.mate.BrightnessApplet.mate-panel-applet.desktop.in',
  configuration : desktop_data
)

i18n.merge_file(
  input : desktop_in_file,
  output : 'org.mate.BrightnessApplet.mate-panel-applet',
  type : 'desktop',
  po_dir : po_dir,
  install : true,
  install_dir : join_paths(matedatadir, 'mate-panel', 'applets')
)

install_data('brightness-applet-menu.xml',
  install_dir : join_paths(pkgdatadir, 'ui')
)