-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmeson.build
48 lines (41 loc) · 1.48 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('web-archives', ['vala', 'c'],
version : '0.5.0',
license : 'GPL3+'
)
i18n = import('i18n')
gnome = import('gnome')
prefix = get_option('prefix')
libdir = get_option('libdir')
datadir = get_option('datadir')
localedir = join_paths(prefix, datadir, 'locale')
webextensionsdir = join_paths(prefix, libdir, meson.project_name(), 'web-extensions')
conf = configuration_data()
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('LOCALEDIR', localedir)
conf.set_quoted('WEB_EXTENSIONS_DIRECTORY', webextensionsdir)
gtk_dep = dependency('gtk+-3.0')
zim_dep = dependency('zim-glib-4.0', version : '>=4.0.0')
sqlite_dep = dependency('sqlite3')
webkit_dep = dependency('webkit2gtk-4.1')
soup_dep = dependency('libsoup-3.0')
webkit_web_extension_dep = dependency('webkit2gtk-web-extension-4.1')
tracker_dep = dependency('tracker-sparql-3.0')
xml_dep = dependency('libxml-2.0')
isocodes_dep = dependency('libisocodes')
handy_dep = dependency('libhandy-1', version : '>=1.0.0')
darkreader_command = run_command('make', '-C', 'build-aux/darkreader', check: true)
darkreader_output = darkreader_command.stdout().strip()
darkreader_error = darkreader_command.stderr().strip()
if (darkreader_output != '')
message(darkreader_output)
endif
if (darkreader_error != '')
message(darkreader_error)
endif
meson.add_install_script (
join_paths('build-aux', 'meson', 'post_install.py')
)
subdir('src')
subdir('data')
subdir('po')