-
Notifications
You must be signed in to change notification settings - Fork 8
/
meson.build
54 lines (43 loc) · 1.45 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
project('com.github.johnfactotum.QuickLookup',
version: '2.1.0',
meson_version: '>=0.49'
)
prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
datadir = prefix / get_option('datadir')
desktopdir = datadir / 'applications'
iconsdir = datadir / 'icons'
metainfodir = datadir / 'metainfo'
schemadir = datadir / 'glib-2.0' / 'schemas'
glib2_dep = dependency('glib-2.0')
gio2_dep = dependency('gio-2.0')
gjs_dep = dependency('gjs-1.0', version: '>=1.70')
gtk4_dep = dependency('gtk4')
webkit_dep = dependency('webkitgtk-6.0')
libadwaita_dep = dependency('libadwaita-1', version: '>=1.4')
bin_conf = configuration_data()
bin_conf.set('PACKAGE_VERSION', meson.project_version())
bin_conf.set('PACKAGE_NAME', meson.project_name())
configure_file(
configuration: bin_conf,
input: 'quick-lookup.js',
install_dir: bindir,
install_mode: 'rwxr-xr-x',
output: 'quick-lookup'
)
install_data('com.github.johnfactotum.QuickLookup.desktop',
install_dir: desktopdir
)
install_data('com.github.johnfactotum.QuickLookup.appdata.xml',
install_dir: metainfodir
)
install_data('com.github.johnfactotum.QuickLookup.svg',
install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps'
)
install_data('com.github.johnfactotum.QuickLookup-symbolic.svg',
install_dir: iconsdir / 'hicolor' / 'symbolic' / 'apps'
)
install_data('com.github.johnfactotum.QuickLookup.gschema.xml',
install_dir: schemadir
)
meson.add_install_script('post_install.py')