-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
32 lines (24 loc) · 905 Bytes
/
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
project('wwplot',
version: '1.0.0',
meson_version: '>= 0.51.0'
)
pymod = import('python')
i18n_mod = import('i18n')
required_modules = ['PySide6','numpy','scipy']
py3 = pymod.find_installation('python3', modules:required_modules)
message('python version: ' + py3.language_version())
message('module install path: ' + py3.get_install_dir())
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
localedir = join_paths(prefix, get_option('localedir'))
install_subdir('WWplot', install_dir: py3.get_install_dir())
conf_wwplot = configuration_data()
conf_wwplot.set('LOCALEDIR', localedir)
conf_wwplot.set('PROJECT_NAME', meson.project_name())
configure_file(input: 'wwplot.in',
output: 'wwplot',
configuration: conf_wwplot,
install_dir: bindir)
subdir('data')
subdir('po')