summaryrefslogtreecommitdiffstats
path: root/python/meson.build
blob: e209df542f998bd8260c926f320401d3830c0f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# python
# SPDX-License-Identifier: GPL-3.0-or-later

python_config = configuration_data()
python_config.set('kres_version', meson.project_version())
python_config.set('sbin_dir', sbin_dir)
python_config.set('bin_dir', bin_dir)
python_config.set('etc_dir', etc_dir)
python_config.set('run_dir', run_dir)
python_config.set('lib_dir', lib_dir)
python_config.set('modules_dir', modules_dir)

configure_file(
  input: 'knot_resolver.py.in',
  output: 'knot_resolver.py',
  configuration: python_config,
)

configure_file(
  input: 'setup.py.in',
  output: 'setup.py',
  configuration: python_config,
)