-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathmeson.build
More file actions
57 lines (50 loc) · 1.33 KB
/
meson.build
File metadata and controls
57 lines (50 loc) · 1.33 KB
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
python = import('python')
python_bin = python.find_installation('python3')
python_dir = join_paths(get_option('prefix'), python_bin.get_install_dir())
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(python_dir, meson.project_name())
gnome = import('gnome')
dependency('libadwaita-1', version : '>= 1.0')
gnome.compile_resources('portfolio',
'portfolio.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: pkgdatadir,
)
conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').path())
conf.set('VERSION', meson.project_version())
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir)
configure_file(
input: 'dev.tchx84.Portfolio.in',
output: 'dev.tchx84.Portfolio',
configuration: conf,
install: true,
install_dir: get_option('bindir')
)
portfolio_sources = [
'__init__.py',
'main.py',
'window.py',
'popup.py',
'worker.py',
'places.py',
'utils.py',
'service.py',
'place.py',
'translation.py',
'cache.py',
'settings.py',
'trash.py',
'devices.py',
'properties.py',
'about.py',
'passphrase.py',
'placeholder.py',
'loading.py',
'files.py',
'menu.py',
'bookmarks.py'
]
install_data(portfolio_sources, install_dir: moduledir)