File: meson.build

package info (click to toggle)
balsa 2.6.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 23,576 kB
  • sloc: ansic: 99,871; xml: 4,934; makefile: 769; sh: 185; awk: 60; python: 34
file content (27 lines) | stat: -rw-r--r-- 1,141 bytes parent folder | download | duplicates (4)
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
# sounds/meson.build

balsa_sounds = ['startup.wav', 'newmail.wav']

balsa_sounds_dir = join_paths(get_option('datadir'), 'sounds', 'balsa')
install_data(balsa_sounds, install_dir : balsa_sounds_dir)

sound_list_dir = join_paths(get_option('sysconfdir'), 'sound', 'events')

# if i18n_merge knew about the 'description' keyword, we would use:
# i18n.merge_file(input       : 'balsa.soundlist.meson',
#                 output      : 'balsa.soundlist',
#                 type        : 'desktop',
#                 po_dir      : '../po',
#                 install     :  true,
#                 install_dir :  sound_list_dir)
# instead:
custom_target('soundlist-file',
              input       : 'balsa.soundlist.meson',
              output      : 'balsa.soundlist',
              install     : true,
              install_dir : sound_list_dir,
              command     : ['msgfmt', '--desktop',
                             '--keyword=description',
                             '--template=@INPUT@',
                             '-d', join_paths(meson.current_source_dir(), '../po'),
                             '--output-file=@OUTPUT@'])