forked from igordsm/code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
72 lines (62 loc) · 1.9 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
project(
'io.elementary.code',
'vala', 'c',
version: '3.4.0'
)
add_project_arguments([
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name())
],
language: 'c',
)
add_project_arguments(
['--vapidir', join_paths(meson.current_source_dir(), 'vapi')],
language: 'vala'
)
libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name())
pluginsdir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name(), 'plugins')
gnome = import('gnome')
i18n = import('i18n')
glib_dep = dependency('glib-2.0', version: '>=2.30.0')
gio_unix_dep = dependency('gio-unix-2.0', version: '>=2.20')
gee_dep = dependency('gee-0.8', version: '>=0.8.5')
gtk_dep = dependency('gtk+-3.0', version: '>=3.6.0')
granite_dep = dependency('granite', version: '>=5.2.0')
gtksourceview_dep = dependency('gtksourceview-3.0', version: '>=3.24')
peas_dep = dependency('libpeas-1.0')
peasgtk_dep = dependency('libpeas-gtk-1.0')
git_dep = dependency('libgit2-glib-1.0')
fontconfig_dep = dependency('fontconfig')
pangofc_dep = dependency('pangoft2')
posix_dep = meson.get_compiler('vala').find_library('posix')
code_resources = gnome.compile_resources(
'code-resources', 'data/' + meson.project_name() + '.gresource.xml',
source_dir: 'data'
)
dependencies = [
glib_dep,
gio_unix_dep,
gee_dep,
gtk_dep,
granite_dep,
gtksourceview_dep,
peas_dep,
peasgtk_dep,
git_dep,
fontconfig_dep,
pangofc_dep,
posix_dep,
]
zeitgeist_dep = dependency('zeitgeist-2.0', required: false)
if zeitgeist_dep.found ()
add_project_arguments('--define=HAVE_ZEITGEIST', language : 'vala')
dependencies += zeitgeist_dep
else
warning ('Zeitgeist integration will NOT be built due to missing dependency')
endif
subdir('data')
subdir('src')
if get_option('plugins')
subdir('plugins')
endif
subdir('po')
meson.add_install_script('meson/post_install.py')