-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
39 lines (32 loc) · 863 Bytes
/
meson.build
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
project('SODPlayer', 'c' , version: '3.0')
add_project_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
language: 'c'
)
prefix = get_option('prefix')
datadir = get_option('datadir')
localedir = get_option('localedir')
cc = meson.get_compiler ('c')
i18n = import('i18n')
find_program('lua')
cc.find_library('gtk-3')
cc.find_library('gstreamer-1.0')
install_data(
'init.lua',
'sodplayer.json',
install_dir: join_paths(datadir, 'sodplayer'),
)
search_mo_files = configuration_data()
search_mo_files.set('prefix', prefix)
search_mo_files.set('localedir', localedir)
configure_file (
input: 'init.lua',
output: ('init.lua').format(prefix, localedir),
configuration: search_mo_files,
install: true,
install_dir: join_paths(datadir , 'sodplayer')
)
subdir('src')
subdir('lib')
subdir('po')
subdir('data')