-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
meson.build
55 lines (47 loc) · 1.5 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
project('com.github.alainm23.byte',
'vala', 'c',
version: '0.4.2')
gnome = import('gnome')
i18n = import('i18n')
add_project_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language: 'c')
conf_data = configuration_data()
conf_data.set_quoted('PROJECT_NAME', meson.project_name())
conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf_data.set_quoted('VERSION', meson.project_version())
conf_data.set_quoted('PREFIX', get_option('prefix'))
conf_data.set_quoted('DATADIR', join_paths (get_option('prefix'), get_option('datadir')))
config_header = configure_file(
input : 'config.vala.in',
output : 'config.vala',
configuration : conf_data
)
as_resources = gnome.compile_resources (
'as-resources', 'data/' + meson.project_name() + '.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
subdir('src')
executable(
meson.project_name(),
as_resources,
sources,
config_header,
dependencies: [
dependency('gee-0.8'),
dependency('gobject-2.0'),
dependency('glib-2.0'),
dependency('granite'),
dependency('gtk+-3.0'),
dependency('sqlite3'),
dependency('libsoup-2.4'),
dependency('json-glib-1.0'),
dependency('gstreamer-pbutils-1.0'),
dependency('gstreamer-tag-1.0'),
dependency('taglib_c'),
meson.get_compiler('c').find_library('m', required : false)
],
install: true
)
subdir('data')
subdir('po')
meson.add_install_script('meson/post_install.py')