~martijnbraam/pyatem

ref: ae0cac13043aa386334f8410f86eb6ef28781cbc pyatem/openswitcher_proxy/meson.build -rw-r--r-- 866 bytes
ae0cac13Martijn Braam update the buildsystem and readme 6 months ago
                                                                                
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
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'openswitcher_proxy')

python = import('python')

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: 'openswitcher-proxy.in',
    output: 'openswitcher-proxy',
    configuration: conf,
    install: true,
    install_dir: get_option('bindir')
)

proxy_sources = [
    '__init__.py',
    '__main__.py',
    'frontend.py',
    'frontend_status.py',
    'frontend_tcp.py',
    'frontend_httpapi.py',
    'frontend_mqtt.py',
    'hardware.py',
    'error.py',

]

install_data(proxy_sources, install_dir: moduledir)