-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
58 lines (49 loc) · 1.38 KB
/
meson.build
File metadata and controls
58 lines (49 loc) · 1.38 KB
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
56
57
58
project('com.github.aimproxy.dotfonts', ['vala', 'c'],
version : '0.1.2',
license: 'GPL-3.0'
)
add_project_arguments([
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name())
],
language: 'c',
)
gnome = import('gnome')
i18n = import('i18n')
as_resource = gnome.compile_resources(
'as-resources', 'data/com.github.aimproxy.dotfonts.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
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'))
subdir('src')
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
executable(
meson.project_name(),
sources,
as_resource,
dependencies: [
dependency('gobject-2.0'),
dependency('glib-2.0'),
dependency('granite'),
dependency('gtk+-3.0'),
dependency('json-glib-1.0'),
dependency('libsoup-2.4'),
dependency('gtksourceview-3.0'),
meson.get_compiler('vala').find_library('posix'),
],
install : true
)
subdir('data')
subdir('po')
meson.add_install_script('meson/post_install.py')