-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
48 lines (37 loc) · 1.16 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
# Project info
project(
'com.github.coslyk.VidBox', 'vala', 'c',
version: '0.2',
meson_version : '>= 0.46'
)
conf_data = configuration_data()
conf_data.set('APP_ID', meson.project_name())
conf_data.set('VERSION', meson.project_version())
# Import vapi
add_project_arguments(['--vapidir', join_paths(meson.source_root(), 'vapi')], language: 'vala')
# Compile resource files
gnome = import('gnome')
vidbox_gresources = gnome.compile_resources(
'vidbox_gresources', join_paths('data', 'app.gresource.xml'),
source_dir: 'data'
)
# Translations
i18n = import('i18n')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
# Dependencies
vidbox_deps = [
dependency('epoxy'),
dependency('gdk-wayland-3.0'),
dependency('gdk-x11-3.0'),
dependency('gio-2.0'),
dependency('glib-2.0', version: '>=2.38'),
dependency('gtk+-3.0'),
dependency('json-glib-1.0'),
dependency('mpv'),
meson.get_compiler('c').find_library('m', required : true),
meson.get_compiler('vala').find_library('posix', required : true)
]
subdir('data')
subdir('src')
subdir('po')
meson.add_install_script('meson/post_install.py')