-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
51 lines (42 loc) · 1.01 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
project('gamemode-extension',
version: '1.0',
meson_version: '>= 0.46.0',
license: 'LGPL-2.1'
)
# Project metadata
uuid = 'gamemodeshellextension@trsnaqe.com'
gettext_domain = meson.project_name()
# Import gnome module
gnome = import('gnome')
# Directories
datadir = get_option('datadir')
prefix = get_option('prefix')
extensiondir = join_paths(datadir, 'gnome-shell', 'extensions', uuid)
schemadir = join_paths(datadir, 'glib-2.0', 'schemas')
# Source files
sources = [
'client.js',
'extension.js',
'stylesheet.css',
'metadata.json',
'prefs.js'
]
# Schema file
schema_file = 'settings/org.gnome.shell.extensions.gamemodeshellextension.gschema.xml'
# Install source files
install_data(
sources,
install_dir: extensiondir
)
# Install schema
install_data(
schema_file,
install_dir: schemadir
)
# Compile schema
meson.add_install_script(
'scripts/compile-schema.sh',
join_paths(prefix, schemadir)
)
# Build completion message
message('Project version: @0@'.format(meson.project_version()))