File: meson.build

package info (click to toggle)
xfce4-panel 4.20.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,220 kB
  • sloc: ansic: 61,756; sh: 5,515; makefile: 1,330; python: 128; xml: 101; sed: 16
file content (64 lines) | stat: -rw-r--r-- 1,323 bytes parent folder | download
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
plugin_sources = [
  'clock.c',
  'clock.h',
  'clock-time.c',
  'clock-time.h',
  'clock-analog.c',
  'clock-analog.h',
  'clock-binary.c',
  'clock-binary.h',
  'clock-digital.c',
  'clock-digital.h',
  'clock-fuzzy.c',
  'clock-fuzzy.h',
  'clock-lcd.c',
  'clock-lcd.h',
  'clock-sleep-monitor.c',
  'clock-sleep-monitor.h',
]

plugin_install_subdir = 'xfce4' / 'panel' / 'plugins'

shared_module(
  'clock',
  plugin_sources,
  sources: xfce4_panel_resources_c,
  gnu_symbol_visibility: 'hidden',
  c_args: [
    '-DG_LOG_DOMAIN="@0@"'.format('libclock'),
  ],
  include_directories: [
    include_directories('..' / '..'),
  ],
  dependencies: [
    gtk,
    cairo,
    libxfce4util,
    libxfce4ui,
    libxfce4windowing,
    xfconf,
    libm,
  ],
  link_with: [
    libpanel_common,
    libxfce4panel,
  ],
  install: true,
  install_dir: get_option('prefix') / get_option('libdir') / plugin_install_subdir,
)

i18n.merge_file(
  input: configure_file(
    input: 'clock.desktop.in.in',
    output: 'clock.desktop.in',
    configuration: {
      'LIBXFCE4PANEL_VERSION_API': libxfce4panel_version_api,
    },
    install: false,
  ),
  output: 'clock.desktop',
  po_dir: '..' / '..' / 'po',
  type: 'desktop',
  install: true,
  install_dir: get_option('prefix') / get_option('datadir') / plugin_install_subdir,
)