-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
51 lines (44 loc) · 1.17 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('fig',
version: '1.0.4',
meson_version: '>= 0.59.0'
)
python = import('python').find_installation('python3')
python_dir = python.get_install_dir()
# Install Python package
install_subdir('fig',
install_dir: python_dir
)
# Install style and assets directly inside the fig package directory
install_subdir('style',
install_dir: python_dir / 'fig'
)
install_subdir('assets',
install_dir: python_dir / 'fig'
)
install_subdir('screenshots',
install_dir: python_dir / 'fig'
)
# Install desktop file
install_data('io.github.Q1CHENL.fig.desktop',
install_dir: get_option('datadir') / 'applications'
)
# Install icons
install_data('assets/icons/io.github.Q1CHENL.fig.svg',
install_dir: get_option('datadir') / 'icons/hicolor/scalable/apps'
)
install_data('assets/icons/io.github.Q1CHENL.fig-symbolic.svg',
install_dir: get_option('datadir') / 'icons/hicolor/symbolic/apps'
)
# Install metainfo
install_data('io.github.Q1CHENL.fig.metainfo.xml',
install_dir: get_option('datadir') / 'metainfo'
)
# Install main executable
configure_file(
input: 'fig/main.py',
output: 'fig',
copy: true,
install: true,
install_dir: get_option('bindir'),
install_mode: 'rwxr-xr-x'
)