forked from ellie-commons/sequeler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
41 lines (32 loc) · 973 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
40
41
# project name and programming language
project('com.github.alecaddd.sequeler', 'vala', 'c')
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required: true)
add_project_arguments(
['--vapidir', join_paths(meson.current_source_dir(), 'vapi')],
language: 'vala'
)
# Include the translations module
i18n = import('i18n')
# Include the gnome module
gnome = import('gnome')
asresources = gnome.compile_resources(
'as-resources', 'data/assets.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
vala_lint = find_program('io.elementary.vala-lint', required : false)
if vala_lint.found()
test (
'Vala lint',
vala_lint,
args: ['-d', join_paths(meson.source_root(), 'src')]
)
endif
subdir('src')
subdir('data')
subdir('po')
subdir('schemas')
meson.add_install_script('meson/post_install.py')