forked from GSConnect/gnome-shell-extension-gsconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
68 lines (57 loc) · 1.59 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
project('gsconnect', 'c', version: '12', meson_version: '>= 0.40.1')
gnome = import('gnome')
extuuid = meson.project_name() + '@andyholmes.github.io'
extdatadir = join_paths(get_option('datadir'), 'gnome-shell/extensions', extuuid)
# ZIP targets
run_target('make-zip', command: ['meson/zip.sh', extuuid])
run_target('install-zip', command: ['meson/zip.sh', extuuid, 'install'])
# Source Files
extension_source = files(
# standard files
'src/extension.js',
'src/prefs.js',
'src/stylesheet.css',
# non-standard files
'src/client.js',
'src/common.js',
'src/sound.js',
# non-GJS files
'src/nautilus-gsconnect.py',
'src/folks-cache.py'
)
install_data(
extension_source,
install_dir: extdatadir,
install_mode: 'rw-r--r--'
)
install_subdir('src/service', install_dir: extdatadir)
install_subdir('src/widgets', install_dir: extdatadir)
# metadata.json
extmetadata = configuration_data()
extmetadata.set('VERSION', meson.project_version())
metadata_json = configure_file(
input: 'data/metadata.json.in',
output: 'metadata.json',
configuration: extmetadata
)
install_data(
metadata_json,
install_dir: extdatadir,
install_mode: 'rw-r--r--'
)
# GSettings
install_data(
join_paths('data', 'org.gnome.Shell.Extensions.GSConnect.gschema.xml'),
install_dir: join_paths(extdatadir, 'schemas')
)
# GResource
gnome.compile_resources(
'org.gnome.Shell.Extensions.GSConnect.data',
join_paths('data', 'org.gnome.Shell.Extensions.GSConnect.data.gresource.xml'),
source_dir: 'data',
gresource_bundle: true,
install: true,
install_dir : extdatadir
)
# Gettext Translations
subdir('po')